Javascript on Button displayed among this region's items?

Hello,
I have implemented Javascripts to used manual LOV, has well describe in "How To", and everything work well.
I now want to put a button in my LOV page to return back a fix value to the calling page/item. From this button, I'm calling the javascript javascript:passBack('fix_value');
If I put this javascript in URL Target of a region button, it is working well.
But position of the button is not what I want. If I try to use a "button among region items" and I define a branching with URL target equal to the same javascript, I get a page not found error.
Is there an easy solution for this?
Thank you
Jean

check out whether this helps you.....
when we create a button then automatically javascript:doSubmit("request") function gets attached to it and in this function , current page is submitted.
If you have created the button among the region items , then i am pretty much sure that you wanted to display this button adjacent to some item (let us say A ) in the region
If above assumption is right then i think it is better to use a IMG tag (displaying the button ) in < Post Element Text > of item A instead of creating the button in the region...
e.g then you can put the same in <Post Elment Text > of item A of the region
<IMG SRC="img src"
alt="Query" border="0" align="bottom left"
onclick = "<call javascript>">
here you can
1. use HREF to redirect ....then no need of javascript function
2. put "#" in HREF and use a javascript function to re-direct...
i have used this approach extensively and it works fine ...plus it gives you freedom to exactly place the button where you wanted on ur page ...
P.S. i tried creating doSubmit(request) function on the page and thought that this function might override the HTMLDB's doSubmit function ..but it did not work
----------------------------------------------------------

