Pass loginid to form on startup

Hello,
I would like to pass the userid to a form through the formsweb.cfg file.
Currently, we are using forms6i in a sort of web based setup. When a user attempts to signin to an application, they first sign in to the network sso setup via a browser. The login is then passed to the form from the browser via an shtml page, browser variable. This is performed using html coding. Such as
<PARAM NAME = "serverArgs" VALUE ="module=ifi_main cams_session=<!--#echo var="HTTP_CAMS_HTTP_USER"-->">
I am trying to convert to 10g, using a named configuration, and need to trap the user login from the browser variable and pass to the formsweb.cfg file. However, if I try to use $HTTP_CAMS_HTTP_USER, it just shows the literal string. I am not quite sure how to go about this.
I have put in the html code to print -n the user:
<!--#exec cmd="ksh 'print -n $HTTP_CAMS_HTTP_USER'"-->
and it shows on the new .shtml page, but I can't get the forms servlet to see the variable. Even if I put it in the named configurations app.env file setup.
Can a variable be passed to the userid= parameter in the formsweb.cfg?
Thank you,

it seems to be simple:
1) create (hidden) item on detail form for master_table_key field,
set its Item Source = database column, all other settings - defaults
2) for CREATE button on report, which opens detail form,
in its URL Redirect block add Set These Items & With these Values to pass value to the new field

