Region position vs. among items buttons

Hello,
Can someone from the HTML DB team, please, explain the logic behind the different functionality between these tow types of buttons? Why can't/shouldn't I use URL Redirection – for example – with the 'among items' button? I searched the forum for JavaScript and buttons, and it seems to me like it could help a lot of us to be able to call JavaScript directly from a button among items.
Thanks,
Arie.

In retrospect, if I were to do this today, I would probably not even bother creating a button template, I would just create a display as text item with no label and nothing to display and just manually put the button in the Post Element Text like
[INPUT type="button" value="Click me"  class="..."
onClick="doSomething('#CURRENT_ITEM_NAME#')"]
<script type="text/javascript">
function doSomething(p_button_name)
// decide if page needs to be submitted
doSubmit(p_button_name);
</script>

Similar Messages

  • Can a button be easily moved between Items and Region Position?

    When a button is originally defined, we have to choose whether it is to be placed amongst the items in the regions, or placed in a pre-established region position. Once the button is defined in to one of those places or the other, is there any way to "reassign" it into the other location, i.e. move it between "in the items" and "in a region position"?
    Using Apex release 4.1.1.00.23
    Edited by: Mark T. on Feb 29, 2012 11:03 AM

    I don't believe so, but it won't take long to re-create.

  • How to popup a page from a button not in a region position

    Hello.
    I am using Apex 2.2.1. I have a form (not a report) on which I've placed a button that is positioned "among the items" as opposed to being placed in a specific region position.
    When the button is clicked I would like to have another page popup. The problem is that I can get this to work only if the button is placed in a region position. With the button in a region position, I define the target to be a URL and then place a call to the popUp2 function, as in:
    javascript:popUp2('f?p=&APP_ID.:32:&SESSION.::NO:::', 900, 700);
    This works fine.
    However, I need to position my button on the immediate right hand side of a form item. But when I create a button in such a position, I have no field in which to place the call to the popUp2() function. Instead, I have to create a "Branch to Page or URL" and then place my javascript call in the Branch field. Unfortunately, when I click the button, Apex wants to branch to page zero instead of the desired page. I saw that when I move the mouse over the button, Apex shows:
    javascript: doSubmit('MY_BUTTON_REQUEST');
    And, as mentioned, Apex tries to branch to page zero.
    How does one call the popUp2() function from a button that is not placed in a region position?
    Thank you for your help.
    Elie

    Hi Elie,
    I had the same problem ... I only got it solved with creating a hidden item and adding the input-tag into the "Post Element Text" field.
    Just have a look in the source code of your page, how a button is build and copy the necesaary code to the mentioned field. So you get a button with ApEx layout and can add your javascript call.
    chrissy

  • A button in a region position

    "a button in a region position" - hello, is it possible to place this kind of button among region items?
    in Button Position options i couldn't find possition i need..
    thx, mariam

    Hi,
    I think there may have been a couple ways of doing it but I can only remember the one.
    Create a new template specifically for that button copying a previous style. You then reference that button type in the button amongst region items. This custom template would have something like:
    <a href="myHost();" class="t6Button">#LABEL#</a> Or in your case a link to a page.
    If you want it for a different piece of functionality then let me know & I'll try to remember the other way I did it.
    Mike

  • Why can't region item buttons perform database action?

    Looking at my Easy Oracle HTML-DB book, page 211, the author states that a database action attribute is only available for a button in a region position.
    Is it possible to 'force' a button created among a region's items to update the database (INSERT, UPDATE)?
    Thanks,
    Maggie

    You could make a custom procedure to fire when a button is clicked. Within your procedure you can update/delete/insert as you wish.

  • URL button among items not passible, why?

    Hi,
    I'm trying to put an URL button among items, but it's not possible. The only places available are left, right, up and down region. Why?
    How can I position an URL button among items?
    Thanks.

    Hello gfrancoeur,
    Create your button selecting the option: Create a button displayed among this region's items. (the second choice)
    This will create a button within the items of your region and not require you to pick Top, Bottom, Left, Right or the like.
    Don.
    You can reward this reply by marking it as either Helpful or Correct :)

  • Can's create buttons in a region position

    Hi every body,
    i'm trying to create a button in a region position, but i can´t create it.
    I select this option, but i can't select the region cause i haven't any list to select the position. I haven't any form to select any parameters.
    Morevoer, when i try to edit a old button creted in a region position i recive the next error:
    Error inesperado. No se ha encontrado el nombre del elemento a nivel de página o aplicación.
    ERR-1002: No se ha encontrado el identificador de elemento para el elemento "F4000_P4314_ID" en la aplicación "4000".
    Someone can helpme.
    Thanks.

    I really need help.
    I'm trying to edit the buttons in a region position and I always get the same error:
    ERR-1002 Unable to find item ID for item "F4000_P4314_ID" in application "4000"
    I can't do anything, unless I edit the buttons, I can not make many changes in my application.
    Please someone help me.
    Thanks.
    Víctor.

  • Getting error message in debug "Page contains page items/buttons which are not assigned to a region!"

    Hi,
    I created a form and when I submit, it goes through but there is no "success" or "failure" message on Apex. I tried debugging it and got this message:
    "Page contains page items/buttons which are not assigned to a region!"
    I looked at the page definition and it seems like everything is assigned to a region. Much appreciate your help.
    Thanks!

    For your message, the relevant branch needs "include process success message" to be checked - and a value in success/failure in your process.
    Check the submitting & landing page for items not in a region. Under the items section there may be items listed separate to those under specific regions.
    It's possible these are related, but not guaranteed.

  • Unable to open up another web browser when using a button among item

    I am trying to call another web page(pop up window) with button displayed among items, the problem is there is not place to put a URL redirect. I could only do it with a button not displayed among items by putting in URL javascript: openPopUp(); which is calling a function which is in the HTML Header of my page.
    function openPopUp()
    window.open('f?p=&APP_ID.:14:&SESSION.::NO.:::','Popup','width=800,height=500,scrollbars=1,resizable=1');
    Doews anyone have an idea. I was unable tofind an in this forum that would work for me.
    Thanks
    Aron

    Aron,
    Did you try to add the link in the button Attibutes property ?
    Button>> edit >> attribute : onClick="javascript:window.open('f?p=&APP_ID.:14:&SESSION.::NO.:::','Popup','width=800,height=500,scrollbars=1,resizable=1');"
    This should work,
    Thanks
    Sam
    Please reward good answers by marking them corrent or helpful!

  • Item Button Positioning: Too far to the right with "Begin on New Field"

    I'm attempting to add an item button inline with other items. If option "Begin on New Field" is set the button is too far to the right, however, if this option is unset the button is too close to the item on to its left.
    Any suggestions on how I can get more granular conrol of this button's location?
    Thanks in advance,
    Jeff

    Jeff,
    For situations like this I highly recommend the Firefox web developer toolbar. Since ApEx makes heavy use of tables for layout, using the "Outline >> Table Cells" feature shows you how things are broken up (with td tags) and offers clues to resolving problems.
    There is also a CSS viewer along with a "Display Element Information" option that shows a full hierarchical view of any element on that page that you want to click on. Check it out. You'll be glad you did.
    BTW, in your case, it appears that you simply have multiple elements of differing heights that are being vertically-aligned differently. The date picker icon appears to be bottom-aligned with it's associated text box while all the other elements appear to be centered on the row. Correcting it? Don't know. I'm sure Vikas or Carl could come up with a DOM/CSS hack that could make it look the way you want it.
    Earl

  • Question RE: Button Items and Item Buttons - from "Bug Tracker" Demo app

    I've retrieved and installed the "Bug Tracker" Demo app from apex.oracle.com and installed it in my space as I've interest in recreating the custom search bars this application contains (I can't use interactive reports because it appears a bug prevents the ability to remove the "hide column" functionality which is a requirement for me).
    I'm perplexed with how the developer of this demo app was able to create an item of type "button" (not normally available as an item type when creating items) and how buttons were created with the sequence value of "Item" versus a sequence number.
    How do these interact?
    I'm a fairly new developer and as these methodologies are not readily apparent with 3.2's "normal" functionality, I'm quite intrigued to understand how this was accomplished.
    I've been looking at this demo app for 2 days in hopes of learning this on my own - still at it but not there yet. Any help you kind folks can provide would be certainly appreciated!
    Thanks!
    Paul

    Dan, thanks for the reply!
    I actually figured this out shortly after submitting this post (and confirmed by your post). I had never used a button as "Create a button displayed among this region's items" (versus "Create a button in a region position") before. That apparently is the difference.
    My inexperience simply did not allow me to recognize the difference in how apex treats how buttons are created given this choice differentiation.
    One more notch in the belt!

  • Region position 2 with 2 parts.

    hello
    My pages are made like this :
    Menu region in region position 01
    Body pages in region position 02
    Now, in the body pages : there is some pages in witch the content ca be organized in two parts (in each part I can have a report).
    I know that I can not have a region within another region...
    How can I manage this type of pages/regions.
    thanks!
    Marie.

    Use 2 or more regions in Display Point Region Position 02, with different region templates as necessary to display titles, buttons etc.
    e.g. Region with items at sequence 10; region with report at sequence 20, using region template Region without Title or No Region so it appears seamless with the first region.

  • Using Java Script With Item Button

    Hi All,
    please i want to know how can i call any java script function from an item button?
    i cannot find the "Action When Button Clicked" tab which is exist in a region button.
    Thanks in advance,
    Ola

    Hi,
    i am having a strange problem with java script
    i have defined the following commandlink in an af:table
    <af:commandLink
    text="lockUser"
    disabled="#{!bindings.lockUser.enabled}"
    id="cl1"
    partialTriggers="cl1"
    action="#{searchBean.lockUser}">
    <af:clientListener method="onlock1" type="click"/>
    </af:commandLink>
    I have defined the following java script function.
    <f:facet name="metaContainer">
    <af:resource type="javascript" >
    function onlock1(){
    if(confirm("Do you want to cancel")){return true;}
    else {
    return false;}
    </af:resource>
    </f:facet>
    when i click on the link, the dialog box appears asking if i want to cancel: when i press yes still the link action is activated. Kindly suggest where i am going wrong.
    the behaviour i need is to if cliked on yes then the link action does not activate and nothing happens. if i press any other button the link functionality should be activated and it should perform the locking functionality

  • HTML code for region position 3

    Hi All,
    Can i get the HTML code for display point: Region position 3.
    My requirement is, i have to apply some background color to all the regions which are placed in region position 3.

    Chandran wrote:
    Hi All,
    When you have a problem you'll get a faster, more effective response by including as much relevant information as possible upfront. This should normally include:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
    For layout and visual formatting issues the APEX version, browser, theme, page and region template, and region/item details are always required.
    Can i get the HTML code for display point: Region position 3.
    My requirement is, i have to apply some background color to all the regions which are placed in region position 3.Region position 3 is determined by the location of the substitution string<tt>#REGION_POSITION_03#</tt> substitution string in the page template. This will vary by version, theme and page template, which is information you have not provided.
    Regions located in region position 3 will probably have existing background colours determined by their region templates. Is the requirement to apply a background colour to individual regions, or a background colour underlying all of the regions?

  • Need some help with region position

    Hi,
    I need som help with regions position....
    Background:
    I have 2 regions, I will call them reg1, reg2 and reg3.
    reg1 = Page Template Body (2. items below region content), column 1, search region.
    reg2 = Page Template Body (2. items below region content), column 2, import file region.
    reg3 = Page Template Body (3. items above region content), column 1, search result, grid region, very wide.
    Issue with the position, the setup explained makes my layout like this
    reg1--------------------------------reg2
    ------------------reg3--------------------
    What I want:
    reg1-reg2
    ------------------reg3--------------------
    What am I doing wrong?
    Regards Daniel

    Daniel,
    this will also work:
    Region1 HTML table cell attributes
    width="10%"
    Region2 HTML table cell attributes
    align="left"
    without touching the page template.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

Maybe you are looking for

  • OPEN ORDERS RECEIPTS...

    Hi, I have build a Tree Control to display Materials and all the Suppliers to this Material. When User klick on Material,this Material Node shows all Suppliers for this Material as 2nd Hierarchy. How can we gather all OPEN ORDERS / RECEIPTS ( Amount

  • Can muliple DVD scene paths be created in a template

    Hello all, I am trying to edit some of the DVD menu templates. Is there a way to have a Scene button, then have like an Extras button and have them point to different second level menus? I know the typical Scene button will create or enable additiona

  • Error during DatabaseCopy using SAP tools for SQL Server (v7.12)

    I'm trying to perform a system copy from PRD to QAS.  The database has been mounted to QAS via detach and attach method.  I did a DBCC on the database and everything looks OK.  I'm running SAPINST (SAP Tools for MSSQL) and selecting the Database Copy

  • How to make use of a 9i table 10g

    Hai All, I need a particular table called 'system' to do reportingthe problem is this table exist in 9i and i am working with the the tables that are in 10g ,now my question is how can i make use of this table from 9i into 10g ????

  • HTTP handler for starting an external service cannot be read

    Hi, When i execute the work item from Business Work place and also from the UWL in Enterprise portal of the task TS21300098 for HR Process Requisition workflow. In the Error is says HTTP handler for starting an external service cannot be read Message