$x_Hide/Show/Toggle works on a button, how about select list or tabs

** After looking at the issue for days I think everyone must know what I am trying to do and a Carl pointed out they don't so here is the Readers Digest Condensed version.
I want have a single page that displays or hides regions depending on what the user want to do. So there is a single region that provides summary data and multiple regions for updates or reports that only show when that option is selected. I have got it working with buttons, thanks to Carl for his examples and numerous posts.
Now the powers that be see that as too much clutter on the screen and want a select list for the options, as there may be 10 or 12 options on a single "page." Hopefully this clarifies what I am trying to do.
I don't see anyway for it to work on tabs, at least not the tab sets in ApEx but select list have a "Display As" option for "Select List Returning URL redirect."
This sounds like the button "Optional URL Redirect" property. I have the code working on buttons on the same page so I added a select list and tried it.
The #REGION_STATIC_ID# is set up on the template of the region type being used and the regions hide and show as expected with the buttons.
So I set up an item on the page as a "Select List Returning URL redirect"
I created a static select list as:
STATIC2:Option1;javascript:$x_Hide('REGION1');$x_Hide('REGION2');$x_Show('REGION3')
I tried it with single quotes around the returning URL, and got
mod_plsql: /pls/htmldb/'javascript:$x_Hide('COBORROWER');$x_Hide('PROPERTY');$x_Show('BORROWER')' HTTP-400 Name "'javascript:$x_Hide('COBORROWER');$x_Hide('PROPERTY');$x_Show('BORROWER')'" is longer than 30 chars
without single quotes and got
New, blank screen with REGION3
mod_plsql: /pls/htmldb/'javascript:$x_Hide('REGION1');$x_Hide('REGION2');$x_Show('REGION3')' HTTP-400 Name "'javascript:$x_Hide('REGION1');$x_Hide('REGION2');$x_Show('REGION3')'" is longer than 30 chars
I took out the java stuff and put www.yahoo.com and got
Not Found
The requested URL /pls/htmldb/WWW.YAHOO.COM was not found on this server.
So the URL is being appended to the /pls/htmldb...
Hmm... I also removed "javascript:" and tried with and without single quotes... no luck... still appending the returning URL to /pls/htmldb/.
Tabs would be best but a drop down list is cleaner than 8 buttons.
Ideas? Spare change?
I may need it :)
Sam
Message was edited by:
slavanaway
Message clarified by:
slavanaway