Similar Messages

  • PASSING DATA FROM FORM TO REPORT (how to on the same page?)

    Hello everybody
    yes, i know it is built in a two pages design where the first holds the form and the second the report, but I want it both on the same page so that one can see what he has on the report while adds his own row to the table. Well I could do creating a form and then editing the page and then add another region. Alright. But then i dont know how to relate them together so that the data pass from the form to the report.
    Besides, the Form for filling the data needs to pass them to two separate tables, because one table contains the particulars of the location and the other the comments about each store. Easy to do that on PHP and mysql but here I am lost.
    Second thing that is driving me nuts is that I created a table named location so as to street postcode for a store, and another one for evaluation so that customers or workers add a a row evaluating services etc.
    Well, I am trying to create that form i first talked about that would hold all the fields and I am doing it out of a SQL query that picks the definitions from both tables. My XE is completely empty from any leftovers of other applications etc. I make the equijoin alright
    select l.loc_id, l.company, l.postcode, l.street,l.town, e.eval_id, e.loc_id, e.locum_reg, e.date_booked, e.items, e.addicts, e.number_staff, e.attitude_staff, e.organisation, e.stock_filing, e.agency
    from location l, evaluation e
    where l.loc_id = e.loc_id
    and i get this annoying error all the time
    ORA-20001: Unable to create form on equijoin. ORA-20001: Error page=2 item="P2_LOC_ID" id="1324114494879878" ORA-20001: Error page=2 item="P2_LOC_ID" id="1324114494879878" has same name as existing application-level item. ORA-0000: normal, successful completion
    well, if that form is made up of both tables, it will definitively have to have something in common with them! how is the item name suppose to have another name? it is made with the wizzard so supposedly the wizzard should know it but I have tried for two days 14 hours each day.
    any indication as to how solve this would be priceless for me
    thank you
    Alvaro
    =========================================================================================================
    Edited by: user12155340 on 14-Nov-2009 03:38

    I'm just guessing, but it appears since you are selecting loc_id twice (once from each table) there are two items generated called P2_LOC_ID, and that's simply not possible (well - how would the application know which one you mean if there could be two with the same name?).
    Maybe it's worth trying the following:
    select l.loc_id as "L_LOC_ID", l.company, l.postcode, l.street,l.town, e.eval_id, e.loc_id as "E_LOC_ID", e.locum_reg, e.date_booked, e.items, e.addicts, e.number_staff, e.attitude_staff, e.organisation, e.stock_filing, e.agency
    from location l, evaluation e
    where l.loc_id = e.loc_id
    Another option is creating a view on the two tables (of course you must use 2 different column aliases for the two loc_id columns in the view too, otherwise you will receive an ORA-00957: duplicate column name) and use the view for creating reports and forms - however, automatic row processing works just on one table, so you would have to create your own processes to perform the DML...
    Edit: I just saw you already got this answered in the APEX forum.
    Holger
    Edited by: schweich on Nov 18, 2009 7:58 AM

  • How to Pass Parameter a form to another form ?

    Hi,
    I want to pass Parameter a form to another called form.
    What are the steps i want to do.
    Please guide me
    kanish
    Edited by: Kanish on Jul 21, 2010 11:38 PM

    Besides the two options FormsEleven gave, there's a third one: package variables.
    Create a package in a Forms library, define a variable in the package specification.
    Start the form with call_form/open_form with the option "SHARE_LIBRARY_DATA".

  • How pass parameter from Form to Graphics through Report?

    I wrote a Report called by a Form and pass a parameter from the
    Form to the Report, successfully! But I imported a Graphic in
    the Report, and the Graphic could not get the parameter...(the
    parameter in the Report and Graphic should both pass from the
    Form).
    I call the Report by " Run_Product( REPORTS, :V_PRTNAME,
    SYNCHRONOUS, RUNTIME, FILESYSTEM, pl_id,NULL); " in the Form.
    and I imported the image from file for the Graphic in the Report.
    Thanks for your help!
    null

    Meilan (guest) wrote:
    : I wrote a Report called by a Form and pass a parameter from the
    : Form to the Report, successfully! But I imported a Graphic in
    : the Report, and the Graphic could not get the parameter...(the
    : parameter in the Report and Graphic should both pass from the
    : Form).
    : I call the Report by " Run_Product( REPORTS, :V_PRTNAME,
    : SYNCHRONOUS, RUNTIME, FILESYSTEM, pl_id,NULL); " in the Form.
    : and I imported the image from file for the Graphic in the
    Report.
    : Thanks for your help!
    Meilan,
    This forum is for Headstart related questions and experiences
    only. Please go to metalink.oracle.com to get more information on
    your problem.
    Regards,
    Ton
    null

  • Pass parameter to form from webpage?

    Hi guys,
    I'm aware that you are able to pass parameters between forms using CALL_FORM (using parameter list).
    Is it possible to pass parameters to a form from the webpage?

    i am trying to pass the parent_id as a parameter to a portal page but am not able to... i can add it to the list of in parameters to the PL/SQL based parent id but when i add the parent id to the url then i get no result... i created a custom attribute for the parent id since there is no attribute build other then page group and page id... when I set the Parent ID attributes default value in the attribute properties of the item type based on PL/SQL it just brings back results for the default value and if i pass a different value for ithe parent id i dont get the correct result I get the result for the default parent id.
    I am using the followin url to pass the parent id
    http://localhost:7778/portal/page?_pageid=76,87832&_dad=portal&_schema=PORTAL&parentid=22223

  • PASSING DATA FROM FORM INTO REPORT (how to on the same page)

    Hello everybody
    yes, i know it is built in a two pages design where the first holds the form and the second the report, but I want it both on the same page so that one can see what he has on the report while adds his own row to the table. Well I could do creating a form and then editing the page and then add another region. Alright. But then i dont know how to relate them together so that the data pass from the form to the report.
    Besides, the Form for filling the data needs to pass them to two separate tables, because one table contains the particulars of the location and the other the comments about each store. Easy to do that on PHP and mysql but here I am lost.
    Second thing that is driving me nuts is that I created a table named location so as to street postcode for a store, and another one for evaluation so that customers or workers add a a row evaluating services etc.
    Well, I am trying to create that form i first talked about that would hold all the fields and I am doing it out of a SQL query that picks the definitions from both tables. My XE is completely empty from any leftovers of other applications etc. I make the equijoin alright
    select l.loc_id, l.company, l.postcode, l.street,l.town, e.eval_id, e.loc_id, e.locum_reg, e.date_booked, e.items, e.addicts, e.number_staff, e.attitude_staff, e.organisation, e.stock_filing, e.agency
    from location l, evaluation e
    where l.loc_id = e.loc_id
    and i get this annoying error all the time
    ORA-20001: Unable to create form on equijoin. ORA-20001: Error page=2 item="P2_LOC_ID" id="1324114494879878" ORA-20001: Error page=2 item="P2_LOC_ID" id="1324114494879878" has same name as existing application-level item. ORA-0000: normal, successful completion
    well, if that form is made up of both tables, it will definitively have to have something in common with them! how is the item name suppose to have another name? it is made with the wizzard so supposedly the wizzard should know it but I have tried for two days 14 hours each day.
    any indication as to how solve this would be priceless for me
    thank you
    Alvaro

    This should be so:
    A person goes to work to place A
    At the end of the day, he or she goes into the web fills the form and clicks the botton. Then, he or she has added a row to the form. As simple as that. But bear in mind that that form is comprised of data about the address and the comments, which are completely different entities, and not all elements of each entity is to appear in the report. That is why they have to go to two tables on the background and then the report pick from each table what it wants to show publiclly.
    What I am actually trying to do is passing the values from the form into the two separate tables Location and Evaluation. Then I have already placed a select query under the report and I have seen that it updates itself as I manually filled the two tables so this process works fine. What I need is, instead of filling the tables manually as I am doing, fill them through the completion of the textfields of the form. This is so because not all the fields have to be shown on the report, for example, the person reporting will remain anonimous and that is something I am able to do by simply not including him in the select query of the report.
    I am like exploring now the edit page possibilities and indeed I have discovered that the button of the Form that says create is associated with a Insert request on the database. Also i have seen that the way this works is by something like this P3_POSTCODE, &P3_POSTCODE where P3 is the item and &P3 is the value that is in the textfield associated with that item name.
    Edited by: user12155340 on 14-Nov-2009 11:05

  • How to verify the user information pass by the form with a stored procedure?

    Hi,
    I would like to know how to verify user information pass by the form with a stored procedure.
    I want make a portal which accepts to new user registration, but I want verify the new user's informations (like the name don't contain a number etc).
    Thanks for your help
    regards
    jla

    Hi Samson,
    You can use the UI API to do this. You can catch the form_ADD event and then validate the input from the users. You can even block the event from completing (and stop the document from being added) if your code finds some incorrect data using the bubbleEvent functionality.
    I don't have one specific example to show you, but if you look at some of the SDK samples (for example C:\Program Files\SAP\SAP Business One SDK\Samples\COM UI\VB.NET\02.CatchingEvents) to see how to work with events, you can then create your own validation to ensure the users data is valid.
    Regards,
    Niall

  • Passing values to form bean string array from dynamic added textboxes

    Hi,
    I am unable to pass values to form bean string array from a jsp in which I have incorporated dynamically adding of textboxes in javascript.
    I have given add/delete row option in the jsp. If there is single row, this is working fine. But after adding a row, I am not able to either do any validations on added textboxes or pass the values to the String array form bean variable.
    code snippet:
    var cell6 = row.insertCell(4);
    var element5 = document.createElement("input");
    element5.type = "text";
    element5.className = "formtext1";
    element5.size = "5";
    element5.value = "00.00";
    element5.name= "qty"; // this is a string array of the form bean.
    element5.onchange=function() {checkNumeric(this);};
    cell6.appendChild(element5);
    <html:text styleClass="formtext1" property="qty" value="" size="5" styleId="qty" onchange="checkNumeric(this)"/></td>
    form bean declaration
    private String[] qty; Please help.
    Edited by: j2eefresher on Jan 12, 2010 11:23 PM

    Shivanand,
    There's no need to post that much code when you could create a very short test case that demonstrates only the problem you are having.
    You're using &NAME. notation on something that isn't a page or application item. You can't reference PL/SQL variables that way (or any other way) outside the PL/SQL scope. For your situation, you could create a page item named P55_DOCID and assign it a value in the PL/SQL process (:P55_DOCID := DOCID;), then reference &P55_DOCID. in HTML areas like the success message.
    Scott

  • Passing values to Forms

    I created a report and a form in 9ias portal. I want to pass a value from the report to the Form (not the Rowid). Can any body let me how can I do that?
    thanks,
    ajay

    DeltaGeek wrote:
    BarryC wrote:
    Thank you.
    Do you happen to know of any tutorials/examples showing various methods of passing values between forms?The same way you pass values anywhere else. When you create your child form, give it a reference to the parent form or references to the data that will be changed. If you feel like making your code more modular, create a class specifically to hold the entered data and be passed anywhere you need.An application context, in effect

  • Is it possible to pass the Interactive Form on dynamic?

    Hi,
    Is it possible to pass the Interactive Form on dynamic?
    In webdynpro I am handling the header part that will be common for the entire input screen, based on the application name I want to call the different interactive forms. I have seen in template source there is no option to provide binding with context.
    Regards,
    Mahesh.Gattu

    Hi Mahesh,
    You can create different views with different PDF forms in their template source and dynamically navigate to the required view/ make the required view visible.
    say on your main view, create the header part with the necesaary UI elements and insert multiple view containers below it. Embed a pdf view in the respectve view containers.
    Create a context node UI_RENDER .. cardinality 1..1
    Create attributes pdf1_visible type wdui_visibility
    pdf2_visible and so on. Bind these to the visible property of the respective view container.
    based on the application name, set them to either visible or invisible.
    Hope this helps.
    Regards,
    Reema.

  • FRM-92101: There was a failure in the forms during startup. this could happend due to invalid configuration

    Dear members,
    I have installed and using developer suite 10g from past 6months in my local desktop windows xp-sp3. i am running the forms using menus in my local desktop.
    But recently all the forms are working fine from menu except one form, when i ran a particular form with out doing any modifications i'm getting the below error.
    FRM-92101: There was a failure in the forms during startup. this could happend due to invalid configuration.
    and the error log at C:\DevSuiteHome_1\j2ee\DevSuite\application-deployments\forms\application.txt is
    13/07/22 12:50:37 formsweb: Forms session <3> aborted: unable to communicate with runtime process.
    13/07/22 12:50:37 formsweb: Forms session <3> exception stack trace:
    java.net.SocketException: Connection reset
      at java.net.SocketInputStream.read(SocketInputStream.java:168)
      at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
      at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
      at java.io.DataInputStream.readLine(DataInputStream.java:562)
      at oracle.forms.net.HTTPHeaderTool.parseResponseHeader(Unknown Source)
      at oracle.forms.servlet.ListenerServlet.forwardResponseFromRunform(Unknown Source)
      at oracle.forms.servlet.ListenerServlet.doPost(Unknown Source)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:835)
      at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:341)
      at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:816)
      at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:285)
      at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:126)
      at com.evermind[Oracle Application Server Containers for J2EE 10g (10.1.2.3.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
      at java.lang.Thread.run(Thread.java:534)
    here is the details of the versions:
    desktop os(no application server): windows xp-sp3.
    forms version: Forms [32 Bit] Version 10.1.2.3.0 (Production)
    im using java version:  Version 6 Update 45 (Build 1.6.0_45-b06)
    the form is using webutil librarys
    getting errors from the browser versions: Internet Explorer 6(xp-sp3) & Google Crome Version 28.0.1500.72 m
    i have tried several times by compiling the form using shft+ctrl+k and create the fmx again using ctrl+t, but still facing the same issue.
    Please help me ASAP, if anyone have any idea about what could be the reason and how could i resolve this issue.
    Thanks,
    Krish.

    Krish,
    Unfortunately, you are dealing with a situation that will require a lot of patients as this type of error is not easy to troubleshoot.
    user7699138 wrote:
    the form is using webutil librarys
    Are any of your other forms that work using WebUtil?  If no - then you may not have completed the WebUtil configuration completely.
    The first troubleshooting step is to display the Java Console (Start => Control Panel => Java => Advanced tab => Java Console node => Show Console) as you may be getting an Java Exception that is not being reported through Forms.
    Craig...

  • Passing parameters from Forms to Reports - Unhandled exception error

    Hi there,
    I am passing parammeters to my Reports through Forms. I am using the built-in RUN_REPORT_OBJECT to invoke and run my report.
    DECLARE
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    BEGIN
    repid := FIND_REPORT_OBJECT('MY_REPORT');
    SET_REPORT_OBJECT_PROPERTY(repid, REPORT_OTHER,
    'p1='&#0124; &#0124;to_char(:block.p1_field)&#0124; &#0124;
    ' p2='&#0124; &#0124;to_char(:block.p2_field)&#0124; &#0124;
    ' p3='&#0124; &#0124;to_char(:block.p3_field)&#0124; &#0124;
    ' paramfrom=no');
    v_rep := RUN_REPORT_OBJECT(repid);
    EXIT_FORM;
    END;
    In one of my reports, after the report was invoked on the previewer window and I closed it, an unhandled exception error message appears.
    Are there any restrictions on the length of REPORT_OTHER parameters/value, as in this form, there are quite a number of parameters set to passed into the reports?
    I did not encounter this problem when running the report using the default REPORTS PARAMETER FORM to pass in the parameter. It is only when I pass in through FORMS using SET_REPORT_OBJECT_PROPERTY, then the error appears.
    I did not encounter this error with other reports which have little parameters.
    Regards,
    Hon Koat

    Pang,
    Not sure it this will make the problem go away, but you could try to send the parameters in a parameter list, instead of setting the REPORT_OTHER values.
    The syntax is the same you use to pass parameter list from one form to another:
    declare
    repid REPORT_OBJECT;
    v_rep VARCHAR2(100);
    v_list paramlist;
    c_listname constant varchar2(30) := 'my_list';
    begin
    repid := FIND_REPORT_OBJECT('MY_REPORT');
    v_list := get_parameter_list(c_listname);
    if not id_null(v_list) then
    destroy_parameter_list(v_list);
    end if;
    v_list := create_parameter_list(c_listname);
    add_parameter(v_list, 'P1', text_parameter, to_char(:block.p1_field));
    add_parameter(v_list, 'P2', text_parameter, to_char(:block.p2_field));
    v_rep := RUN_REPORT_OBJECT(repid, v_list);
    end;Hope this solves your problem,
    Pedro

  • Pass variables between form

    Hi,
    I'm using oracle forms 6i.
    How can i pass variables between forms?
    Consider the scenarion of a login form.
    After a user logged in successfully, a new form appears , where his name should be displayed
    like 'Welcome <user>'
    So name should be passed form login form to the home page.
    Is it possible with Oracle?
    Divya

    Arif,
    -- Your CodeTo format a number of lines, write  at the ending and to begin the code area write .
    -- Line of Code
    And if you want only 1 line to be formatted then use >.
    Regards,
    Manu.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Passing data between forms in Release 2

    I have one large form that I need to split into several forms on different tabs in a page, so they can be displayed and updated independently.
    I have seen some talk about using wwa_api_module_session to do so in 3.0.9. Does this work in 9.0.2?
    Does anyone have a short example of the code needed to call one form from another, passing the key field?
    Thanks,
    Gary

    Hi,
    In the success procedure of the form get the value of the field and pass it to the form.
    Here is an example
    declare
    ticket_no varchar2(20);
    flight_no varchar2(20);
    blk varchar2(30) := 'DEFAULT';
    begin
    ticket_no := p_session.get_value_as_varchar2(
    p_block_name => blk,
    p_attribute_name => 'A_TICKET_NO');
    flight_no := p_session.get_value_as_varchar2(
    p_block_name => blk,
    p_attribute_name => 'A_FLIGHT_NO');
    go('<product_schema>.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=1384225689&p_arg_names=_sessionid&p_arg_values=&p_arg_names=ticket_no&p_arg_values='||ticket_no||'&p_arg_names=flight_no&p_arg_values='||flight_no);
    end;
    This passes the ticket no and flight no to another form.
    Thanks,
    Sharmila

  • Report with Form Passing date to form from report issue

    Hi All ,
    I got stuck up in the below issue .Can anyone point out the issue behind it and how to get rid of this.
    I have created a report page with form page .The report page have 2 column identified as conjugate primary key.the col1 is varchar2 and col2 is date .
    The report page have one link on col1 field which is passing the Item_value for both col1 and col2 to form page .
    In the DB level the col2 data type is date (for e.g : 26/07/2007 07:08:56) .But the probem is when we are clicking on the link of col1 it is displaying error like Error like ORA-01403: no data found .
    But if the data in DB is only in format of DD/MM/YYYY removing the timestmap the link is working fine and returing data for other fields in the form page .
    Could anyone pls pointed out the problem and let us know the issue.
    Thanks in advance.
    Regards,
    Deba

    Hi Deba,
    I suppose your problem is due to the : in the time.
    You're passing these values with the url I suppose? Have a look how APEX generates/constructs the url, it uses : to separate things.
    I'm not sure why you want a date in a Primary Key?
    Thanks,
    Dimitri

Maybe you are looking for

  • The Po Changed XML Message is in Error in SRM SUS

    Dear Experts, We are integrating ECC to SRM SUS system, and PO was successfully processed from PI and in SRM SUS we are getting below error. <namespace="http://sap.com/xi/SRM/SE/Global">ExchangeFaultData</SAP:ApplicationFaultMessage>   <SAP:Stack>App

  • How to create PlayList in nokia6233???

    I want to create many playlists in Mediaplayer? but I don't know how to do this.

  • Slow listing of hard drive contents after boot

    Hi, I bought a brand new 15inch Macboot Pro (unibody) about a month ago. I quickly noticed that when after I booted it and opened the hard drive it took 5 - 6 seconds to list the drive's contents. Once they were cached ( I assume that's the reason) t

  • Fixing indicator for BOM explosion marked by default

    Hello Experts, I'm in a repetitive manufacturing scenario and I want to know if it is possible to generate planned orders with Fixing indicator for BOM explosion marked by default. Does anybody know if it can be done??

  • What really works in resolving USPS loss of your device?

    We all know the problem of USPS losing devices sent via Verizon's prepaid shipping labels is rampant. There are dozens on comments on threads in this forum regarding the issue. However it seems like there are ways to twit Verizon's arm into cancellin