Several plugins using the same JS file dynamic action

Hello

(Apex 4.0.2)

I created two plugins for dynamic action, say Plugin1 and Plugin2. These two plugins are most of the time used together, so to keep things simple and ease of maintenance that all the JS need to the code specific to each plugin as well as of the common code is in a single file, for example plugins.js. So I download the same JS file to each plugin.

In the generated page, using two plugins the JS file is loaded twice, as planned. Of course, at Apex, they are two different files even if their content is exactly the same.

This is not ideal for me. What is the approach suggested in this case? Always keep the JS separate files for each plugin? And on any common code plugins share, duplicate in each JS file?

Thank you
Luis

Hi Luis,.

apex_javascript.add_library currently does not allow to specify p_key as for example apex_javascript.add_on_load_code is. It automatically calculates the value of 'key' based on the directory and name. I'll add an enhancement request to allow to override this default that will allow both plug-ins use the same 'key' to just load the file once.

Concerning
Patrick
-----------
My Blog: http://www.inside-oracle-apex.com
APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
Twitter: http://www.twitter.com/patrickwolf

Tags: Database

Similar Questions

  • How do you install the creative cloud on several computers using the same license?

    How do you install the creative cloud on several computers using the same license?

    Installation on multiple computers can be done independently of the subscription.  You only need the lic3ense when it comes to activation, you have two active facilities (signed in).  Just install the desktop application and use it to install the applications, and then connect to activate.

    https://helpx.Adobe.com/creative-cloud/help/download-install-app.html

    Creative cloud to desktop
    https://helpx.Adobe.com/creative-cloud/help/creative-cloud-desktop.html

    Sign out, sign in | Creative office cloud app
    http://helpx.Adobe.com/creative-cloud/KB/sign-in-out-creative-cloud-desktop-app.html

    Help of activation & deactivation
    https://helpx.Adobe.com/x-productkb/policy-pricing/activation-deactivation-products.html#a ctivate-how-to's

    Install, update, or uninstall applications
    http://helpx.Adobe.com/creative-cloud/help/install-apps.html

  • several insert using the same sequence number,

    Hello

    I need to use the same sequence number in several documents (insertion).

    Is this possible and how?

    Thank you

    It depends on how you are doing multiple inserts.  If you then run a bunch of single inserts something like:

    dev1 > create table t (ID, descr varchar2 (10));

    Table created.

    dev1 > create sequence t_seq;

    Order of creation.

    dev1 > select double t_seq.nextval;

    NEXTVAL

    ----------

    1

    dev1 > insert into values t (t_seq.currval, 'Rec 1');

    1 line of creation.

    dev1 > insert into values t (t_seq.currval, "Rec 2");

    1 line of creation.

    dev1 > insert into values t (t_seq.currval, 'Rec 3');

    1 line of creation.

    dev1 > insert into values t (t_seq.currval, 'Rec 4');

    1 line of creation.

    dev1 > insert into values t (t_seq.currval, 'Rec 5');

    1 line of creation.

    dev1 > select * from t;

    ID DESCR

    ---------- ----------

    1 rec 1

    1 rec 2

    1 rec 3

    REC 2 4

    REC 2 5

    You can use a similar approach, if you select data from another table as long as you can make the selection sufficiently selective to retrieve only the lines you need.

    John

  • Several sprites using the same parameter value

    I'll ask the same question " 'contains' doubt in the hexadecimal color value?" but in a different way, because I realized that the solution is more simple than I thought, and the solutions will also. I have this problem:

    property pTargetSprite, pBlendValue

    on getPropertyDescriptionList me
    List = [:]

    addProp list, #pTargetSprite, [#comment: ' target Sprite: ',]
    [#format: #integer, #default: VOID]

    addProp list, #pBlendValue, [#comment: ' mixture value: ",]
    [#format: #integer, #default: 100]

    back list

    end


    on mouseDown me

    .blend Sprite (pTargetSprite) = pBlendValue

    end

    I would like to get SEVERAL sprites for 1 parameter, that is to say when the behavior dialog box appears and ask me the "target Sprite:", I entered... Let's say 1, 2, 3,... Regardless of the numbers I want. Therefore, the values of this sprites mix will change according to the mix input value. Right now is perfect, but of course work with only a sprite, but I want to be able to give this value of mixture for several sprites on the same setting.

    I guess it must be very simple, but I can't get the answer anywhere in my brain, nor my book Director, or in the forums.

    Thank you!!!

    Rob, Anders... Thank you very much!!! Now it works perfectly.

    spriteList property
    blendValue property

    on getPropertyDescriptionlist
    myPropList = [:]
    myPropList.addProp (#spriteList, [#comment: "enter the sprite channel \])
    (["the numbers to use, separated by commas:", #format: #string, #default: "1,2,3"]).<>
    myPropList.addProp (#blendValue, [#comment: "mixture value:",-])
    ([#format: #integer, #default: 100])
    return myPropList
    end

    on beginSprite me
    spriteList = stringToList (spriteList)
    end

    on stringToList (thisString)
    oldDelim = the itemDelimiter
    itemDelimiter = «»
    thisManyItems = thisString.item.count
    tempList =]
    Repeat with n = 1 to thisManyItems
    tempList.add (thisString.item [n])
    end repeat
    itemDelimiter = oldDelim
    return tempList
    end

    on mouseUp me
    thisMany = spriteList.count
    Repeat with n = 1 to thisMany
    .blend Sprite (value(spriteList[n])) = blendValue
    end repeat
    end

  • Using the button ID in dynamic Action

    Hi all

    I want to call a dynamic action at the click of a button.
    To this I added a button id in the template button and by calling the ID number that is the DOM object in dynamic action.
    Is it possible that I can call the Id button dynamically in dynamic action?
    I support the demand both in 4.0 and 4.1 so I can't take full advantage of 4.1 features now.


    Thank you
    RD

    RD,

    Sorry to interrupt, but I just wanted to report that hard-code the ID of the button as it will cause problems you are application 4.1, because of some behaviors changed between 4.0 and 4.1. I blogged about it here:

    http://anthonyrayner.blogspot.com/2011/07/application-express-41-ButtonID-changed.html

    There are a few ways around this, but I think that probably the simplest here would be to remove the id = "" #BUTTON_ID # "in your template button, ensuring you have the placeholder #BUTTON_ATTRIBUTES # in your model, then set a custom ID (for example id = 'submit_button') directly in the attributes of your button." You can then simply view this ID in your DA "DOM object" and it should work in 4.0 and 4.1.

    Apart from that, and as says VANJ, your DA looks good and you should just be able to define all the measures 'True' you want, which fire when the button is clicked.

    Kind regards
    Anthony

  • Set up Dreamweaver for several users use the same computer?

    We are using Dreamweaver CS5.5 and it was installed under the user id who bought the software. When this person left, it was uninstalled and reinstalled under the new identification of individuals, etc now a few times as more revenue is produced. Is there a way to install it once and one who gets to use the PC have access? The problem, that we continue to have to publish changes/updates Web site. It allows us only to do under the connection that it was installed under. Other users can go in and work on the website, but won't let them publish updates. Any help would be appreciated.

    Thank you!

    Guessed it. To add the FTP site to the new user information use 'put '.

  • Closed loop Reporting and several campaigns using the same form

    I hope that I am able to explain it properly.

    We have a webinar and a campaign of follow-up of living room. In the living room campaign, it is a simple 'personal' email to thank those who came to our booth and to invite them to the Web conference or contact us for further examination. So both the webinar and the campaign of trade show, I've added the landing page and the form for the webinar, however, when people register for the webinar, they appear in the living room campaign in Salesforce and campaign Webinar is empty.

    So based on this it seems I can only get the landing page and shape in 1 campaign so that the Common Language Runtime function properly. Can someone confirm this for me? Or should I be doing things differently?

    Thank you!

    Hey Rochelle, Yep you've stumbled upon a serious limitation by using closed loop reporting. This is what is happening. Since you sent your email show campaign, Eloqua adds dynamically the elqCampaignID of the campaign to show links in the email. So when someone clicks on the link, they are inherited from the elqCampaignId related to the trade fair. For example, this is an example of the link that is generated dynamically:

    http:// /LP = 312? elqCampaignId = 467

    In this case, the fair campaign is associated with 467 but your Webinar campaign can be linked to 468.

    The way around this problem to take the ELQ ID associated with the campaign webinar and hard-code it in the email you send. If you take

    http:// /lp = 312? elqCampaignID = 468 and hard code in your email that you send. What happens is that eloqua then dynamically add the other elqID on the tip of the tail so you get this:

    http:// /lp = 312? elqCampaignID = 468 &? elqCampaignID = 467. Fortunately, for the purposes of the CLR, it will take the first elqCampaignID he meets. Allowing you to have all of these authors attached to the correct campaign in SFDC.

  • I have several devives using the same GRI?

    Takes forevCan help you get started? ER... The task manager has so many start up programs and I don't have any idea what I can disable safe...?

    Hi Jeffro1ww,

    1. When did you start to question?

    2. did you of recent changes on the system?

    3. you receive messages or error codes?

    You can try running the fixit of performance and see if it helps.

    Difficulty of Windows system performance slow computer problems

    You can also read the following article and see if it helps.

    How to resolve performance issues during startup in Windows Vista

    For more information, you can also consult the following article:

    Optimize the performance of Microsoft Windows Vista

    Hope this information is useful.

  • several imports from the same dump file

    Hello

    I have to import multiple related schemas - to avoid having to create multiple dump files can I just export them as an image file (owner = a, b, c etc.), and then run
    simultaneous imports

    as: export < dba_user > owner = a, b, c file is all.dmp
    -by slave_port_num
    nohup import < dba_user > fromuser = a touser = a file = all.dmp &
    nohup import < dba_user > fromuser = touser = file = all.dmp b b &
    nohup import < dba_user > fromuser = touser = file = all.dmp d c &

    My question is - if the importation of 3 process simultaneously read the file, can there be a problem?

    Thank you

    You should be able to run:
    nohup import fromuser = a, b, c touser = a, b, c leader is all.dmp &

  • Several versions of the same project AE Premiere Pro crash

    Hello!

    I guess this should be possible, but it seems that I do something wrong.

    I am a first Pro CS5.5 project. This is a tutorial how-not - to the that I use as an example of project to get myself started in CS5.5 AE with the body.

    Now... between the clips I want to first pro to show screens as "Lesson 1: when you don't...' then a video clip, then ' lesson 2: when you... don't ', then another clip video example." Etc...

    However, it would be nice if these screens of text between the two were animated. So I am doing a project in AE called "Lesson1", save it, just to make the text lively between the two.

    Import of the body: nice.

    Now, I would like to make the animation 'lesson 2'. I want he comes alive as in Lesson 1. So I have open project Lesson1, change the text and save it as AE project "Lesson 2. In this way, I don't do any what animation again.

    This would be the way simple, right? Instead of having to copy everything or instead of save settings predefined.


    It does not work.

    For some reason any body (even if AE is saved and AE is closed) now words together projects. Lesson1 indicates Lesson2 or Lesson3. It seems that AE projects are registered under different names, organization always check the versions published as an edited version or the original, with the exception of the version I want to show him.

    At some point, this will crash body or AE.

    I'll start trying to make different compositions in the same project, maybe that will work. However, why it works that way?

    Thank you

    Your workflow is a bit wonky. Here's the right way to use the AE projects within a timeline of the Organization:

    1. Select the clips you want to process in After Effects
    2. Right-click on any of the selected clips and select replace with After Effects Composition
    3. AE opens, save the project file, and then change the composition created with Dynamic Link.
    4. Do not close AE.
    5. Repeat for as many clips you need to treat in AE.

    It is always better to end up with an AE project incorporated into a chronology that integrated a lot of AE projects. I guess the crash is a dynamic link is trying to access several projects at the same time. Dynamic links can handle a handful of compositions far better that he can manage a handful of projects in the same timeline.

  • [ShareIt] I hope that ShareIt can share the files on several receivers at the same time.

    If ShareIt can share the files on several receivers at the same time, it will save a lot of time for me when I want to share files with a group of friends.

    Good idea.

    He will be brought back to the development team.

  • Is it possible under the EULA to have several virtual machines on a single physical hard disk while using the same OS license or do I need a separate license for each virtual computer?

    I have several programs that are not compatible with my 64 bit Windows 7 operating system.  I would like to run each different software under another virtual machine of VMWare (5 packs of different software programs and 5 different virtual machines of Windows XP).  These would all be installed on your laptop.  I can use the same license of Windows XP for each virtual machine, or do I need a separate XP license for each (different XP in case 5 licenses)?

    It is lifted directly from my EULA:

    1. GRANT OF LICENSE.
    The manufacturer that you grant the following rights, provided that
    comply you with all terms and conditions of this EULA:
    1.1 installation and use.  You may install, use, access,
    display and run one copy of the SOFTWARE on
    THE COMPUTER.  The SOFTWARE may not be used
    by more than two 2-processor both on the
    COMPUTER, unless a greater number is
    indicated on the certificate of authenticity.
    Then...
    This means that as long as you are running two or more instances of XP at the same TIME, you agree? Or does this mean that, after you install once, you have reached your limit?
    I imagine that most people (including those who are running Microsoft!) will say that the second interpretation is correct.
    However...
    If this is the case, anyone their hard drive as a backup to clone strategy would violate the EULA!
  • Using the same set processing on several site to site VPN tunnels

    Hi all. I have a rather strange situation about site-to-site VPN tunnel.

    On the one hand, I have a PIX 501 and on the other end an ASA5505 and a tunnel set up between them.

    The problem is that on the side of the PIX, I can't establish a tunnel, but when the traffic starts on the side of the ASA the tunnel established as usual.

    I checked the configurations on both ends and keys, passwords, mirror that LCD seems OK. The only thing that comes to my attention, it's that I have the same set of transformation used for 2 different tunnel on the side of PIX.

    Can I use the same set of transformation on several tunnels or should I set a different transformation for each tunnel? Could be the source of the problem?

    Use it on PIX

    card crypto set pfs group2

    Or on ASA, use:

    card crypto set pfs Group1

  • Pair several devices on the same COM Port that use the stack for windows by toshiba bluetooth?

    I have several instances of the same device...

    I wish that they all use the same COM Port when connecting to my Toughbook.
    The application that will receive data from these devices will only monitor a single COM Port assigned to.

    I have only one active connection both for couples... That's why Ifeel, this should be possible.

    Any help would be greatly appreciated

    Thank you

    Hello

    Please contact the Microsoft Community Forums. I understand you want to pair multiple devices on the same COM Port using Bluetooth.

    Unfortunately, it is impossible to pair multiple devices on the same COM Port using Bluetooth as it is by design.

    With the help of Windows-related issues feel free to post on the Forums of community of Microsoft, we will be happy to help you.

    Thank you.

  • Make more small size svg file using the same drawings?

    Hello

    I am a beginner Illustrator, so I have a question, maybe it's stupid, but I've still found answer.

    I use the same design on a single document, copy this drawing and when I save the file, it is large (about 5 MB). I was wondering is it better that this, perhaps some option to see the drawing as a file which is located in different places on the file, then he remembered only one form and locations, file size if would increasingly small?

    If I understand correctly, you want a unique description of an object that you can use as many times as you want without bloating the size of the file.

    It is a symbol:

    https://helpx.Adobe.com/Illustrator/using/symbols.html

Maybe you are looking for