What a difference a day and a pointer make.
I created a test function in the page html header
<script type="text/javascript">
function test(){
window.alert('Function test');
</script>
Changed the static list to
static2:Option1;javascript:test(),Option2;javascript:test()
and the function worked. I then changed the function to
<script type="text/javascript">
function test(){
$x_Toggle('REGION1');
</script>
and the region toggled on and off.
I then changed the select list to
static2:Option1;javascript:test(),Option2;javascript:$x_Toggle('REGION2')
and region1 toggled while Option 2 produced a blank browser page with the "REGION2" in the upper left hand corner.
I made functions for Option1, 2 and 3 with the appropriate $x_Hide/Show for each region and the select list now acts like the buttons.
Thanks for the help. I guess the call has an issue with the functions that are not on the page or ???. Maybe Carl can help, but since I needed more complex functions anyway this does not represent any more work while allowing me the option of a single page with multiple forms and reducing the complexity of the UI.
Score...

Similar Messages

  • Posible to start a report without a button, only i Select List ???

    Hi,
    another problem :)
    I have i lot of select lists in my aplication and the selectet items in the list are the values for my report. The problem is that i create a button for the select lists and when i click on the button the report was filled. Is there a option to start filling the report without the button ? I select the item in the list and now the report was filled with the values ? After the first select list i check the second. Select a value and the report is updated ?
    i hope someone understand my tricky question ^^"
    regards,
    Taki

    Create a lov
    Create a select item with submit referencing the same page
    Use the select with submit bindvariable as a bindvariable in the reportquery
    So when you select an item in the list, say the list has 4 values (1-4), eg. you select 2 in the selectlist with submit, the page redirects to itself putting the value 2 in the binvariable (the selectlist with submit), in the reportquery you refernce to the bindvariable in the where clause. Which contains the value 2. There are probably much more advanced ways to do this. Just started out myself. All the best. If it still isn't clear I give an even more thorough explination. Good luck.
    Message was edited by:
    Rik

  • 3 buttons and 2 select lists in a single line

    Hi,
    I have an application which has 3 region buttons ( say, b_1, b_2, b_3) and 2 selects lists (say, sl_1, sl_2). I want to display all the five buttons and items in a single line in the following order:
    b_1 b_2 sl_1 b_3 sl_2
    I have set Begin on new line = no
    and Begin on new field = no, for both the two select lists.
    But it does not seem to work.
    Do anyone have any idea, how to sort out this issue?
    A quick reply would really be appreciated.
    Regards,
    AM

    Hi Vikas,
    Please have a look into the application at
    http://apex.oracle.com/pls/otn/f?p=34363:1:6206621111100168:::::
    I have created two select lists P1_X and P1_Y. These items are hidden on page load event. When the associated button is clicked the list should appear on the page.
    Written the following code in 'Pre element text' for each of the items:
    P1_X :: <input type="button" value="X" onclick="f_X();" class="t17Button" />
    P1_Y:: <input type="button" value="Y" onclick="f_Y();" class="t17Button" />
    Where, f_X() and f_Y() are displaying the select lists.
    As you can see, the select lists are appearing just below the html buttons, which I want side by side with the buttons.
    Could you please figure out the issue?
    If you want I can share my login details.
    Regards,
    AM

  • How add Select list in Interactive report search bar

    Hi , I am using Oracle Apex 4.2 and theme 25.
    I want to add select list in IR search bar. I am able to add buttons but i am unable to add items..
    Please guide me to achieve that ..
    Thank You,
    Nihar Narla

    Hi,
    There is no specify property called "Button Position " for page items. This is applicable for BUTTON only inside the Search bar.
    There is a property in IR region -"Item Display Position" for page items to display but only 2 options [Above/below]
    Thanks,
    --Loga                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Under the bookmarks tab, I do not have a tab for Organize Bookmarks. My prior version of Firefox had that, but it does not show up in version 4. How do I get that tab back?

    I am trying to get to the Organize Bookmarks tab and can not find it since I upgraded to Firefox version 4. It used to be under the bookmarks tab, but does not show now. How do I get it back?

    If this works, I will be grateful. When I downloaded firefox 4 all my book marks and their structure (folders subfolders sub-subfolders) as well.
    Tags might be better, huh?
    [email protected], if you have use for it.

  • How use select list whit ajax?

    when I use this code in my application I get this error
    XML Parsing Error: junk after document element
    <select><option value="1">- All Emps -</option></select><html lang="en-us" xmlns:htmldb="http://htmldb.oracle.com">
    --------------------------------------------------------^
    code use in application process.
    declare
    l_counter number;
    l_o_name varchar2(2000);
    begin
    owa_util.mime_header('text/xml', FALSE );
    htp.p('Cache-Control: no-cache');
    htp.p('Pragma: no-cache');
    owa_util.http_header_close;
    htp.prn('<select>');
    for rec in (select "RANDOMDATA"."CATEGORY" as "CATEGORY",
         "RANDOMDATA"."NAME" as "NAME",
         "RANDOMDATA"."ID" as "ID"
    from "RANDOMDATA" "RANDOMDATA"
    where "RANDOMDATA"."CATEGORY" = :TEMPORARY_ITEM)
    loop
    htp.prn('<option value="' || rec.id || '">' || rec.name || '</option>');
    end loop;
    htp.prn('</select>');
    end;

    Hi Andi.
    thanks for answering. But my problem dose not solved.
    XML Parsing Error: junk after document element
    <data><select><option value="1">-rec.name-</option></select></data><html lang="en-us" xmlns:htmldb="http://htmldb.oracle.com">

  • How to fill the details tab in tv shows with description

    Can anyone tell how to fill out the details tab metadata in the tv shows section of iPad? The tv shows purchased from the iTunes Store have the details tab beside the episodes tab filled in with helpful description about the show. Isn't there a way to do that manually for personally downloaded tv shows? It's not possible to buy every content from the iTunes Store. Please help if anyone know how to add description to tv show details.

    see your duplicate thread : How to fill the details tab in the iPad tv shows with description

  • How to make select list as read only

    Hi All.
    when i m loading a page ...how to make value of select list as read only ..
    i tried doing this ....
    i added readonly attribute to the select list's element attibute ...it is showing as read only field by darkening the select list field but ... the select list is editable even now... its allowing to choose from drag and drop ...
    Thanks & Regard ,
    Nandini

    I have the same requirment..
    I have a select list on a editable form and i want to make that one read only.
    When I use read only property it doent do anything. (But this is working for text items well).
    When I use "disabled' option it works fine. But then that value does not post when use POST the form. So making select list disabled is not a solution.
    Any Idea..
    Thanks
    mc

  • Maintaining work center list in Capacity Planning: Selection List in CM01

    Hi,
    Where can find the config route in SPRO for maintain work center into the Capacity Planning: Selection List in CM01?
    Thanks a lot!
    Min

    Mandy,
    Couple of combinations you should check,
    1. First try to identify "Selection Profile" which is used. In "CM01" go to menu Planning->Profiles->Selection Profile.
    2.Check the defination of this profile using transaction "OPA2". Here you need to look for "Work center Set" which is assigned.
    3. Now look at the defination of the workcenter set using transaction "CMS3", here is were we define as how the list is to be fetched.
    Hope this helps....Reward your points and close the thread if so,
    Regards,
    Prasobh

  • How about move icloud app software

    Dear Sir:
                Before buying iphone 4 app download software, after removed. Bought an ipad today but seems to be showing in icloud download the software .How about move icloud app software.
                                                        Dean 2/22

    Nour j wrote:
    Oh and, side question, When will OS X Mavericks be open to public and how much will it cost?
    http://www.apple.com/osx/preview/
    Will be released sometime in the fall.  Cost unknow at this time as Apple has not released this info to the public.

  • Robo v9 Show/Hide without Twisties - One button no longer working

    Hey there, as stated I am using Robo v9 with Show/Hide without Twisties (One button) with javascipts.  We have most of our images using DHTML drop-downs and when folks click on "Show All Images" on the page, the GIF changes to "Hide All Images" and all drop-downs (our images) and expanding text are diaplayed.
    It had been working all the time, but now it only works when I right click the topic in the TOC and choose "Edit Topic", then while in the Edit Window (Display view), when I do a View (Ctrl-W) and it displays the page within RoboHelp..I can click the "Show All Images" and it works like it always had.  BUT, if that page is not in the Edit Window, and I right click "Preview Topic", the click "Show All Images" (or on the DHTML dropdown itself) it will NOT show the images, *but the GIF image does properly toggle to "Hide All Images" (and if I do again, then it properly toggles to the "Show All Images" GIF, if I do it again), but now NO images are getting displayed for some reason.  It also NEVER works properly when I publish to our website (even when clicking the DHTML dropdown itself), but the GIF images toggle properly.
    If I right click and choose "Preview Topic" and click "View With" and use Internet Explorer 8 it still never works anymore, unless the topic is in the Edit Window (Display View), so I know the issue is not on the server.  It stops working after I do a generate and run on my pc.  Also when I view it IE8 within Robo (and Allow the Blocked Content to run the scripts), many instances of the same error is shown as:
    Message: Access is denied. 
    Line: 2646
    Char: 3
    Code: 0
    URI: file:///D:/Users/_RBH9_TPO-Generate/v9-testing/ehlpdhtm.js
    ...but I *do* have access to the folder system, but in checking the coding of the ehlpdhtm.js, that area show, where I believe line 2646, character 3 starts at the "values = getAttribute(element, prop );" line below...but maybe something does not exist:
    ==
      //End HTML code invoked function
    function InitEffect( element, prop )
    var values = null;
    if( getAttribute(element,prop)) 
      values = getAttribute(element, prop );
    else if( getAttribute( element, "currentStyle" )  && element.currentStyle.getAttribute)
      values = element.currentStyle.getAttribute( prop );
    else  if (element.style.getAttribute)
      values = element.style.getAttribute( prop );
    if( !values )
      return;
    var functions = new Array();
    ==
    I have a much older backup when restored, it all works properly again in all cases, but I have done so much work since then that I think would need to be manually redone.  I have played with keeping those some javascipts alone (in case I changed something) and updated the rest of the data files I had added, deleted the .CPD file, but it somehow stops working again, probably with some updated file.  I am not sure what specific files could be causing the negative impact that is preventing it from working.  Maybe if I knew what files could impact, I couldrestore those from my old backup.  The newer backups when restored do not work properly, so there was a point in time where something changed and is causing this.
    All prior versions of RoboHelp (v7 and v8) have always worked and still do.  I am using v9.0.1.262, as the latest version has not yet been allowed on our pcs (per security), but since my earlier backup works, I thought it may not be the issue, but wanted to tell you anyway.  ;->
    Any ideas on how I should proceed?  What files may have impact to cause it not to work anymore?  The showhide.js is the only .js to show up as a baggage file.  Also, the DHTML line does exits in each html page's code, as we are still using Robo v7 as the production software and the Show/Hide always works, and I copy them into the respective Robo v9 folders (and if new, then I copy them, then import them), otherwise the newer v7 updated pages are copied over the older v9 html files while RoboHelp is closed.
    Thanks in advance for any info you can provide!

    I may have figured out what to fix to get v9 back to working on the Show/Hide button, but not the "why?" .
    It looks to all be dealing with the Robo automatic html coding of where to locate the .js file(s)...here is a quick overview of this issue and what I did.  When I view the non-working pages within Internet Explorer 8 within Robo (and Allow the Blocked Content to run the scripts), I saw many instances of the same error is shown as this in the log, which implied since I *do* have access rights, maybe the file was just not being found.
    Message: Access is denied.
    Line: 2646
    Char: 3
    Code: 0
    URI: file:///D:/Users/_RBH9_TPO-Generate/v9-testing/ehlpdhtm.js
    OK, here are my findings.  EXAMPLE #1 and EXAMPLE #2 below are excerpts of the same file.  EXAMPLE #1 is from Robo v7 and is copied to the v9 folder after it was updated so our soon to be "production" webhelp will be from Robo v9 (instead of making the same manual updates in Robo v9 as in Robo v7, I copy the updated the .html file to the Robo v9 file system).  Note the direction of the directory slashes of the java scripts listed below, as they are all DOS type slashes (back slashes), EXCEPT for ehlpdhtm.js as it is the ONLY one using UNIX (forward) slashes.
    EXAMPLE #1 (from Robo v7)
    ==
    <link rel="StyleSheet" href="..\..\sty-std-topic.css">
    <script type="text/javascript" language=JavaScript x-save-method=compute-relative
    src="..\..\showhide.js"></script>
    </head>
    <body>
    <robohelp><script type="text/javascript" language=JavaScript1.2 src="../../ehlpdhtm.js"
    x-save-method=compute-relative></script>
    <script type="text/javascript" language=JavaScript1.2>
    <!--
    if( typeof( InitEffects ) != 'function' ) InitEffects = new Function();if( typeof( InitTrigger ) != 'function' ) InitTrigger = new Function();if( typeof( FilePopupInit ) != 'function' ) FilePopupInit = new Function();if( typeof( TextPopupInit ) != 'function' ) TextPopupInit = new Function();
    //-->
    </script>
    ==
    EXAMPLE #2(from Robo v9)
    This is from the restored backup of the Robo v9 files that always work when I restore them, and note they are ALL UNIX (forward) slashes.  These backup files were generated from Importing/Upgrading a copy of the Robo v7 files into Robo v9.
    ++
    <title>[Endpoint Protection] Symantec Overview</title>
    <link rel="StyleSheet" href="../../sty-std-topic.css" type="text/css" />
    <script type="text/javascript" language="JavaScript" src="../../showhide.js">
    </script>
    </head>
    <body>
    <?rh-script_start ?><script src="../../ehlpdhtm.js" type="text/javascript" language="JavaScript1.2">
    </script><?rh-script_end ?>
    ++
    Additional info: The following is from another file from the Robo v9 backup files that always WORK and once again they are ALL UNIX (forward) slashes. 
    ~~
    <link rel="StyleSheet" href="../../sty-std-topic.css" type="text/css" />
    <script type="text/javascript" language="JavaScript" src="../../showhide.js">
    </script>
    </head>
    <body>
    <?rh-script_start ?><script src="../../ehlpdhtm.js" type="text/javascript" language="JavaScript1.2">
    </script><?rh-script_end ?>
    ~~
    BUT since all .js files are referenced in EXAMPLE #1 have DOS slashes (back slashes), EXCEPT for the ehlpdhtm.js, I decided to change the line in ehlpdhtm.js FROM src="../../ehlpdhtm.js" TO src="..\..\ehlpdhtm.js" and IT (this one page) BEGAN WORKING AGAIN after I published.  So having all DOS back slashes DOES work in Robo v9!!!!  BUT it appears that Robo v9 only generates new pages using UNIX (forward) slashes in ALL coding.  I've read about issues like this occurring with the FireFox browser, but we only use IE8, and have not read anything like this related to IE8 issues. 
    So if all UNIX forward slashes and all DOS back slashes can work in Robo v9 in finding and using ehlpdhtm.js, (the Show/Hide buttons function properly) why is this problem existing in Robo v9 when there are mixed "slashes" (using forward and backward)?  ...and the mixed slashes ALWAYS works in Robo v7!  They do not have to all be in the same direction in Robo v7 as it appears to have to be in the newer/more advanced Robo v9.  Why does it matter that all slashes need to be all the same direction, if Robo v9 CAN actually read and figure out the DOS back slashes (formatted by Robo v7 creation) and actually generates UNIX forward slashes for the .js files in new Robo v9 output within the .html?
    More importantly will I have to always do a Global search and replace in Robo v9 to change the direction of the "back slashes" when I copy updated Robo v7 .html files into the Robo v9 folders (instead of manually reworking each change), while in transition from v7 to v9?
    Thanks in advance any information, recommendations, and feedback as your time is greatly appreciated!

  • I was listening to music on my ipod shuffle when it went off.It hasn't turned on since then.When i connect it to the computer,the connection and disconection sounds play continuously without the ipod showing.What could be wrong or how can i get it to work

    I was listening to music on my ipod shuffle when it went off.It hasn't turned on since then.When i connect it to the computer,the connection and disconection sounds play continuously without the ipod showing.What could be wrong or how can i get it to work?

    Hello,
    I am currently an owner of an Ipod Touch 4th generation. I see you are having problems with your Ipod Touch, so I will try to find a solution to your problem.
    Hold down the Sleep/Wake and Home buttons for at least 10sec. or until Apple logo appears (Nothing will be lost, this is just a "Hard Reset")
    Hope that helps!
    If none of the above solutions work, can you please respond back ASAP as I will try to find another solution to your problem (This might even help others with the same problem!)
    Cheers!
    Pizza98704

  • While updating software of Ipad, it stop working and only shows the Apple on screen. How can I recover?

    While I was updating the software of my IPad, it stopped working and only shows the apple logo. How can I recover my IPad?

    Have you tried a reset ? Press and hold both the sleep and home buttons for about 10 to 15 seconds, after which the Apple logo should appear - you won't lose any content, it's the iPad equivalent of a reboot.

  • How do I move Elements 8 projects (slide shows) from a Windows XP computer to new Windows 7 computer that also has Elements 8 on it so that the slides shows will work (Elements 8 works well on the Windows 7 computer & I have done several new slide show pr

    How do I move Elements 8 projects (slide shows) from a Windows XP computer to new Windows 7 computer that also has Elements 8 on it so that the slides shows will work (Elements 8 works well on the Windows 7 computer & I have done several new slide show projects on it)?    I tried backup & restore without success.  I have also found the .psess files and copied them to the catalog in the new computer but when the sides shows are opened none of the images or music is there.  Only the text that I entered shows.  I have even tried to replicate the file paths from the XP computer to the new computer to see if that will help.

    UPDATE:  By a stroke of luck I happened to find a catalog link (a PSE8D file) in the 'My Catalog' file where the imported data was stored.  When I clicked on it to investigate what is was 'magically' all of my transferred projects appeared in Organizer.  Upon further investigation I found that the projects transferred from my XP computer were stored in a hidden catalog that had to be accessed through the Custom Location option in Catalog Manager (accessed by clicking File then Catalog then Custom Location).  No Windows or Elements search revealed this fact.  I am appreciative that I just got lucky.  The Adode/Photoshop company was absolutely of no help.  If fact to me their structure is designed to avoid contact with their customers unless you're buying a new product.  Their products have many good features (even though user unfriendly) and it's a shame they don't value their customers more once the sale is completed. 
    Bottom line:  All of the projects (sideshows) have been recovered and work in my new Windows 7 computer.  I hope my experience helps others. 

  • My Location Settings button is not showing up in Settings App. How do I get it to show up?

    My Location Settings button is not showing up in Setting App. How do I get it to show up?

    Try Settings>Privacy>Location Services and switch it on.  You will see a list of apps that you turn on/off for location services.

Maybe you are looking for

  • Help needed with Sun Java Studio Creator and EJB in a Portlet Project

    Hi I have created an web-application with JSF in Sun Java Studio Creator 2. The web application uses a lot of EJB's which acts as the dataProviders. In a typical jsp page i have more that one data providers(the EJB's) getting used. When i run the pro

  • Org.clamav.freshclam and permissions error on freshclam.log

    This is an adjunct to a branched discussion in this thread regarding org.clamav.freshclam continually generating error reports in the system log. After enabling, but not starting, Mail service on my server (XServe Dual-G5, 10.5.8 Server) my system lo

  • Display Smartform Pdf output in ABAP Webdynpro application

    Hello, there is a solution for displaying Smartform output in Java Webdynpro application in this forum. Since i want to start an project in ABAP Webdynpro i need a solution for this technology since i don't want to recreate all the paperwork again us

  • Projects disappeared after 10.1 update + crash

    After updating to 10.1, I let Final Cut do its thing when it opened - (consolidating libraries I think). During this time, it froze, and after a long time, I decided to quit the program as nothing was happening. After re-opening, hardly any of my pro

  • Monitoring Oracle SQL queries in VBA

    I currently use VBA with Excel to generate reports based on data within an Oracle 9 database. The amount of data is very large and the reports can take a long time to process. I have added status bar progress indicators for the majority of the report