Set multiple items with javascript function in chart link

Hi Folks
I am able to use the javascript $s function to set the value of one item from a chart link. I need to pass values to multiple items.
Is there a way to use javascript function to pass values for multiple items on a page from a chart link
Appreciate your responses
Thanks
Gopal

Hi Arnau,
You need to surround your JavaScript code like this (without the spaces before and after script):
< script language="Javascript">
  window.open("<%=ABAP_VARIABLE%>").focus();
</script >
Regards,
Patrick.

Similar Messages

  • Can't select multiple items with shift key os 10.7

    I can use command A to select all, and I can select multiple items with command and individually clicking each one, but not using Shift and clicking on the first and last items.  Any ideas?

    You need to display the window in column or list view. Shift-clicking items won't do that in icon view.
    (64793)

  • Set hidden item in Javascript

    Hi,
    I am having a hidden page item P4_SELECT in my page. I am trying to set this page item with a value in javascript function.
    function getTheCurrentRow(triggerItem){  
        alert( triggerItem.slice(6));
       document.getelementbyid(P4_SELECT).value=triggerItem.slice(6);   
    // $x(P4_SELECT).value=triggerItem.slice(6);
    </script>Eventhough i am getting value in the alert getting javascript error "P4_SELECT Undefined" .
    When i checked the "view Source" of the page it is having this line in it
    <input type="hidden" name="p_t04" value="" id="P4_SELECT"  />I tried
    $x(P4_SELECT).value=triggerItem.slice(6);But getting same result only. Can't we set hidden item values in Javascript.
    Regards,
    Jyothi

    Hi,
    If you are on Apex 3.x or higher , try
    function getTheCurrentRow(triggerItem){  
    alert( triggerItem.slice(6));
    $s("P4_SELECT", triggerItem.slice(6));   
    /* Alert hidden item value you did set */
    alert($v("P4_SELECT"));
    </script>Here is link to Apex JavaScript API document where you can find functions $s and $v I did use
    http://download.oracle.com/docs/cd/E14373_01/apirefs.32/e13369/javascript_api.htm#CDEEIGFH
    Regards,
    Jari

  • Set application item from javascript?

    Hi!
    Is it possible to set an APPLICATION ITEM from javascript? If so can some one please point me to the thread, or a FAQ or an example, etc?
    Thanks!
    Dave Venus

    dvenus1,
    Sure. In the script below I check variables and populate based on what I find...
    <script language="JavaScript" type="text/javascript">
    function Populate_fld()
    var formVehicle = document.getElementById('P9_HIDE_VEHICLE').value;
    var formState = document.getElementById('P9_HIDE_STATE').value;
    var formTag = document.getElementById('P9_HIDE_TAG').value;
    var formName = document.getElementById('P9_HIDE_NAME').value;
    document.getElementById("P9_VEHICLE").value = formVehicle;
    document.getElementById("P9_TAG").value = formTag;
    document.getElementById("P9_STATE").value = formState;
    document.getElementById("P9_VISITOR_NAME").value = formName;
    if (formState = " ")
    document.getElementById("P9_STATE").value = "FL";
    </script>
    Keep Smiling,
    Bob R

  • Setting application items through javascript

    Is there any way to modify application items using javascript? I would work with page items, but I need something that is guaranteed to be in the session state.

    Oh yes, I know that. Well here's the exact problem (I've posted threads on it from a couple different angles previously):
    - I am trying to open a popup with a report region such that I can send a query to the popup some how, without doing a page submission of the parent page.
    - The current method I am using is to send the query by URL, but I'm reaching the limit of URL length, and it's not a particularly secure solution.
    - My latest idea was to pass-by-reference (what this thread is about), but this presented a couple of problems.
    1) I could set a parent page item dynamically by JS, but the only way I know of loading the information automatically in the popup is using onLoad -- but that's too late.
    2) I could use session state, but I risk Region condition: javascript is enabled?, page session items are not set until a page is submitted, and application session items are not accessible by JS.
    I was thinking that maybe there is some way of accessing browser session state with JS, but I guess not....

  • Problem saving Reader extended PDF created in Livecycle with Javascript functions built in

    Afternoon
    I have created an interactive PDF in Livecycle with built in Javascript functionality.  I need users to be able to complete and save the PDF so have saved it as a Reader extended PDF.  The problem I'm having is that when a user completes the form,saves it, and then opens it again the Javascript functionality is not showing despite showing the original selection that the user has made.  The Javascript is simply a dropdown menu that will show a different table based on the selection so isn't anything major.
    I've trawled forums and this is driving me mad so I'd appreciate some help.
    I am using Adobe Pro XI.
    Thanks in advance
    Ben

    At the moment I can't sorry.  I've run the Javascript debugger in Adobe Pro and it seems there are some errors
    Acrobat EScript Built-in Functions Version 11.0
    Acrobat SOAP 11.0
    ReferenceError: Table is not defined
    1:XFA:form1[0]:TextFieldContainer[0]:#subform[3]:#area[1]:Button1[0]:initialize
    ReferenceError: Table is not defined
    1:XFA:form1[0]:TextFieldContainer[0]:#area[2]:Button1[1]:initialize
    ReferenceError: Table is not defined
    1:XFA:form1[0]:TextFieldContainer[0]:#area[3]:Button1[2]:initialize
    ReferenceError: Table is not defined
    1:XFA:form1[0]:TextFieldContainer[0]:#area[4]:Button1[3]:initialize
    Basically the form has been built in Livecycle Designer and have drop down menus that show or hide tables depending on the selection but when I Reader Enable the form and users make a selection and then save the form it is not showing the table when it is opened again.
    I appreciate your help

  • Problem saving Reader extended PDF with Javascript functions built in

    Afternoon
    I have created an interactive PDF in Livecycle with built in Javascript functionality.  I need users to be able to complete and save the PDF so have saved it as a Reader extended PDF.  The problem I'm having is that when a user completes the form,saves it, and then opens it again the Javascript functionality is not showing despite showing the original selection that the user has made.  The Javascript is simply a dropdown menu that will show a different table based on the selection so isn't anything major.
    I've trawled forums and this is driving me mad so I'd appreciate some help.
    I am using Adobe Pro XI.
    Thanks in advance
    Ben

    http://forums.adobe.com/community/livecycle/livecycle_modules_and_development_tools/livecy cle_designer_es
    Karl Heinz Kremer
    PDF Acrobatics Without a Net
    PDF Software Development, Training and More...
    [email protected]
    http://www.khkonsulting.com

  • Setting User Preferences With Javascript In Acrobat X

    Hi All,
    Is there a way thru Javascript to programatically set a value in the User Preferences?
    I am trying to create a batch sequence that exports PDFs to HTMLs. In the Acrobat X preferences, there is a conversion option that sets the option of "Run OCR If Needed" to true or false.
    Edit --> Preferences --> Convert From PDF --> HTML --> Run OCR if needed (True|False)
    Depending on conditions, I need to programtically set the value of this preference during the batch sequence before I export the document to HTML. Is this possible? Any help would be greatly appreaciated.
    Thank you,
    Teri

    There are very few user preferences that can be controlled with JavaScript, and this isn't one of them.

  • Help with javascript function

    I am getting a list of document urls from First Class by a
    loop, and I need to know how to save the identity of the one in the
    list that the user clicks on. I have tried many methods, but have
    nearly succeeded, if only I can solve the following problem. I have
    a javascript function called by the onclick method of <a
    href>, and I have used ToScript to pass the identity on to the
    next page. But I can't put the javascript variable into th
    ecoldfusion array. Here's the script:
    function getUrlNameFromLink(linkNumber){
    <cfoutput>
    var #toScript(XMLContent.rss.channel.item[3].link.xmlText,
    "jsURL")#;
    </cfoutput>
    alert(jsURL)
    This gives the correct link to the alert, if I hard-code the
    3 into the bracket. How do I use the linkNumber variable
    instead?

    well, using AJAX, and if your cf array is stored in a
    persistent scope
    (i.e. session), you could actually do it...
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com

  • Select tag with JavaScript function

    I am using a selectOneMenu tag for navigation. After the selection I use a button to go to the selected page. I would prefer to go to the selected page without using an additional button. I think I have to use a JavaScript function with the attribute "onchange". How does this JavaScript function look like?

    I use something like this, it works fine
    <h:selectOneMenu id="selectedEndorsement" valueChangeListener="#{engageListServiceBean.changeEndorsement}" value="#{engageListServiceBean.selectedEndorsementNum}" onchange="submit()">

  • Example of setting page item using javascript

    Does anyone have an example of setting the value of a page item (hidden) using javascript? I have seen the following in the Forum but I am having trouble implementing it. If someone could show an example of a region it is called from, and the javascript (and where it is placed), that would be great.
    I have tried something similar to this without luck so far:
    function setValue(){
    $x('P1_FIELD').value = 'Oracle';
    Thanks!
    John

    Hi VS,
    you should really use a "Set Value" dynamic action for that, that's much more transparent than using the onclick definition in the button attributes.
    Regards
    Patrick
    Member of the APEX development team
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Create new item with javascript

    Hi,
    I wrote javascript with a new item I created.
    I would like asking how I can call this javascript from the HTMLDB form that I created.
    Thanks,
    Sheli

    In the form you have an item. Go to that property in Form element attribute you can call that function.
    by giving javascript:"function_name()"; in Form Element Attribute
    Regards
    Chandra

  • Ungroup All Items with JavaScript, Illustrator CS6

    I'm working on pretty complicated Illstrator files. Each file has 20 or so layers, and many of those layers have multiple sublayers. Each of those sublayers contain many grouped items, and those grouped items contain additional grouped items. And so on. There's literally hundreds of groups in each file, and I don't want to manually ungroup them.
    So I'm I writing attempting to write a Javascript to ungroup all grouped items and keep them inside the correct layer. I'm new to Javascript and new-ish to the concept of recursion. My idea is to loop recursively through all the layers, then loop recursively through all the grouped items, then move all items above the grouped items. That seems to be what other people have demonstrated on this forum (or at least how I understood it). I'm posting a screenshot of what I've written so far. What I have ungroups many groups, but errors out eventually. Any replies, ideas, or references would be greatly appreciated. Thanks.

    I think you will find some resources in the Illustrator Scripting forum.
    http://forums.adobe.com/community/illustrator/illustrator_scripting
    Do a search for "ungroup" or something similar.
    http://forums.adobe.com/message/2077311#2077311

  • Setting an Item with source

    I have a group of textboxes I want to populate with stored data, it's an edit existing data page. I've written the following under Source for one of my textboxes:
    SELECT process_valid
    FROM maintenance
    WHERE id = :NEWITEMNUM
    AND seq = :SEQUENCE
    I have Source used set to Always, Type set to SQL query and maintain set to Per Session.
    It comes up blank, Session state shows null value and Debug doesn't show that the query was processed. How do I get Source to populate my textbox?
    Furthermore, I tried to use something like this:
    SELECT exp_date, purpose, miles
    INTO :P7_DATE, :P7_PURPOSE, :P7_MILES
    FROM maintenance
    WHERE id = :NEWITEMNUM
    AND seq = :SEQUENCE
    And I got a No Data error.

    Definetely sounds like a session state issue if the straight query doesn't work....
    How are the items that Scott mentioned being populated? You aren't accidently doing something like clearing the cache on your branch and repopulating them too late on page load?
    What if you replace :NEWITEMNUM and :SEQUENCE with hard coded values within Apex? Does all look well then?

  • Return Multiple Items with One Lookup Value

    Hi there,
    Within my data set there are multiple values that I would like to return into a different table.
    For example:
    In the "players from australia" table I would like to search the main data set for the "AUS" tag in column B and then automatically display the names of those players.
    There was something similar posted a few days ago Search sheet and return associated values for multiple matches and I tried to apply those formulas to my data but it didn't work...perhaps slightly different application of the function.
    fyi: the "category" table is simply to add up the number of players from each country and return a numerical value, as opposed to the names. I also use it as the cell from which to determine which value to search and display, i.e. A2 for the AUS players to be displayed in the empty table.
    Any help would be greatly appreciated!!
    Ed.

    You could try something like this:
    The formula in the Index column, copied down:
         =B2&COUNTIF(B$1:B2,B2)
    The formula in A2 of the Players From table, copied down and right:
        =INDEX(Table 1::$A,MATCH(A$1&ROW()−1,Table 1::$D,0),)
    To suppress the display of the red warning triangles, you can wrap that in IFERROR, like this:
         =IFERROR(INDEX(Table 1::$A,MATCH(A$1&ROW()−1,Table 1::$D,0),),"")
    This takes the value in row 1, appends the row number it's on less 1, and uses MATCH to find what row contains that value in the Index column of the other table. That row number is fed to INDEX, which returns the value from column A.
    SG

Maybe you are looking for

  • Allow external host to relay through Ironport?

    What is the "safest" way to allow an external host to relay e-mail through our Ironport? I know it's not "recommended", but I don't have any choice. I guess I could set up the external IP that's allowed to relay in Mail Policies --> Hat Overview - Re

  • Cannot Enable Skype To Go

    My Skype To Go Number Status kept showing "Disabled".  Even when I click on the "Enable" word, it still comes back with "Disabled" highlighted. Anyone knows how to solve this issue? Thanks.

  • Insert PDF from EchoSign

    I am attempting to 'insert' PDF files that I sent out and received through Abobe EchoSign.  The insert feature is not live.  I suspect that the 'secured' nature of the file is the reason; however, I am the author/manager of the file!  Any help is wel

  • IDM 6.0 Questions

    Hi there, my company�s planning to get the Sun IDM. There are some Questions left and maybe someone can help me answering them. - Is it possible to use a MS SQL DB as Repository or must it be an MySQL? - Can SAP deliver timezone informations? (so i c

  • Skype Doesn't Open at all?

    Tried to open skype but with no success. Please help me, thanks in advance. I'll provide any information neccessary. Solved! Go to Solution.