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

Similar Messages

  • Form Page Num and setting its beginning number

    Is there a way to tell documaker to start the page numbering process at say page 5 when using the Form Page Num feature?

    Hi 808337,
    The page numbering is done at the Genprint level, which is why the option PageNumbers is under the printer definitions in your INI file. Up to and including release 11.3 (I have not worked with 11.4, 11.5 or 12), I don't think there's any way you could apply any changes to the numbering.
    You could achieve what you are looking for with a DAL script as a post transaction process.
    Gaétan

  • Problem in using LOV for validation-JHS 10.1.3

    Hi all,
    This problem was also noticed by Phil McDermott (Problem in using LOV for validation-JHS 10.1.3
    I am following the demo and I noticed that the Use LOV for Validation functionality does not work on the browse page. However, it does work on the details page!
    Another effect of this problem is that once you tried to validate on the browse screen, the lov button does not work anymore.
    Thanks, Joep
    Just found out that is does not work when entering "ph" like suggested in the tutorial. When I enter "p" and then tab to the next field, the lov popup does show.
    Message was edited by:
    Joep Hendrix

    Thanks for your reply Steven.
    I had the same problem as Joep reported here, following the steps at:
    http://www.oracle.com/technology/products/jdev/tips/muench/jhstutorial/index.html#genandrunagain
    Your solution works for me.
    The "completed version of the tutorial application" also has this issue:
    http://otn.oracle.com/products/jdev/tips/muench/jhstutorial/MyDemo.zip
    Are there any other known issues for this tutorial? Where can I find such errata list?
    many thanks
    Jan Vervecken

  • 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

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

  • Using a link to trigger a delete action on form page?

    Hello,
    I have been unable to find an explanation about how to do this in the documentation, these forums or the old interakt forums.
    Is it possible to use a link to trigger the delete action on a form page?
    If so how is it done?
    Thanks in advance!

    Sorry Purple.. I know that there is a delete link that triggers the delete transaction on the form page..
    The question was if anybody knew if I am able to use a link to trigger that delete transaction (on the form page), much like a dynamic list has a link that will trigger the delete transaction on the form page.
    I don't want to use a dynamic list in this case though. :)
    Thanks anyways,
    Drew

  • Can't access adobe from my smart phone to use my form created in formscentral I receive an error message that says "unsupported browser". There is a link to download a supported browser but the link directs me to another page that says "browser no

    When I try to access adobe from my smart phone to use my form created in formscentral I receive an error message that says "unsupported browser". There is a link to download a supported browser but the link directs me to another page that says "browser not supported at this time". This happened to me while using my IPhone 5, a friend that uses an IPhone 6, and another friend that uses a Samsung Galaxy S5. I just need for my employees to be able to access, complete and submit work orders created in formscentral from their phones. I would like to use the data collection feature in formscentral but at this point any suggestions on how to accomplish this are welcomed. Thank you

    Further info - I changed my security settings to allow apps from anywhere, and again tried to install.  I again got an error message
    that the update failed to install, and to contact Customer Support.

  • 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

  • Can APEX_ITEM be used to generate a Form page?

    Hi,
    I would like to use APEX_ITEM to generate in APEX 4.0 a Form region at runtime, based on some meta tables that describe the columns, labels, datatypes etc..
    It seems that people use APEX_ITEM for generating updatable tabular form and I start to question my original concept. I created a PL/SQL Anonymous block region, that contains the following code segment:
    htp.p(
    APEX_ITEM.SELECT_LIST (
    3,
    'Y',
    'Yes;Y,No;N',
    'Y',
    'readonly=readonly',
    'P1_MARRIED',
    'Married'
    When I run my form and click my 'Session' link at the botom of the page, the P1_MARRIED item would not show up in the item list of the page. Am I missing something or this 'Generate a Form region at runtime' concept is based on my missunderstanding of APEX_ITEM API?
    Regards, Tamas

    Tamas Szecsy wrote:
    Thanks, that was enlightening!
    So if I understand it well, it means that:
    1.) I have to give my region 'Form like' layout by using htp.p appropriately. Yes. A custom named column report template is another useful approach.
    2.) What concerns the update processing, it means I should handle the region as a 1-record report i.e. using Fxx arrays but always referencing the first member of each Fxx array only: APEX_APPLICATION.G_Fxx (1)Yes, unless there are actually any 1:M elements (home, work, and mobile phone numbers/email addresses for example), where the same type of element is repeated. (This might also help with point 3...)
    Note also that disabled items are not submitted, and only checked checkboxes are submitted
    3.) I am OK, provided that I generate maximum 50 items on a page, since 50 is a hard-coded limit that can not be gotten around. (I will have to work out solution for this, since i have 53 columns in the given table)Dividing the form into several wizard-style pages as used in the APEX Application Builder is probably the best solution to this. It enables you to keep the sub-form pages simple, clean and short, so users don't have to scroll up and down. Save the submitted values from each sub-form page in APEX collections, and display a final report based on the collection(s) for the user to review before saving the information to the database table.
    Alternatively, some of these columns might be common across all the form permutations, and implementable using standard page items.

  • Lost Page on when you should use MVC vs when you should use web forms

    I read a page last week.  I think it was on MSDN.  It was talking about the relative merits of MVC and web forms.  However, unlike the page http://msdn.microsoft.com/en-us/library/dd381412.aspx,
    which merely states the advantages and disadvantages of each format, this page went on to state something like:
    You should use MVC:
    when building web apps that do this
    when you web app needs that
    when you are doing the other
    You should use web forms:
    when building these other kinds of web app
    when your web app does this other thing
    when your web app does this.
    Does anyone know the page to which I am referring?
    (Oh and since when did it become impossible to paste anything into a question or reply block in MSDN forums.  This makes it very difficult to paste in page links.)
    Also I am not seeing an appropiate forum in my forums dropdown list.  So if a moderator wants to move it to the right forum I would appreciate it.
    Edward R. Joell MCSD MCDBA

    @Darnie Graceline Selvamary Thangalazar
    The first link is not what I was looking for as it tells the difference between MVC and Web Forms but not which is better for what.
    The second link does get more into which is better in certain situations but doesn't really analyze each type of project and specify that this is good for web forms and this is good for MVC.  However, it does provide some ways to analyze if your
    "situation" would be best served by using web forms and which would be best served by using MVC. 
    It specified that if reaction time is an issue then MVC is the answer.  This is good because with our excruciatingly slow network we need apps that take inherantly as little time as possible to load.
    I took another look at the link provided by gaurav.  Turns out that link has a link to an article by Dino Espisito which actually has the statement that I referred to above i.e. if your app has a lot of busines data.  After two years, that
    is as much as I remember of that page.  So in fact indirectly gaurav found the page I was looking for.
    Too bad I did not re-read this link when I started the current project, though.  One thing each of them says is that if your team (in this case me) has not had much experience in handling html elements directly then MVC is not a good fix for them. 
    For the last 6 months theis has been a major learning process in using JQuery, AJAX, and MVC to accomplish tasks which I've could have done using server controls and web forms with my eyes closed.  Too bad they don't make MVC so that you can use server
    controls with it.
    However since this thread is so old and unlike "Whose Line is it Anyway?" the points
    do matter. I am going to award the answer to gaurav.  Thanks everyone for providing some very interesting links on MVC.
    Edward R. Joell MCSD MCDBA

  • How can i populate records using LOV value in form 6i

    Create a form based on the following output use EMP Table
    Create a non Database Block i.e Control Block----> Dept No
    Create a Database Block -EMP
    Create an LOV for the Dept no from dept table.
    For the Current Dept No . Populate the Employee Records
    How can i populate records using LOV value????
    thanks

    How can i populate records using LOV value in form 6i Start by posting in the correct forum: {forum:id=82}
    (Seriously: after making all your previous posts in the Forms forum, how do you end up posting in this one? Is it because the Forms forum has changed category?)

  • How to print different  header & item data in new pages using smart forms.

    Hi,
    In smart forms I am trying to print header data & their item data. But there are more than one header data for a given input.
    I want to print all the different header data with their item data in new pages using smart forms. Can any one please help to solve the issue.. Its very urgent for me..
    Regards,
    Brajesh

    Hi
    U need to use control break statements to acheive ur requirement.
    Regards,
    Priya

  • Blank page when using Interactive Forms(Webdynpro thru Java)

    While i was running the application using Interactive Forms iam getting Blank page.
    Previously when i try to view the output, i can able to view it without any errors,suddenly what happened is iam knowing.
    ADS was perfect,CredentialRights there,AdobeReader-7.0,ACF with SP11 installed and Active-X Controls Enabled.
    Can i know where the problem exactly is?Is the problem from client side or server side or do i need any settings for IE6.0?

    Hi Sankar,
    Did you use NW04 SP11 before (with ACF) and upgraded to NW04<b>S</b>? Your ACF version you mentioned is for NW04S and not for NW04.
    Also keep in mind that SAP changed the way Adobe forms are displayed (ACF will be replaced by the ZCI layout) - ZCI stands for Zero Client Installation. If you upgraded to 04S, you might need to change your forms as well (also the WD application).
    On your interactive forms application (the webdynpro) are there any links outside the adobe form? What happens if you click on it? At our side we have created a customer message, since the ZCI form is not being displayed. We also get a white Adobe placeholder, and when we click on a link outside the placeholder, we see the Adobe PDF logo being displayed in the placeholder (placeholder = frame).
    In your case: do you see a small red cross icon in the frame? That means ACF is not installed properly.

  • 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 can I create a new entry without using LOV for foreign keys.

    Referring to TUHRA sample application based on HR database schema. JDeveloper 10.1.3.0.4
    How can I create a new employee without using LOV for the foreign key "job_id".
    On the first page I would like to choose the job_title from adf read-only table.
    After clicking on the "create new employee button" a creation form appears in which the job_id field is set with previous selection.
    Regards M.Winkler
    Edited by: user3541283 on 06.10.2008 03:44
    Edited by: user3541283 on 06.10.2008 03:50

    Hi,
    usually the foreign key is only set if the VO you select is dependent from a master. If e.g. you have DepartmentsVO1 that has an EmployeeVO3 as its nested VO, then creating a new instance of employees automatically add the foreign key. If you add EmployeesVO1, which is not dependent to DepartmensVO1, then the foreign key is not set. So if this is the case in THURA (keep in mind that this is not an Oracle demo but a sample used in a book about ADF) then all you need is to take the independent VO when building the new employee form.
    Frank

Maybe you are looking for

  • How to find session of process executed

    Hello I want to find out particular session from where process is running. My procedure is running from java application. I want to find out which session has generated/called process. i.e If user U1 and U2 has running process from screen, then in pr

  • Very slow speeds with Mac Pro talking to a Ubuntu Raid Server

    So I have an environment where mainly macs and a couple Windows PCs use a Ubuntu Raid 50 file server. When attempting to access the server the Mac Pros take typically 1 minute to view the file structure and sometimes timeout, the Windows machines tak

  • Smart form print program

    hi, im using version ECC 6.0.these standard programs /smb10/fm06p & /smb40fm06p doent exist in my SAP.please help how to extract those programs,im working on purchase order.

  • JNI call to find stability of file

    We receive files from third-party servers and these files are written to the disk in a windows machine. I am trying to find out how I can find out if the file is completely written to disk. I don't know the size of the file. Once the file is written

  • Sales of Service with Service order - Material issue

    Hi all, I created one sales order with a service material (Service product) which trigger a Service order. When I am trying to issue the material against this Service order, system shows an error "Sales order stock does not exist" in MIGO. Please adv