Similar Messages

  • Button displayed among this region's items clears fields

    I've created a Button displayed among this region's items clears fields that's in the middle of my form, set to Submit Before...
    When click the button, it submits and the field items above the button clear off the form.
    I don't need it to submit, I just need it to make three fields appear on the form if needed, hence the use of the button.
    Thanks in advance!

    Hi,
    userRRRYB wrote:
    The user is cataloging documents. On the form she enters document number, title, owner, and document type (Work Instruction, Verification Sheet, Pallet Layout, etc.) If the document type is a Product Label, there are three more fields that need to be populated. Because the Product Label is one of over ten types and it's the only type that requires these extra fields, I got the bright idea to create a button that, when clicked, displays the fields.
    The problem is that the button is 'among the region's items' and submits when clicked (Request = Go) so it submits and clears the fields that have been populated prior to the fields in question.Assuming you are on Apex 4.0+ Instead of using buttons to display 3 extra fields when document type is product label use dynamic action to hide and show items, Here is how you create it
    1) Create standard dynamic action
    2) Selection type (item) -> item(s) -> :PXX_DOCUMENT_TYPE -> Value (20) Assuming you have created select list for document type field
    3) Specify true action -> show -> item(s) (select the three items you want to display) -> create false action (checked)
    By using DA your field values will not clear out.If you are on 3.0 you can do this with javaScript.
    It would be easier to help you out if you provide APEX version or recreate your problem on apex.oracle.com
    Regards,
    -Senthil

  • "Save Search" button displays above SubTab region for QueryRN

    I've created a subTab layout and on the first tab, a QueryRN with resultsBasedSaearch, I've enabled simple, views, and advanced panels. The QueryRN is on the first tab, I have other details on the subsequent tabs.
    The "Save Search" button displays above the subTab bean. This means that when I navigate to another subTab, I still see "Save Search".
    Can I move this button declaratively? or do I need to show and hide it with controller code?
    thank you,
    Jerry.

    hmm. the other tabs do not have query beans. It seems this button defaults to a page level button even though I do not have a page level button layout. btw, I'm using the OASubTabBarBean declaratively.
    --Jerry.                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Button in region's items - submit

    I create a button using "Create a button displayed among this region's items"
    with style = image.
    I want to call javascript from this button and i am able to do that.. but then it submits also. I check the source and there is a html code for submit. Is there someway not to have this submit.
    I think thats a very small problem, but i dont see any option for submitting and not submitting.
    Thanks in advance.
    prashant
    Message was edited by:
    Prashant

    Hi,
    I tried to exclude the Button Request Value but it is required.
    Vikas had a great post:
    Re: Javascript  button code
    it shows to hardcode a button in the POST ELEMENT TEXT of a previos item.
    Thanks for the post, Bill

  • Javascript on button item

    Hi, created a very simple (two column) report based on pl/sql. Under edit page, html header added a javascript function that will opens the my report on a new popup window. NOW, I created a button on my page with style of HTML Button. By pressing this button I like to call that javascript to open my report. But each time I press this button it acts as submit button. If I create an url it works but I like to do this with button. Where can I palce my call to javascript?
    thanks for your help
    -iahmadi

    Hi:
    It appears that you have created a button that is 'displayed among this region's items'. AFAIK ,this kind of button , when clicked, submits the page unconditionally. Drop this button and create the button as a 'region button' (Create a button in a region position).
    Varad

  • Google maps don't display right, part is good but about half of it says "we are sorry, but we don't have maps at this zoom level for this region." Zooming out doesn't help.

    When displaying a Google map I get about four vertical strips that alternately display good and in gray bands. The gray area displays the message "we are sorry, but we don't have maps at this zoom level for this region." Zooming out doesn't get rid of the gray areas.
    I've had this problem for over a year and get around it by using either MS Internet Explorer or Google Chrome which work Ok. Otherwise Firefox works fine and I use it for everything else except Google Maps.
    I've tried an uninstall of FireFox and then reinstall but it didn't help. I don't remember what I was doing when this problem first showed up.

    You're welcome

  • Help I can't get my images and description from recordset to display in repeat region table

    Hi everyone,
    could somebody please help me, this is my first php and mysql website, I have a web page that is supposed to display a table with 2 rows 3 columns.
    In each column i want an image, a description and a paypal button.
    then i have a repeat region placed around the second row which should display 3 records at a time.
    The recordset worked when I tested it several times, and the paypal button displays in the browser, but the image and the description won't display and the repeat region doesn't work either as only one button paypal button displays.
    I have uploaded the actual page, in the hope that some could take a look and help me to find out what the problem is.
    Thanks

    In the second row, did you mean you want the three fields to display, not three records?  A record is one row of data.
    Start by getting a single row to display, and leave the paypal button out for now.  So that means you will see the first record in your recordset, the image and description.  To view the description, use the data bindings panel, expand the recordset and drag the description field onto the page in the table.  For the image, insert and image placeholder and point the source to a dynamic data source. Again, choose the approprate field from your recordset.
    Once that record is working, add your repeat region and test.
    For the Paypal button, I am not sure if each button will carry the correct information with it in a repeat region.  There has to be a way to dynamicall add the approprate data to the paypal link for each record.  You may want to also incude checkboxes or radio buttons and have only 1 paypal button - but that introduces other issues which we can tackle later.

  • Button Display Symptom

    I have 3 regions on a page and the 2nd region has 4 buttons and an SQL query report which displays data from EMP.
    There are two page item:
      HIDE_SHOW -- which is Show to show the data and Hide to hide the data.
      P1_SAL_LIMIT -- which limits the employees shown by salary: 0 (default), 1500 or 2000
    The buttons are:
      Show -- which, when pressed, shows the report (Not the entire region just the data lines of the report.)
                  (The Show button displays when  :HIDE_SHOW = 'Hide'. Note the data is hidden when this button displays.)
      Hide -- which, when pressed, hides the report
                  (The Hide button displays when  :HIDE_SHOW = 'Show' and the data is being displayed.)
      SAL > 1500 -- Which show only employees with sal > 1500
      SAL > 2000 -- which show only employees with sal > 2000
    The Query is
      select ename,job,sal
        from emp
       where :HIDE_SHOW = 'Show' and SAL > :P1_SAL_LIMIT
    What works:
      Show, Hide and Sal > 1500 work fine together.  Note: the Sal > 1500 button sets :HIDE_SHOW to 'Show' so one can see the data.
    But I need to do a computation when a Sal button is pressed, so here is what I tried.  The SAL > 2000 button is set up with Dynamic Actions (PL/SQL block and page refresh).  Note: I need to do a branch to (the same) page or a refresh rather than a page submit because of activity which may be pending in the other regions on the page. 
    What I need /expected when Sal > 2000 is pressed: Tthe Hide button will display because :HIDE_SHOW is set to 'Show' and data is being displayed.
    Problem when Sal > 2000 is pressed:  Even though I set :HIDE_SHOW to 'Show' in the computation, pressing Sal > 2000 has no effect on the Show button.
    It's a Session State problem, right?  But I'm not sure how to solve it without a Submit.   I added a Set Value to the DAs but that did not solve the problem.
    How do I get the "Show" button to react to the change in the value of :HIDE_SHOW?
    You can see it set up here:
    WS:  APEX_EXAMPLES_01
    demo / demo
    Application 16604 (Button Control), p. 1
    Thanks,
    Howard

    Yes, you're right, the Show buttons were not quite working, sorry, I was concentrating on the filters.  I fixed the hide show for the first region.  Region 2 is mostly there and you can replicate the functionality for that one. However, the Sal filter buttons for region 2 do work and you can see how it all works independently.  Please concentrate on the techniques.
    The basic steps for the filters are:
    1. Set the filter limit
    2. Set the Hide_Show variable
    3. Hide the Show button
    4. Show the Hide button
    5. Refresh the report.
    Notice the computations. They are needed to initialize the values.
    I also changed things so they don't trigger off the change of value of an item.  That just seems obscure to me when the user cannot directly change the item.  It seems better to trigger off button clicks. That's what the "Report 1 SHOW button" and "Report 1 HIDE button" DA are for.  If you look at them I think they are really easy to follow (Show button, Hide the other button, Set the Hide_Show filter, Refresh report)
    When you break it down into individual steps and give meaningful names to your elements (items, regions, da, etc..) I think it all becomes a lot more maintainable.
    I have definitely seen unmaintainable applications since I started with APEX way back on HTMLDB 1.6.  That said, they are mostly easy to maintain when things are well thought out and steps are broken down into easy understandable actions.
    Good luck!
    Thanks
    -Jorge

  • Align buttons vertically in sidebar region

    Good morning.
    Hope someone can help me with a problem I'm having.
    How do I align the buttons vertically in my region, they continually appear horizontally.
    ie.
    <Button1>
    <Button2>
    <Button3>
    not like <Button1> <Button2> <Button3> which is how it looks at the moment.
    Some Background Info:
    I am using theme 17.
    I have a region titled 'Letters' of type 'HTML Text' with a Sidebar Region template displayed in Page Template Body (3..) at Column 2.
    Apex version 3.2.1.00.12 (still!)
    IE 6 (still!)
    I would be very grateful for any advice.
    Thanks
    Sue

    Thanks for your speedy reply.
    I am using region buttons.
    I did try button items and they looked ok but I couldn't get them to call my javascript functions so I changed them to region buttons.
    How would you suggest I change the template? Would you change the button template, the sidebar template or place some css in the page/region header?
    Thanks
    Sue

  • In Security, clicking on the "Saved Password" button displays your current saved password for each site. It does not allow you to change a password. How would you do that?

    In Security, clicking on the "Saved Password" button displays your current saved password for each site. It only allows you to view and delete site passwords. It does not allow you to change a password. How would you do that?

    If you enter a new password Firefox should offer to change the password.
    *You may not need to delete the old password. Try "Refreshing" the page, entering the site again, you may need to let Firefox fill in the old password, then enter the new password, and Firefox should ask to save the new password. See:
    **http://kb.mozillazine.org/Deleting_autocomplete_entries
    *If you delete the old password, you may need to "Refresh" the site after deleting the old password.
    If you want to delete the password that has been saved do the following:
    #In the Tools menu select Options to open the options window
    #Go to the Security panel
    #Click the "Saved Passwords" button to open the passwords manager
    #Select the site in the list, then click Remove
    <br />
    <br />
    '''You need to update the following.''' The Plugin version(s) shown below was/were submitted with your question and is/are out of date. You should update to avoid known security issues with the version(s) you have installed. Click on "More system info..." to the right of your question to see what was included with your question.
    *Adobe PDF Plug-In For Firefox and Netscape 8.3.0 (''Note: this is a very old version and installing the current version may not delete it or overwrite it. To avoid possible problems with having 2 versions installed on your system, you may want to remove the old version in Windows Control Panel > Add or Remove Programs before installing the new version'').
    *Shockwave Flash 10.3 r181 (''this may be current but a new version was released on 2011-06-14 with a ".26" after the "181". You can use the Plugin Check below and/or look in Add-ons > Plugins for the version of Shockwave Flash that you have installed. The newest version will be shown in Add-ons > Plugins as "Shockwave Flash 10.3.181.26"'').
    *Next Generation Java Plug-in 1.6.0_24 for Mozilla browsers
    #'''''Check your plugin versions''''' on either of the following links':
    #*http://www.mozilla.com/en-US/plugincheck/
    #*https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    #*'''Note: plugin check page does not have information on all plugin versions'''
    #*There are plugin specific testing links available from this page:
    #**http://kb.mozillazine.org/Testing_plugins
    #'''Update Adobe Reader (PDF plugin):'''
    #*From within your existing Adobe Reader ('''<u>if you have it already installed</u>'''):
    #**Open the Adobe Reader program from your Programs list
    #**Click Help > Check for Updates
    #**Follow the prompts for updating
    #**If this method works for you, skip the "Download complete installer" section below and proceed to "After the installation" below
    #*Download complete installer ('''if you do <u>NOT</u> have Adobe Reader installed'''):
    #**SAVE the installer to your hard drive (save to your Desktop so that you can find it after the download). Exit/Close Firefox. Run the installer you just downloaded.
    #**Use either of the links below:
    #***https://support.mozilla.com/en-US/kb/Using+the+Adobe+Reader+plugin+with+Firefox ''(click on "Installing and updating Adobe Reader")''
    #***''<u>Also see Download link</u>''': http://get.adobe.com/reader/otherversions/
    #*After the installation, start Firefox and check your version again.
    #'''Update the [[Managing the Flash plugin|Flash]] plugin''' to the latest version.
    #*Download and SAVE to your Desktop so you can find the installer later
    #*If you do not have the current version, click on the "Player Download Center" link on the "'''Download and information'''" or "'''Download Manual installers'''" below
    #*After download is complete, exit Firefox
    #*Click on the installer you just downloaded and install
    #**Windows 7 and Vista: may need to right-click the installer and choose "Run as Administrator"
    #*Start Firefox and check your version again or test the installation by going back to the download link below
    #*'''Download and information''': http://www.adobe.com/software/flash/about/
    #**Use Firefox to go to the above site to update the Firefox plugin (will also install plugin for most other browsers; except IE)
    #**Use IE to go to the above site to update the IE ActiveX
    #*'''Download Manual installers'''.
    #**http://kb2.adobe.com/cps/191/tn_19166.html#main_ManualInstaller
    #**Note separate links for:
    #***Plugin for Firefox and most other browsers
    #***ActiveX for IE
    #'''Update the [[Java]] plugin''' to the latest version.
    #*Download site: http://www.oracle.com/technetwork/java/javase/downloads/index.html (Java Platform: Download JRE)
    #**'''''Be sure to <u>un-check the Yahoo Toolbar</u> option during the install if you do not want it installed.
    #*Also see "Manual Update" in this article to update from the Java Control Panel in Windows Control Panel: http://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox#Updates
    #* Removing old versions (if needed): http://www.java.com/en/download/faq/remove_olderversions.xml
    #* Remove multiple Java Console extensions (if needed): http://kb.mozillazine.org/Firefox_:_FAQs_:_Install_Java#Multiple_Java_Console_extensions
    #*Java Test: http://www.java.com/en/download/help/testvm.xml

  • InContext editing error: This region contains content with dynamic behavior added..

    We just set up a web site with InContext editing following the procedures in Business Catalyst documentation to do that. But now when we go to the administration section of the site, and turn on InContext editing, it won't let us update the text. We receive an error message:
    "This region contains content with dynamic behavior added..."
    Does anyone know what causes this problem, and how to fix it?

    Hi,
    InContext Editable (ICE) regions can only contains static areas like text and static  assets, it cannot wrap around javascript – populated areas or dynamic content like slideshows. (most likely causing the error)
    ICE can edit only static page content such as regular HTML content. It cannot edit any element that is dynamically updated for example a div (or another element) which is manipulated (created or its contents are modified) by JS– populated areas or dynamic content like slideshows. It cannot edit menus, content holders or content outputted by system modules or tags either.
    By default, on a page that has no ICE editable regions defined the editor attempts to find any regions you might want to edit and if possible make them editable. If it does not find the correct regions you want to edit you will need to explicitly define some editable regions.
    Refer to this article on Defining InContext Editing editable regions - http://kb.worldsecuresystems.com/838/cpsid_83855.html?bc-partner
    Hope this helps!
    -Sidney

  • Display vs. For Sale items... Need help thinking this out

    Hi,
    Okay, here's the problem.  I have created a separate catalog called Museum  for joden.businesscatalyst.com
    In that catalog is a sub catalog for Edwardian Jewelry.
    These products are not for sale, but I want to display them.   
    We also have a store with items in another catalog that are for sale.
    It does not appear that I can create a separate template for Online Store Modules that can be used for the Museum catalog, for when I add this catalog to a menu, it creates a product display but also has Add to shopping cart  buttons and the large images also have the add to button.  Since there is no inventory or price, it won't be added, but I am wondering if there is a way to keep this inventory separate from our overall store, display it on a different Module when clicked, etc.   Basically what I need is a display area for not for sale items and a regular catalog for sale items.
    http://joden.businesscatalyst.com/museum/edwardian-jewelry
    My client says that any catalog, even though it is a separate catalog called museum, will interfere with our inventory for the store.
    Not sure what to do  about this.  I could create static pages for sample items, but will lose our current museum of previously owned items and NFS items.
    I could create a gallery of special items for each jewelry period (BTW,  the fact that the photo gallery uses a complete folder rather than selected items in a folder is a real problem).
    None of these solutions seems to facilitate what I need to do.
    I have another client I am thinking of moving to Business Cat with the same issue. He wants to display samples of his previous jewelry creations that are not for sale, but also needs a current inventory.
    I'm starting to think BC is not going to be able to serve these larger clients.
    Jeff

    If you're wanting to remove the add to cart button from the template for products in a particular catalogues you're going to have to put something into place, BC won't do it for you in this case unfortunately.
    You can use the backup list view or a custom template to remove the add to cart from them.
    As for the detail view you just need to remove the '.moreoption' div - or if you don't want to show the price either then the 'prod_options' div.
    You could utilise a custom field (from inside the product options) and fill it with something like 'noSale'.  Then in the CSS have '.noSale .moreoption { display: none }'
    Add the custom tag field into your large product template somewhere at the top inside a class.
    If you fill it in, it'll hide, if you don't, it won't.
    There are other options, but this seems pretty easy. This also allows items in any catalogue to be not for sale, not anything specifically - so you could have multiple that are not for sale, multiple that are.
    Justin / BCTemple.com

  • V4.1 "You cannot perform this action in this region of the page" Bug?

    I am receiving an "You cannot perform this action in this
    region of the page" error when I try to add a link to an image. And
    yes I am in an editable region.
    The weird thing is, for the images that already have links, I
    can edit them successfully, but if I remove them I cannot add a
    link back to it.
    This site was originally being administered using contribute
    3.11 but the client is now using 4.1 could that have something to
    do with it?
    Thank you,

    I was also having this problem but I was able to confirm that it wasn't old code or javascript problems. In the process of troubleshooting we realized that some links were editable and others were not. Turns out all the links that used PHP (in this case an echo for the site url) were the ones that were uneditable.
    Since I've been creating pages and content with this method for years and have only had a problem in the last month, I don't really feel like this has been "solved". I certainly don't want to go back and edit all my pages using php for site organization but at least this will allow the client to make edits for now.

  • How to display the dynamic region in full size

    Hi,
    I'm not able to display the dynamic region in full size.
    In my page, i attached a dynamic region which refers a page fragment. This dynamic region contents are showing as small (scroll is there but i want to display fully).
    How to do this?
    Thanks in advance,
    Sundar

    More than likely it has something to do with your parent layout element. I'd suggest putting your region in an af:panelStretchLayout or similar container that stretches its children. Some of the elements can be a little tricky though, such as af:panelTabbed. It has an attribute that must be set to stretch its first child.

  • How to center a button in a sidebar region

    Unfortunately, position options for buttons only include left and right. If I want to center buttons in a sidebar region, how might that be done?
    It's easy in firebug to modify <td align="left"> to <td align="center"> which fixes everything, but I'm not sure how this might be overridden in apex.
    I've attempted putting center tags in the header/footer of the sidebar region and some stylesheet options (I'm a stylesheet beginner so who knows...) but I've not had any luck.
    Thoughts?
    Thanks!
    Paul

    Hi,
    It would depend on the theme that you are using and what else may be contained within the sidebar region.
    For example, in Theme 12 with only buttons in the region, you could add the following into the page's HTML Header setting:
    &lt;style type="text/css"&gt;
    .t12SideBarNav td td {text-align:center}
    &lt;/style&gt;.t12SideBarNav is the class name used for Theme 12's sidebar region and td td refers to a nested TD (table cell) tag within a TD tag within the region (the region, at least for Theme 12, is a table within a table). So, this aligns the contents of the inner TD tag which contains the buttons.
    Andy

Maybe you are looking for