LOV at create form page only

Hi all,
APEX 4.0
I have data entry form page with fields DEPTNO and EMPNO. These fields have parent LOV and cascading LOV respectively. I want these LOV to fire at "create" mode time for new rows only, and not when editing an existing row. Because what happens is the existing null value is replaced by the default first occurrence of the LOV at "edit" mode time, but if the existing value is not null it is not replaced which is good. I want that the existing value will not be replaced at run time edit mode.
Please help huhuhu :(
Thanks.
Edited by: KinsaKaUy? on 30-Aug-2011 22:13

Hi,
I actually am using both static and dynamic LOV's but it is the dynamic LOV that I am having issues with. The static LOV will retain the value unless I select a dynamic LOV also for the filter, and then everything is gone when I return back to the home page. If I manually type in the value in the select box instead of selecting from the list it will retain the value.
Thanks,
Pam

Similar Messages

  • How to create Form page using a query-like filter to select editable rows

    Hi!
    Does anyone knows how can I create a Tabular Form page to update a table's data, but using the capabilities offered when creating an Interactive Report page (that is, having the "Search Bar" filtering tool at the top of the form)?
    I mean, is that possible without customizing the page? I ask this because I still don't have that much APEX knowledge and I would prefer to accomplish this by just using the "Create Page" wizard but without doing too much programming afterwards.
    Thanks a lot.

    Try this method,
    1. Creat a Master Detail Form (Custom Layout and not tabular)
    and in the master block select one field.
    2. In the HTML layout for master remove the reference for
    that field(so that nothing will appear in the master block
    of the form).
    3. Before the update (in the Pl/SQL event handler select the 'Save' event and write the following code to avoid updating master block).
    p_session.set_value(p_block_name => 'MASTER_BLOCK',
    p_attribute_name => 'MASTER_ACTION',
    p_value => 'None');
    doSave;
    For eg, let's say
    Master is from 'Dept' table and Detail is from 'Emp' table(with join condition Dept.dept_id = Emp.dept_id). In the master remove everything except dept_id field and in the HTML layout for master remove the reference of the dept_id field(you cannot remove this field physically from the master layout). Now the form will look like multirow form rather than master detail form but only problem with this workaround is 'Detail Action' will be present in the detail block.
    I hope this will help you.
    Thanks
    -Krishnamurthy

  • SQL INSERT / SQL UPDATE don't work with form page, don't affect table

    The subject line says it all. No matter what I try, my updates on the form don't appear on the report page, which accesses the table. When I look at the table using SQL WORKSHOP, the changes aren't made there either. What am I missing? I have another report page and form page with a different table in the same application and updates in that table work fine. I coded them both the same. What should I be looking at?
    Steve "the n00b" in Raleigh NC

    Steve,
    How you have created the FORM page? Using FORM WIZARD? Or You have created blank page and after that you have manually created all the form items?
    If you have used WIZARD to create form page, then you can see a page process with Automatic Row Processing (DML) type. Here you need can set DML (Insert/Update/Delete) you wish to use on this form. APEX will take care of the rest.
    If there is no such process in your page, then you need to create one. You may have one process to do both (Insert and Update) and you can have two sepate processes. I prefer having two seperate page processes (after submit), one for Insert and one for Update.
    Now you can make the Insert process conditional so that it only execute when you click button - Create (Add or any similar button you have ) Also make the Update process conditional so that it only execute when you click button - Save (Update or any similar button you have )
    Just a quick note - From the above trigger, I can guess you are allowing users to enter Primary Key manually? In my opinion, Primary key should be always system generated using SEQUENCE. Users can only enter BUSINESS KEY (if any) and we should not use Business key as Primary Key.
    Good Luck :-)
    - Hari
    Edited by: Hari_639 on Oct 23, 2009 8:02 PM

  • How to query on a single row form using only one page

    Hi APEX experts, I am just a beginner in apex and I face several problems on development. Despite that the forum helps me a lot and your answers to other people are valuable , I have stacked into something. Could you please someone tell me : if there is a way to define a single row form page based on table in which I could query and update without using a tabular page (to call the single row form). I want only to use only one page. Does APEX has this functionality? Thank you very much?

    I haven't tried it, but I am going to guess that yes it's possible (or if I were going to do this, this is what I'd try and I suspect it will work).
    If you take a moment and step back and look at what the wizard does when building a "form on a table with report", all it does is build two pages with page 1 (report overview with drill-down Edit button or link usually) calling page 2 (form) and setting the PK field on the page 2 form with an automated row fetch process and built-in DML processes. It's not that hard.
    Page 2 really doesn't care what the calling page was in order to query a single row; it just cares that ANY caller sets the primary key value for the ARF process to fetch a row. So I would just make page 2 call itself. This is what I'd do (and you might have to fine-tune little things that I might not have forseen but I think this will work).
    For the sake of example, let's say our table is PARTS and in it is a PART_ID, PART_NUMBER, PART_DESCRIPTION, PART_COST, etc. Assume PART_ID is the primary key and sequentially assigned by the DB in a trigger and is functionally meaningless to the user and is for PK purposes only. Let's assume PART_NUMBER is a unique key (although not the PK) by which the user will "know" a unique row (since the PK of PART_ID is more internal and not meaningful to the user). Assume PART_DESCRIPTION, PART_COST, etc. are just attributes.
    1. Use the wizard and build a "form on a table with report". This is just to get the handy dandy ARF process and DML processes, validations, etc. all generated for you. Let's assume the report page is Page 1 and the form is Page 2.
    2. When done, delete the report page entirely (so delete page 1).
    3. Edit the form page (page 2) and change any branch references from the nonexistent page 1 to now be page 2.
    Now here's the part where something has to set the internal P2_PART_ID field when page 2 is run. So why not set it from itself from something the user will uniquely enter?
    4. Create a P2_PART_NUMBER_FETCH item (text item is fine or if you want a LOV or whatever that's good too....whatever works. For clarity, you might even want to create a separate "search" or "query" region separate and above your existing form region to set this field apart visually so users know it's a search field. Source for this field should be "only when current value in session state is null".
    5. Created some sort of "GO" button to go along with the P2_PART_NUMBER_FETCH field.
    6. Make sure none of your existing post-submit processes fire when GO is pressed (edit all of the computations and validations and processes and ensure that they have conditions such that they do not fire when the submit value is "GO", so like a PL/SQL expression and set to v('REQUEST')<> 'GO').
    7. Add a new validation to your page that only fires when GO is pressed. Have it validate only when GO is pressed. Have it validate that P2_PART_NUMBER_FETCH is not null.
    8. Add a new PL/SQL process to your post-submit processing that only fires when GO is pressed. Have it look up to the database based on P2_PART_NUMBER_FETCH and get the PART_ID that corresponds to the part number the user entered and set the part number, something like this (even better for style and reusability if you embed this in a DB package function and call it):
    SELECT part_id
    INTO :P2_PART_ID
    FROM PARTS
    WHERE PART_NUMBER = :P2_PART_NUMBER_FETCH;
    9. Not sure if the branches that were generated will suffice for this (might need to add a new one...review what you have and see) but the bottom line is that the page should branch to itself (page 2) and not clear the cache.
    10. When the page repaints, since :P2_PART_ID is now populated in session state (again, page 2 should not care how it got populated...only should care that it did get populated by anything (including itself)), the automated row fetch (ARF) should fire and query up the row from the database for editing.

  • Is there a way to create forms where certain fields would become required only if there was a certain choice made in a dropdown box in another field?

    Is there a way to create forms where certain fields would become required only if there was a certain choice made in a dropdown box in another field?

    Yes but you will have to create some custom JavaScript to do this.
    Also you should be aware that the "Required" property is only processed when the form is submitted to a scripted web page or "mailto:" process.

  • Strange error while creating form/report pages [ORA-20001]

    While creating two new pages with a form and report on it, I've got a strange error. I tried to create the pages several times, but I always got the same error:
    ORA-20001: Unable to create query and update page. ORA-20001: Unable to create form on table. ORA-20001: Error creating shortcut id="" ORA-00001: unique constraint (FLOWS_030000.WWV_FLOW_SHORTCUT_IDX1) violated
    Error creating query and update.
    Return to application.
    I'm using the wizard to get the pages, like I did many times before (without problems), but this time it will not work!
    Greetings,
    Jan

    Below is a view or sql query i want to create in XE to show users report on startdate,end date,road name,etc,i am having a problem making this view work when i put the code in the sql script. Kindly help me with this if you can please. Thanks. CREATE OR REPLACE FORCE VIEW "RESULTS_DETAILS_VIEW" ("STARTDATE","ENDDATE","ROAD","NAME","STATUS","TYPE","UTILITIES","DATES","LUTON",
    AS SELECT
    d.Startdate,
    d.EndDate,
    l.Road,
    u.Name,
    ws.Status,
    wt.Type,
    cb.startdate,
    cb.enddate,
    cb.road,
    cb.utility,
    cb.type,
    cb.status
    FROM
    Dates d,
    Luton l,
    Utilities u,
    WorkStatus ws,
    WorkType wt,
    Comb cb
    WHERE cb.startDate = d.StartDate
    AND cb.endDate = d.EndDate
    AND cb.road = l.Road
    AND cb.utility = u.Name
    AND cb.type = wt.Type
    AND cb.status = ws.Status
    WITH READ ONLY
    /

  • Dynamic lov on a apex page parameter form

    I'm trying to create a dynamic lov on a apex page parameter form. I read another post to look at metalink note. 292521. I asked our DBA to review the note but he claims he can't find the article. he's also been unable to find the last 2 metalink requests i've made. can someone verify metalink note 292521 exists so i can inform the DBA?
    Thanks,
    Brian

    Brian, I cannot find that note either, try posting your question in the APEX forum, this forum is for Oracle Portal questions.
    Cheers,
    Mick.

  • How to create different login form pages using Extranetlook

    Hi,
    I would like to have different login pages in order to let users access to different sites created with Site Studio. The Extranetlook component comes with a default one, login_page.htm but if I change this file, then this login page is used for all users in the whole Content Server. Our requirement is to have different login pages, one per each site, and let the default one to let users access just the Content Server, not the sites.
    We created a custom login form page copying the login_page.htm file and then modified the redirecturl input field (<input value="/oursite/" type="hidden" name="redirecturl" />). This only works when the login is successful. When the login is incorrect the user is redirected to the default login_page.htm. In that case, we would like to redirect the user to custom login form instead of the default one.
    In fact, I'm afraid I don't understand well the relation between the login_page.htm within the component, the login_page.htm file that resides in <ucm-installation>/data/users and the extranetlook.idoc file.
    Thanks in advance.

    While not resolving issue with multisite login page, i can tell the relationship among component login_page, data user login_page and ExtranetLook.idoc.
    So according to component readme.txt ExtranetLook.idoc is used to construct user data login_page (i've checked it). So any customizations made to its dynamic html sections are reflected into that file - and it is the which being showed in browser. The component one is used as initial one.

  • How to create a page like Popup Key LOV page

    I want to create a page like the page when clicking an Popup Key LOV item. Is there a template which i can see how it has been created.
    Thanks,
    Jen

    I have a similar problem. I created a custom popup window and I'd like to apply a theme in order the custom popup has the same appearence as an standard popup window. The problem is that the new popup has a report region inside of it, and it only lets me apply Report templates (the popup template doesn't appear).
    Is there any way to fix this?

  • JHS-00109 Using LOV form page

    Hi,
    In JHeadstart version 9.0.4.5, I implemented the LOV Form Page functionality for BC4J/Struts/UIX as described in jhs_tutorial_1, and it worked perfectly.
    After upgrading JHeadstart to 9.0.5.1.18, I receive the JHS-00109 (You cannot re-submit this page after using the back button, or by using the refresh button) error message when I try to submit the page which called the LOV.
    Please help!
    Greets,
    Guido Zeelen

    Guido,
    A word of warning:
    I understand that you switched the order of the lines
    sessionData.setAttribute(LAST_ISSUED_PAGE_TIMESTAMP, currentTime, oracle.jheadstart.controller.SessionData.SESSION_SCOPE);
    and
    if (pageTimeStamp!=null && !pageTimeStamp.equals(""))
    so that in your version LastIssuedPageTimeStamp is only updated if pageTimeStamp has a value.
    Be careful with that change, because the original order was deliberate: it was needed to fix bug 3584358 (CHECKPAGETIMESTAMP DOESN'T PREVENT SUBMIT IF BACK BUTTON USED AFTER BROWSE BUTTO). From the bug text:
    If you use the browse buttons (previous/next in form style layout) and then use the browser's back button to go to the previous displayed page, checkpagetimestamp does not work correctly anymore.
    An example from the Oil demo:
    1. Go to the Refineries select page, and edit the first one.
    2. Use the > button to go to the second refinery.
    3. Use the browser's back button to go back to the first refinery.
    4. Update something in the values of the first record, and press Save
    5. You get an error JBO-25013: Too many objects match the primary key oracle.jbo.Key[1 ]. and the browse section shows that it thinks this is row 2.
    So what happened is that the values of row 1 were used to update row 2.
    This bug can also result in other kinds of error messages because you try to do something for one row which is applied to another row instead.
    What should happen, is that if there is no pagetimestamp in the request, CheckPageTimeStamp still updates the lastissuedpagetimestamp to note that navigation to another page has taken place. The only exception to this rule should be if an LOV is called, which should be recognizable.
    A way to recognize an LOV (or more general, a page which should not cause an update of lastissuedpagetimestamp) is to submit a pagetimestamp field with the value "ignore".
    In case of UIX, lov pages do not go through CheckPageTimeStamp, but in case of JSP they do. We can get JSP LOV pages to put "ignore" in pagetimestamp by changing the JSP include buttonsFindForm.jsp. This include is also used in Find pages, but it does not matter (much) if find pages also submit "ignore", because showing a find page does not change dataobjectsets.
    In your case (custom made UIX LOV) it does go through CheckPageTimeStamp, so I think a better solution is to somehow make sure that a pageTimeStamp with value "ignore" is submitted. My advice is to go back to the JHeadstart version of CheckPageTimeStamp, add to your UIX LOV page (within the form that will be submitted) a line like this:
    <formValue name="pageTimeStamp" value="ignore"/>
    and debug what happens in CheckPageTimeStamp.
    If this fixes your problem, please let us know, because then we apparently have an omission in Tutiorial 1!
    kind regards,
    Sandra Muller
    JHeadstart Team

  • Is there a way to create form fields to tab into and type and or drop down selection fields in pages as you can with microsoft word?

    is there a way to create form fields to tab into and type and or drop down selection fields in pages as you can with microsoft word?

    No

  • How can I get the iBook app on my Mac to backup ePubs I created with Pages on my iPad? Only seems to want to work with purchased from the ibook store.

    How can I get the iBook app on my Mac to backup ePubs I created with Pages on my iPad? Only seems to want to work with purchased books from the ibook store. The problem is, once I create a document in Pages and turn it into an ePub to be opened in iBooks, I delete the document in Pages, because I don't need two copies taking up space on my iPad. Before Maverick, iTunes would backup everything in my iBook app on my iPad. If something ever happened to my iPad, all of my created ePubs would be lost and I would be screwed. I suppose I could keep everything on Pages and go to iCloud and download my documents to my Mac, but that is a lot of steps. I may have to do that if there is no other way, but I am hoping someone will have the answer for me. Pretty disappointed in iBooks app for Mac at this point.

    iBooks only syncs purchased books. Others must be synced in iTunes.

  • How to Create a Page LOV Template and a Region LOV Report Template in APEX

    Hi All,
    Thanks in advance ..
    I am new to APEX , Currently working in APEX 3.2
    Can any one please guide me How to Create a Page LOV Template and a Region LOV Report Template in APEX
    So that I can create dynamic Multi column LOV in APEX
    Cheers
    Sachin

    Sachin,
    I think you are en-quiring about 'Custom pop-up page'. See this link. You will get all required info there.
    Regards,
    Hari

  • Acrobat pro dc windows 8.1 only digital signatures allowed when creating forms

    When creating fill in forms, my only option for inserting a signature is a digital signature and then when it comes time to complete the form, it wants a digital signature and does not allow you to just insert one on the tablet you are using to complete the form,

    Click to Run according to Microsoft: 
    https://technet.microsoft.com/en-us/library/jj219427.aspx
    "Click-to-Run is a Microsoft streaming and virtualization technology that reduces the time that is required to install Office and helps you run multiple versions of Office on the same computer. The streaming technology enables you to download and begin to use an Office product before the whole product is installed on your computer. The virtualization technology provides an isolated environment for Office to run on your computer. This isolated environment allows you to run the latest version of Office side-by-side with an earlier version of Office that is already installed on your computer."

  • User should only work on created Form

    Hi all!
    Here is my problem.
    A user is working in B1. For example:With a double_klick on a Textfield and a user created Form will be shown.
    No the User should only work with this Form until its closed! There should be no possibility to open an other form or so.
    Like if you get a MessageBox, there is no other "normal" way to work on until you close this Messagebox.
    May it is possible to let the Form act like such a Messagebox.
    Thanks for replies..
    Matthias

    The Sample you speak of show the hack/workaround (Not true modal functionality).
    From the sample:
        Private Sub SBO_Application_ItemEvent(ByVal FormUID As String, ByRef pVal As SAPbouiCOM.ItemEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.ItemEvent
            ' Don't let the user to move to other forms
            Dim EventEnum As SAPbouiCOM.BoEventTypes
            EventEnum = pVal.EventType
            If bModal And FormUID <> "Modal" Then
                oForm.Select() ' Select the modal form
                BubbleEvent = False
            End If
            ' If the modal from is closed...
            If FormUID = "Modal" And (EventEnum = SAPbouiCOM.BoEventTypes.et_FORM_CLOSE) And bModal Then
                bModal = False
            End If
        End Sub
    In the sample the bModal bool set to true when opening the form block all events by selecting the modal form on each event and setting bubbleevent to false.. the EventEnum = SAPbouiCOM.BoEventTypes.et_FORM_CLOSE set the bModal to false so events can continue
    Biggest problem with this is if you use a eventfilter (which you should do)... here you need to remove the event filter along with setting the BModal (not in the sample), and reapply it after form close.
    <i>Kind Regards
    Rasmus Wulff Jensen | http://www.b1up.net</i>

Maybe you are looking for