Pass form element value after insert

I have a page with an insert behaivor, it inserts all form
elements BUT one,
I need to pass the value of this form element to the next
page.
If I apply the 'insert' behaivor, it does the insert well,
but the value of
the form element is not passed to the next page, how can this
be accomplised
Aleks

I can't because the value is entered in the form and there is
no value until
it is posted. Remember this is an 'insert page' that then
redirects to the
next page.
I used redirection as:
<%
' *** Insert Record and retrieve autonumber: set variables
If (CStr(Request("MM_insert")) <> "") Then
MM_editConnection = MM_eimmigration_STRING
TM_editTable = "dbo.Users"
TM_editRedirectUrl =
"SPLinkFamilymember.asp?FamUserId=Request('relations')"
Last line has the redirection link.
but didnt work, I get following error, next page I get this
value:
Request('relations')
Instead of the actual value selected in the form.
I am using ASP/VB and MS SQL 2000
A
"Murray *ACE*" <[email protected]> wrote
in message
news:ec821m$df0$[email protected]..
> By making it a URL parameter? You would arrange that
when you make the
> link to the next page.
>
> For example -
>
> <a href="next-page.php?<?php echo($yourvariable);
?>">Next page</a>
>
> --
> Murray --- ICQ 71997575
> Adobe Community Expert
> (If you *MUST* email me, don't LAUGH when you do so!)
> ==================
>
http://www.dreamweavermx-templates.com
- Template Triage!
>
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
>
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
>
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
> ==================
>
>
> "Alejandro" <[email protected]> wrote in
message
> news:ec7p5g$4d3$[email protected]..
>>I have a page with an insert behaivor, it inserts all
form elements BUT
>>one, I need to pass the value of this form element to
the next page.
>> If I apply the 'insert' behaivor, it does the insert
well, but the value
>> of the form element is not passed to the next page,
how can this be
>> accomplised ?
>>
>> Aleks
>>
>
>

Similar Messages

  • How to set a form element value using javascript?

    Hello,
    I have been using the following two functions in AS 9.0.2 to set form values in javascript and it works correctly. However, the same code does not work in AS 10.1.2.0.2. Would appreciate if someone could let me know how to set form elements using Javascript(onchange of a field).
    function set_item_value(p_field_name, p_value)
    var v_index, v_full_name;
    for(v_index=0; v_index<document.forms[0].length; v_index++)
    v_full_name = document.forms[0].elements[v_index].name.split
    if (v_full_name[2] == p_field_name)
    document.forms[0].elements[v_index].value = p_value;
    function get_item_value(p_field_name)
    var v_index, v_full_name, v_return="";
    for(v_index=0; v_index<document.forms[0].length; v_index++)
    v_full_name = document.forms[0].elements[v_index].name.split
    if(v_full_name[2] == p_field_name)
    if(document.forms[0].elements[v_index].type != "radio")
    v_return = document.forms[0].elements[v_index].value;
    else
    if(document.forms[0].elements[v_index].checked)
    v_return = document.forms[0].elements[v_index].value;
    if(v_return == " ")
    v_return = "";
    return v_return;
    Thanks
    Dev

    This is not the best way to write JavaScript in Portal environment!
    You can't be sure that a form is the first in the html source!
    In Portal you change the order of your portlets, and also you can have several instances of the same portlet on the same page!!!
    You should use qualified form and field names!
    Please check the following JPDK methods:
    UrlUtils.htmlFormName
    HttpPortletRendererUtil.portletParameter

  • Forms personalyzation, passing Form field values to SRS concurrent request.

    Hi,
    Iam calling an SRS from forms personlization. Can any body tell me how to pass the Form field values as parameters to the Reports. (Example when they call this Concurrent request from Transactions screen, The invoice number should be defaulted in the report parameter).
    Regards,,
    Anil.

    Hi,
    You can use FND_REQUEST.SUBMIT_REQUEST to submit a concurrent progrm with parameters given.
    For example, get the invoice number into v_invoice_no and call a function included code bellow.
    FND_REQUEST.SUBMIT_REQUEST(
    <app_short_name>,
    <concurrent_short_name>,
    to_char(SYSDATE,'DD-MON-YYYY HH24:MI'),
    FALSE,
    v_invoice_no,chr(0),'','','','','','','','',
    '','','','','','','','','','');-- 100 ARGUMENTS FROM THE BEGINNING
    Where chr(0) must be the last argument.

  • Directing workflow transition based on form element value

    Question 1
    =======
    How can workflow change values in a form element?
    Example: We have an expense aproval form.
    If the form transits from state ManagerA to state Reject, I want the form element Rejected by: to be automaticaly set to value ManageA.
    How ho achieve this?
    Question 2:
    ========
    How can a workflow read a form element and based on the element value automatically transit to other state?
    Example: An expense aproval form is in state ManagerA.
    If a user set the form element Rejected by manually to the value ManagerA, I want the form to be automatically transited from state ManagerA to state Rejected.
    How ho achieve this?

    Originally Posted by dangross
    Answer to question 2 is: Add a transition of type "Transition on Entry Data Value" and configure it accordingly.
    Dangross, thanks for the reply. Yeah, that Transition on Entry Data Value will do the job.

  • Pass Container Element Value Dynamically

    Hi Experts,
    We are facing an issue with Workflows. Whenever I restart a WF that has already ended up in Error, I need to pass it Certain Container Element Values Dynamically as it restarts the same WF again with the same Container values and it again ends up in Error. Is it possible that I can change these values during Runtime.
    I have searched few SAPNotes also but could not find some Solution. Is anyone has worked on this Scenario before please respond.
    Is this Possible.. Because this is the only way how we can allow that background Process to work.
    Regards,
    Kanika

    hi,
    >In SWIA select a work item that will prompts you to next window.
    >In the next window select technical details -> that will opens other window
    This works fine.
    >in that window select edit -> change
    that will display some containers like
    Logically delete
    change container
    deadline monitoring
    This is not happening... Unable to fins anything known as "Edit/Change"..
    Hope i could attach screen-shots...to know where im missing this link
    regards,
    kanika

  • ?Trigger to return primary key value after insert"

    Ok, so I'm a newbie to oracle. I was hoping someone could tell
    me how I can get the value of a field after insertion. I
    created a sequence and a trigger to autoincrement the primary
    key. I figured out that select @@Identity does not work. So
    I'm trying to figure out how to return the primary key value of
    just inserted record.
    Any help or suggestions would be really appreciated.
    thanks matt

    I have 3 tables - master, detail and collector.
    when a record is inserted into the collector table - I want to fire a trigger and insert the value of "collector.a_test", "collector.b_test" into "master.test" and "detail.test" respectively.
    I want to create an after/insert trigger on the collector table to accomplish this. I tried to implement the example listed in previous message (see below) *** BUT **** I get a PLS-00103 error - "Encountered the symbol "A_ID" when expecting one of the following: :=. ( @ %;
    Note: master, detail and collector have before insert trigger/sequence that assigns their PK values.
    master has 2 columns - a_id (number PK), a_test (varchar2(255))
    detail has 3 columns - b_id (number PK), b_test (varchar2(255)), aa_id (number FK)
    collector has 3 columns - c_id (number PK), a_test (varchar2(255)), b_test (varchar2(255))
    as in;
    create or replace trigger wf.c_a_b_insert
    after insert on wf.collector
    referencing old as old new as new
    for each row
    declare
    aa_id master.a_id%type;
    begin
    insert into master (a_test) values(:new.a_test);
    returning a_id into aa_id;
    /* now insert into detail and get the FK value from aa_id */
    end;
    What am I doing wrong and how can I fix this?
    Thanks much!
    Bill G...

  • Document.form.element.value

    Hi All,
    I'm very new to javascript and had a quick question!  Her is a sample of my code.
    <script language="JavaScript" type="text/javascript">
                      function fnShowText(txt)
                        var x = document.getElementById(txt);
                        var e = document.getElementById(txt).name;
                        var sText = x.options.value;
                        var f = e.concat("b");
                        for (i=0; i<mainform.elements.length; i++)
                           if (mainform.elements<i>.name == f)
                         document.forms[0].elements<i>.value = sText;
                    </script>
    I know what the value of elements is, but I want this script to be dynamic.  Instead of looping through all the elements to find the value 'i' like I am currently doing it.  This is bad response time.  Is there a way to skip the looping and make this call dynamically if I already have the name of the element?
    Thanks in advance!
    Eric
    By the way there is a 'i' after elements but for some reason it isn't showing up on this board.

    if you have a input tag in your html page you can go about it the following ways.
    <input type=text name="t1" id="t1"></input>
    <script>
    document.getElementById("t1").value = "here";
    document.getELementsByName("t1")[0].value = "there";
    </script>
    getElementsByName brings back an array.
    getElementByID gets back one object.
    You should test your taget browsers with both of these.  I know that IE works fine with getID, but others do not.

  • Passing form 1 values to form 2

    Hi All,
    I have Form 1 in which I have fields like location_id, location_code which has values assigned to it.
    On this Form 1, I have a button, and when clicked, opens a new form Form 2, on which I have location_id, location_code and other new fields.
    Now my query is when I click the button on Form 1 and when it navigates to Form 2, on that Form 2 in fields location_id and location_code, it should have the values inserted taken from Form 1 and should be in read-only mode i.e non-editable, and other fields I can enter values and can save the form.
    Any ideas how to achieve this.. Help Greatly Appreciated.
    Thanks
    Aman Khan

    user13115886 wrote:
    HI,
    This is not Oracle forms where in we call paramlist and assign it to call_form.. its oracl EBS where in we dont use call_form but we use fnd_funciton.execute function to call in other form.
    Thanks
    AMan       
    This being the case, I recommend you ask your question in the EBS General Discussions forum to ask your question.  The EBS framework has methods for setting Profile values (if I remember correctly) that you use when passing values between forms.  I don't recommend you use Globals in this instance since the EBS has a standardized way of handling this.  This also makes your Form compliant with EBS development standards.
    Craig...

  • Passing form field values, to an external script, in a URL

    We have a Dynamic, Reader Extended, Livecyce form from which we need to pass two user selected values to an external script. The values need to be passed via a URL, and cannot be static entries, but need to change based on user input.
    I have tried variations on the following example, without success.
    form1.page1.button::click - (JavaScript, client)
    var userselected1;
    userselected1 = form1.page1.field1.rawValue;
    var userselected2;
    userselected2 = form1.page1.field2.rawValue;
    xfa.host.gotoURL("http://ourdomain.com/script.php?selected1=userselected1&selected2=userselected2");
    Thanks,
    Ron

    Got it!! There is probably a more elegant method for achieving this, but the script below works for us. A new page opens in a browser, and displays information related to the variables passed to the script.
    form1.page1.button::click - (JavaScript, client)
    newURL1 = 'http://ourdomain.com.com/script.php?selected1=';
    newURL2 = userselected1;
    newURL3 = "&selected2=";
    newURL4 = userselected2;
    myNewURL = newURL1+newURL2+newURL3+newURL4;
    app.launchURL(myNewURL, true);
    Hope this helps someone else!!

  • Retain all form field values after input text field validation failure

    Hi,
    I have a form with 1 input text field, one Command button and one h:selectManyListbox. when User enteres some values in input field and clicks on command button named Add, the value is validated. If input is invalid, then an error message appears next to the field. If input is valid, then the value is added into h:selectManyListbox. Adding to list box is done using Ajax4Jsf.
    Probelm:
    Let's assume user entered 3 valid values one after another and all are added into the list box. When he enters a wrong value, and error message appears. however, the entered values in list box goes away. Is there a way to retain the values even after validation failure.
    Code is given below;
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
    <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
    <%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
    <%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
    <h:panelGroup>
         <h:outputLabel for="inputEmailId1" value="Email Id: " />
         <t:inputText value="#{bean.newEmailId}" id="inputEmailId1" maxlength="100" size="40" immediate="true">
              <t:validateEmail message="Enter a valid Email Id." />
         </t:inputText>
         <t:message for="inputEmailId1" styleClass="errorStyleClass" />
    </h:panelGroup>
    <t:panelGroup style="text-align: left;" >
         <a4j:commandButton value="Add" styleClass="buttonsSub" action="#{bean.addSharedEmails}"
              reRender="inputEmailId1, selectedSharedEmails" />
    </t:panelGroup>
    <t:panelGroup style="text-align: left;">
         <h:selectManyListbox id="selectedSharedEmails" size="8" style="width:100%;" immediate="true">
              <f:selectItems value="#{bean.sharedEmails}" />
         </h:selectManyListbox>
    </t:panelGroup>
    Thanks in advance,

    Use the attribute "binding" instead of a "value". This will remember the value. You can also make sure that you dont have anything in your constructor or class level that initialises that value to "" or null. Because if JSF is remembering your value but your initialization that gets triggered before the page loading resets it to default values then you need to change that part of the code.

  • Need some advice on form element values?

    Hi All,
    I have an issue with the website i am currently developing. Its a e-commerce site for a memorial masons. For each product/memorial there are several elements, drop down menus and text fields to retrieve the information needed, there is also a 'total' that as customers make their choices the amount for each element is added to this total. My problem is, on the two elements 'engraved_designs' and 'sandblasted_designs' i need to calculate that amount into total but also i need to retrieve the code of the design chosen for back office reference. I can't use both the price and code in the 'value' attribute as that will stop the calculation function from working. So how am i to get the amount to calculate at the same time as being able to retrieve the code chosen when submitting the form?
    http://www.milesmemorials.com/product-GH54.html

    Ok sorry i didnt realise that would do that, to have this  '75#P4.2' come up in hidden field is exactly right for what i need. But i think maybe i haven't amended my php file for this properly, this is how it looks -
    <?php
    if(!isset($_POST['submit']))
              //This page should not be accessed directly. Need to submit the form.
              echo "error; you need to submit the form!";
    $name = $_POST['name'];
    $tel = $_POST['tel'];
    $email = $_POST['email'];
    $productCode = $_POST['productCode'];
    $colour2 = $_POST['colour2'];
    $engraving2 = $_POST['engraving2'];
    $font2 = $_POST['font2'];
    $textarea2 = $_POST['textarea2'];
    $engraved_designs2 = $_POST['engraved_designs2'];
    $sandblasted2 = explode('#', $_POST['sandblasted_designs2']);
    $sandblasted_design2 = $sandblasted2[1];
    $grand_total2 = $_POST['grand_total2'];
    $cemetery_name2 = $_POST['cemetery_name2'];
    $cemetery_address2 = $_POST['cemetery_address2'];
    $grave_number2 = $_POST['grave_number2'];
    //Validate first
    if(empty($name)||empty($tel)||empty($email)||empty($colour2)||empty($engraving2)||empty($f ont2)||empty($textarea2)||empty($grand_total2))
        echo "All fields are mandatory!";
        exit;
    if(IsInjected($email))
        echo "Bad email value!";
        exit;
    $email_from = 'milesmemorials.com';//<== update the email address
    $email_subject = "Memorial Proof Request";
    $email_body = "Request from: $name.\n";
    $email_body .= "Email: $email.\n";
    $email_body .= "Tel: $tel.\n";
    $email_body .= "Item number: $productCode.\n";
    $email_body .= "Memorial colour: $colour2.\n";
    $email_body .= "Engraved lettering (per letter): $engraving2.\n";
    $email_body .= "Font style choice: $font2.\n";
    $email_body .= "Memorial wording: $textarea2.\n";
    $email_body .= "State of the art engraved design: $engraved_designs2.\n";
    $email_body .= "Sandblasted design: $sandblasted_designs2.\n";
    $email_body .= "Sandblasted design: $sandblasted2.\n";
    $email_body .= "Total: $grand_total2.\n";
    $email_body .= "Name of cemetery: $cemetery_name2.\n";
    $email_body .= "Address of cemetery: $cemetery_address2.\n";
    $email_body .= "Grave number: $grave_number2.\n";
    $to = "[personal information removed by moderator]";//<== update the email address
    $headers = 'From: '.$email."\r\n".
    $headers = 'Reply-To:'.$email."\r\n";
    //Send the email!
    mail($to,$email_subject,$email_body,$headers);
    //done.  redirect to payment page.
    header('Location: thanks.html');
    // Function to validate against any email injection attempts
    function IsInjected($str)
      $injections = array('(\n+)',
                  '(\r+)',
                  '(\t+)',
                  '(%0A+)',
                  '(%0D+)',
                  '(%08+)',
                  '(%09+)'
      $inject = join('|', $injections);
      $inject = "/$inject/i";
      if(preg_match($inject,$str))
        return true;
      else
        return false;
    ?>

  • How to get auto-increment value after insert on ACCESS db?

    When you insert a new record to a table with an auto-incrementing key, how do you find the value for the row you just inserted? This works differently with different databases. I know how it's done on ORACLE and mySql.
    How does it work with ACCESS through ODBC? How about MSSQL?

    I have discovered there's a LAST aggregate function which when I've tested it gets the just inserted auto-increment, but I'm not sure if it's reliable. You have to do:
    SELECT LAST(index-field) FROM table
    That ought to be faster than MAX, which I've noticed some people use. Persumable LAST will get the value from the last row in the table's natural order.
    In fact an auto-increment field has no business filling in missing slots since the main point is a a foreign key in other tables and a foreign key pointing to a deleted table row ought to be invalidated, not point to some unrelated successor record.
    I could use a separate table as a source of counters, of course, though that's one more call. In either case I'm worried about thread safety. In Oracle there are special sequence objects for this purpose which are incremented and read atomically. I'm not sure if the access driver transaction handling works adequately.
    Perhaps the safest approach might be to use a separate sequencer table and Java sychronisation to serialise access to each row in the sequencer table (assuming all the access is from the same app).

  • Keeping element value after re-launch

    Hi,
    I restart my wf through an event (using SWE_EVENT_CREATE). There is an element that contains a string that is filled in by the user the first time, and I want to reuse it when the workflow starts again.
    However, it is initialized automatically when the wf is relaunched. How can I keep it so I don`t have to ask it again to the user?
    Thank you very much for your time,
    Ivson

    Hi Ivson,
    You are using a custom program to "retrigger" a workflow, right?
    That means that a new workitem will get created, with no knowledge of the previous workitem with the same key.
    You can try changing the custom program, to retrieve some of the info and paas that on in the event-->WF binding, or you can somehow create a custom table with all of the containerelements you want to use, in that case, in the custom program you retrieve all of that data and pass that on to a buffer/transparent table and as the first step of the workflow you retrieve that data, plus in every step you have to create conditions which checks if this is a new workflow, or if this has been retriggered.
    All in all quite some work, maybe it's better for the users to live with the inconvenience.
    What is the reason exactly for retriggering the workflow?
    I did this some time ago, but before retriggering the flows, I made sure that no user interaction took place and that no master data was altered, only then it was safe to retrigger them.
    Kind regards, Rob Dielemans

  • How to pass the FORM Fields value by Form Personalization

    Hi ALL,
    I want to pass form filds values in to procedure. I am calling this procedure through form personalization of that form..... But it's not accepting any form field's value there... when i am passing hardcoded vales procedure is executing fine...
    can any one suggest what to do???
    i tried with these syntax
    TEST_EMP_FP(:ADDR.ADDRESS_ID,'ABC')
    TEST_EMP_FP(${item.ADDR.ADDRESS_ID.value},'ABC')
    Regards
    Ravi

    Hi,
    Iam calling an SRS from forms personlization. Can any body tell me how to pass the Form field values as parameters to the Reports. (Example when they call this Concurrent request from Transact5ions screen, The invoice number should be defaulted in the report parameter).
    Regards,,
    Anil.

  • Javascript function is not working for jsp:include.. form elements

    HI,
    I have two jsp's and i will include one jsp in the another jsp, when i do this
    i am not able to access child form elements value using javascript. the javascript
    function is defined in the main jsp. but i could able to get the main form elements
    through javascript
    here is the code.
    main.jsp
    <!--Generated by WebLogic Workshop-->
    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    <%@ taglib uri="netui-tags-databinding.tld" prefix="netui-data"%>
    <%@ taglib uri="netui-tags-html.tld" prefix="netui"%>
    <%@ taglib uri="netui-tags-template.tld" prefix="netui-template"%>
    <netui:html>
    <head>
    <title>
    Web Application Page
    </title>
    <script language="JavaScript">
    function isValidAge() {
    alert ("hage " +document[getNetuiTagName("MyForm")][getNetuiTagName("age")].value)
    alert ("swage " +document[getNetuiTagName("MyForm")][getNetuiTagName("swage")].value)
    alert ("wage "+document[getNetuiTagName("MyForm")][getNetuiTagName("wage")].value)
    </script>
    </head>
    <body>
    <p>
    <netui:form action="myaction" tagId="MyForm">
    <netui:textBox tagId="age" dataSource="{actionForm.age}"/>
    <netui:textBox tagId="swage" dataSource="{actionForm.swage}"/>
    here i am adding
    <jsp:include page="NewPage.jsp" />
    <netui:button onClick="isValidAge();" />
    </netui:form>
    </p>
    </body>
    </netui:html>
    child.jsp :
    <!--Generated by WebLogic Workshop-->
    <%@ taglib uri="netui-tags-html.tld" prefix="netui"%>
    <table class="tablebody">
    <tr class="tablebody">
    <td> wife age
    <netui:textBox tagId="wage" dataSource="{actionForm.wage}"/>
    </td>
    </tr>
    </table>
    can you tell me is this is bug in hte weblogic portal SP1.
    I am using weblogic portal SP1.
    thanks in advance
    shashi

    in this part:
    if(document.LForm.uname.value==null || document.LForm.upassword.value==null)should be:
    if(document.LForm.uname.value=="" || document.LForm.upassword.value=="")or
    if(document.LForm.uname.value.length==0 || document.LForm.upassword.value.length==0)

Maybe you are looking for

  • Error while Assembling the Component in NWDI

    HI All, I am trying to assemble the component in NWDI . The assemly is failing .When  i check the log file i get the following log. 20091125100727 Info   :Starting Step Check-assembly at 2009-11-25 10:07:27.0253 +5:00 20091125100727 Info   :Checks fo

  • Parallel processing using ABAP objects

    Hello friends,                     I had posted in the performance tuning forum , regarding a performance issue problem , I am reposting it as it involves OO concept . the link for the previous posting Link: [Independent processing of elements inside

  • Adobe Flex Mobile + AIR - Custom iOS Build Setting

    I am building some Adobe Flex Mobile application using Flex 4.6.0 + AIR 3.5 only for iOS This app involves some iOS Native Extension created also by me. The thing is that this ANE uses some third party framework (GD.framework from Good Dynamics Techn

  • How to define multiple jca operations in one db adapter wsdl

    When I create a partnerlink in the designer, click on the adapter service, choosing db adapter, it will automatically generate a wsdl with the specifying service name and operation name(query name). But the generated wsdl has only one operation(query

  • New boot drive question

    I'm looking to replace my 250G boot drive with a 1T; Can I use SuperDuper or CCC to move the OS and applications to a FW drive & boot from that? I'm confused about starting up after replacing the boot drive. Thanks for any confidence you can give me