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

Similar Messages

  • 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
    ----------------------------------------------------------

  • "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

  • Duplicate content of region fields in the region and keep some fields

    duplicate content of region fields in the region and keep some fields displayed in this region and some not.
    Our customer wants to duplicate the content of the region fields and 3 fields of this region (one of them is the key from the table ) have to be shown empty and have to be recreated when he does the next commit. The other 25 fields have to be filled with the content before. (I have to do a commit before I show the region again without these three fields)
    What I did:
    When I have a botton with request CHANGE then APEX does the change without emptying the fields. I tried to make processes on this request which should empty my three fields, but the processes never fire (I see it in the debug and I don't know why, I putted them on every process point for testing)
    The second try:
    On my button with request CHANGE , I filled the 'set these items ' with my three fields and the 'with these items' with 2 commas ,, to set these items null.
    I do no claer cache, but APEX empties the hole region.
    Can you help me??
    Thanks Uta

    Hi Uta,
    OK - This is what I did:
    1 - Page 15
    On the EMPNO column, I have a link to page 18. I set P18_EMPNO to #EMPNO#. I assume that you already have this functionality to link from the report page to the form page. There are no changes required to this page.
    2 - Page 18
    I have created a hidden field called "P18_EMPNO_COPY". There are no special settings for this item - I've just put it at the bottom of the region containing all of the other items
    I have created a button called "P18_COPY". This has a Conditional Display set with a Condition Type of Value of Item in Expression 1 IS NOT NULL and Expression 1 of P18_EMPNO. This has an Option URL Redirect set for it with the following settings:
    Target is a - Page
    Page - 18
    Set These Items - P18_EMPNO,P18_EMPNO_COPY
    With These Values - ,&P18_EMPNO.
    I have created a Process to run "On Load - After Header". The PL/SQL code for this is:
    DECLARE
    emp_rec EMP%ROWTYPE;
    BEGIN
    SELECT * INTO emp_rec FROM EMP WHERE EMPNO = :P18_EMPNO_COPY;
    :P18_EMPNO := NULL;
    :P18_JOB := emp_rec.JOB;
    :P18_MGR := emp_rec.MGR;
    :P18_SAL := emp_rec.SAL;
    :P18_DEPTNO := emp_rec.DEPTNO;
    END;
    This has a Conditional Processing Condition Type of "Value of Item in Expression 1 is NOT NULL" and Expression 1 shows P18_EMPNO_COPY
    Finally, for each field, I have added in a Default Value that points to itself (For example, the P18_JOB field has a Default Value of :P18_JOB) with a Default Value Type of PL/SQL Expression.
    Obviously you will need to replace the field and item names with those for your table and form.
    This process does the following:
    1 - The user clicks the link in the report on page 15. P18_EMPNO gets populated with the EMPNO value of the item select.
    2 - Page 18 is loaded with the data relating to the record with the ID found in P18_EMPNO
    3 - The Copy button is displayed only if P18_EMPNO contains a value
    4 - The user clicks the Copy button
    5 - The P18_EMPNO value is copied into P18_EMPNO_COPY and P18_EMPNO is blanked out
    6 - The page is submitted with these changes. When it reloads, the new process kicks in
    7 - This process will:
    (A) Create a variable based on the record structure for the EMP table
    (B) Fill this variable with the data in the table for the ID that's now in P18_EMPNO_COPY
    (C) Set the session state values for the fields that need to be repopulated with the data now retrieved into the variable
    (D) Clear the P18_EMPNO session state value
    8 - When the page starts to load the form, it will see that there is no P18_EMPNO value and, therefore, will not bring in any information from the table. However, as we have now set the Default Value settings for each field, this will force it to retrieve the values we've stored using the new process and display these values in the form.
    I think I've detailed everything - if this doesn't work, please let me know!
    Regards
    Andy

  • Automatic Payment program -line item cleared not displaying in table

    automatic Payment program -line item cleared not displaying in table
    i have re run the APP program DUSR1 same earlier it has run twice but table dose not show double payment to vendors how to resolve the issue.
    Can some one please guide me on this.

    Hi Priyanka,
    First, which table are you referring to.  If your fist APP run clears the line item, it will no longer be available in the open item. 
    Please be more specific on the problem so that we can try to help you.  If possible, please provide screenshots.
    Regards,
    Ganesh

  • Display Totally paid items(cleared items), partial payments and residual pa

    Hi Experts,
    I am working on one requirement,
    Requirement: Display Totally paid items(cleared items), partial payments and residual payments.
    I am fetching data from BSAD table for Totally paid items, but I want to understand what are the fields to check when fetching data.
    Partial payments: Please let me know the logic to get data for partial payments from BSID table.
    Residual payments: what are the tables to check for residual payments and the logic.
    What are the fields that i have check and what are the fields that I have to check and get.?
    Please let me know what ever you know about this.
    Regards,
    Dileep,

    Hi,
    All types of Payments  either Totally paid items(cleared items) or  partial payments and residual payments the Document Number serious will b same.   Try to  extract by  Filtering Assignment Field .
    Thanks
    Goutam

  • 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

  • How to remove clear button on message file upload bean item?

    Dear Guru's.
                    How to remove clear button on message file upload bean item .
    Regards,
    Srinivas

    Hi Raghu,
    This is srinivas i am also facing this issue how u achieve this can u share me this is urgent for me .
    Regards,
    Srinivas

  • 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

  • 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

  • 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

  • Customer Open Item clearing Line Layout

    Hi
    the user uses F-32 for customer open item clearing and the following are the fields are available in the line layout.
    Assignment, reference, Doc no, doc type,posting period, doc date, posting date,gross amt,  cash discount, cash Discount %.
    Along with above fields, our business user wants to view the "document header text"  in the line layout.
    How to bring the "Document Header text " in the clearing line layout.
    Pl advise,
    Venkat

    Hi,
    you follow these steps to display "Document Header text " in F-32 :
    <b>1-</b> go to : SPRO>Financial Accounting>AR & AP>Business transactions>Openm item clearing>Make settings for open item processing>Choose selection fields.
    2- select "D" as "account type"
    3- click on "insert after"
    4- enter SGTXT in the "field name"
    5- you will show "SGTXT" and "Text" in the list of fields, click on <b>save</b>
    6- then go to F-32 and go to Menu>settings>change line layout
    7- then go to Menu>Edit>Choose
    8- then click on "insert after" above
    9- in the list you will find "text" as field, so choose it
    10- Save that (check customer or/and vendor)
    11- then click Save and return to the table of F-32, you will find Text in the displaying fields
    hope this helps
    assign points if useful
    let me know
    regards

  • 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.

  • Open line item & cleared tem

    heyyyy...
    jst tell me what do you mean by open line item & cleared item in vendor display{ (fbl1)

    Hi Ashwin,
    Vendor Open Item means  - dues amount pay to vendor for that it shows red indicator. it means the comapny has to pay the vendor amount.
    Vise versa - clear item - when the vendor due are paid  then the green indicator display it means the payment are made to vendor which is known as clear item.
    Important T.code:
    Downpayment clearing - F-54
    Account Clearing - F-44
    If you are satisfied with this then Pls assign the point
    Thanks
    Dhananjay R

Maybe you are looking for

  • LDB Selection-screen

    Hello ,     In my program selection-screen is coming from LDB(logical database) and i want my own selection-screen in the top means before LDB selection-screen.         Pls solve this ASAP. Thanks.

  • ORA-22275: invalid LOB locator specified in a function

    Hello all!!! I am having a little problem with a function that returns a blob... When I call the function, I get that error... Here is the function (I took all the exception management code to clear it up a little...) <CODE> FUNCTION f_getfileblob (p

  • What happened to auto layout in iOS 6 beta 3?

    I just downloaded the newest beta version (3) of iOS 6. After I continued work on my projects, which uses auto layout on iOS, I noticed something was wrong. After about 5 hours of testing I figured out that the behaviour of iOS deviced changed betwee

  • How to view controlfile

    Hello all, I want to view control file contents. I've used the command alter database backup controlfile to trace as 'C:\control.sql'; is there any way i cn view the file without accessing the file system.?

  • About 1Z0-051 & 1Z0-052 11g

    Is there a waiting period for taking the second part of the administrative certified associate exam 1Z0-052? Should it be taken right away or immediately after 1Z0-052?