CAN I PASS FORM VARIABLES TO THE DATABASE PROCEDURE IN PERSONALIZATION

When I try to use form variable in the database procedure call from personalization I get the attached error.
Under forms personalization
From Actions tab --> builtin --> Execute Procedure when I call a database procedure and pass one of the form variable as parameter I get "ora-01008 couldn't be validate" error
Can we pass on form variables to the database package using personalization ? If yes, then is this the right way?
Message was edited by:
omitchel

I tried customizing the Quoting Form, it works.
What you have done is correct, but this is how you call it
='begin
db_proc('''||${item.qothddet_main.quote_name.value}||''');
end'
here
qothddet_main : block name
quote_name : item name
Thanks
Tapash

Similar Messages

  • How can I pass environment variables to the child process?

    How can I pass environment variables to the child process? This is what I tried and it didn't work.
         static public void main (String[] args) throws Exception {
              ProcessBuilder b = new ProcessBuilder("java", "-cp", ".", "Child");
              Map<String, String> map = b.environment();
              map.put("custom.property", "my value");
                 b.redirectErrorStream(true);
              Process p = b.start();
              BufferedReader reader = new BufferedReader (new InputStreamReader(p.getInputStream()));
              String line = null;
              while (null != (line = reader.readLine())) {
                   System.out.println(line);
         public static void main(String[] args) {
              System.out.println("The value of custom.property is : " + System.getProperty("custom.property"));
         }and the result is:
    The value of custom.property is : null

    Complete test:
         static public void main (String[] args) throws Exception {
              ProcessBuilder b = new ProcessBuilder("java", "-Dcustom.property=my property value", "-cp", ".", "Child");
              Map<String, String> map = b.environment();
              map.put("custom.property", "my environment value");
                 b.redirectErrorStream(true);
              Process p = b.start();
              BufferedReader reader = new BufferedReader (new InputStreamReader(p.getInputStream()));
              String line = null;
              while (null != (line = reader.readLine())) {
                   System.out.println(line);
         public static void main(String[] args) {
              System.out.println("Property value of custom.property is : " + System.getProperty("custom.property"));
              System.out.println("Environment value of custom.property is : " + System.getenv("custom.property"));          
         }

  • How can i pass a variable instead of a table name in the Select statement.

    Dear all
    how can i pass a variable instead of a table name in a select statement ?
    Example :-
    Begin
    P_get_procedure_tname (aap_name,otable_name);--It will take an application name and will return a table name
    Select col1 into ocol1
    from  ---- here i want to pass the variable OTABLE_NAME
    End;How can i pass this ?

    Hi,
    You can use dynamic sql.
    EXECUTE IMMEDIATE 'SELECT COL1 INTO ' || OCOL1 || ' FROM " || OTABLE_NAME;
    {code}
    cheers
    VT                                                                                                                                                                                                                                                                                                   

  • How can I pass a value to the command prompt?

    I was wondering how can I pass a value to the command prompt with Windows and Linux? I'm more interested in Linux's system than Windows though. Is there a way to return info from the command prompt?

    Here is a snippet from http://mindprod.com/jglossexec.html that explains how in detail.
    Runtime.getRuntime().exec("myprog.exe") will spawn an external process that runs in parallel with the Java execution. In Windows 95/98/ME/NT/2000/XP, you must use an explicit *.exe or *.com extension on the parameter. It is also best to fully qualify those names so that the system executable search path is irrelevant, and so you don't pick up some stray program off the path with the same name.
    To run a *.BAT, *.CMD, *.html *.BTM or URL you must invoke the command processor with these as a parameter. These extensions are not first class executables in Windows. They are input data for the command processor. You must also invoke the command processor when you want to use the < > | piping options, Here's how, presuming you are not interested in looking at the output:
    Runtime.getRuntime( ).exec ("command.com /E:1900 /C MyBat.bat" );
    Runtime.getRuntime( ).exec ("cmd.exe /E:1900 /C MyCmd.cmd" );
    Runtime.getRuntime( ).exec ("C:\\4DOS601\\4DOS.COM /E:1900 /C MyBtm.btm" );
    Runtime.getRuntime( ).exec ("D:\\4NT301\\4NT.EXE /E:1900 /C MyBtm.btm" );
    There are also overloaded forms of exec(),
    Runtime.getRuntime( ).exec ("command.com /E:1900 /C MyBat.bat", null);
    Runtime.getRuntime( ).exec ("command.com /E:1900 /C MyBat.bat", null, "C:\\SomeDirectory");
    The second argument can be a String [], and can be used to set environment variables. In the second case, "C:\\SomeDirectory" specifies a directory for the process to start in. If, for instance, your process saves files to disk, then this form allows you to specify which directory they will be saved in.
    Windows and NT will let you feed a URL string to the command processor and it will find a browser, launch the browser, and render the page, e.g.
    Runtime.getRuntime( ).exec ("command.com http://mindprod.com/projects.html" );
    Another lower level approach that does not require extension associations to be quite as well set up is:
    Runtime.getRuntime( ).exec ("rundll32 url.dll,FileProtocolHandler http://mindprod.com/projects.html" );
    Note that a URL is not the same thing as a file name. You can point your browser at a local file with something like this: file://localhost/E:/mindprod/jgloss.html or file:///E|/mindprod/jgloss.html.
    Composing just the right platform-specific command to launch browser and feed it a URL to display can be frustrating. You can use the BrowserLauncher package to do that for you.
    Note that
    rundll32.exe url.dll,FileProtocolHandler file:///E|/mindprod/jgloss.html
    won't work on the command line because | is reserved as the piping operator, though it will work as an exec parameter passed directly to the rundll32.exe executable.
    With explicit extensions and appropriately set up associations in Windows 95/98/ME/NT/2000/XP you can often bypass the command processor and invoke the file directly, even *.bat.
    Similarly, for Unix/Linux you must spawn the program that can process the script, e.g. bash. However, you can run scripts directly with exec if you do two things:
    Start the script with #!bash or whatever the interpreter's name is.
    Mark the script file itself with the executable attribute.
    Alternatively start the script interpreter, e.g.
    Runtime.getRuntime( ).exec (new String[]{"/bin/sh", "-c", "echo $SHELL"}";

  • Passing two variables in the body of the URL using the go to detail page SB in ASP

    Hi all,
    Would appreciate your assistance with the following, I'm
    trying to set up a go to detail page sb that passes two variable in
    the body of the URL rather than the standard one.
    The code i've tried is -
    <td><A HREF="gggggggtest.asp?<%=
    Server.HTMLEncode(MM_keepNone) + ((MM_keepNone!="")?"&":"") +
    "PCL2ID=" + othermenutwo.Fields.Item("PCL2ID").Value
    %>&amp;"PCL1ID=" +
    othermenutwo.Fields.Item("PCL2PC1ID").Value
    %><%=(othermenutwo.Fields.Item("PCL2Description").Value)%></A></td>
    Where the PCL1ID and the PCL2ID are the variables
    The normal code generated by the go to detail page sb with
    one variable is -
    <td><a href="ggggggtest.asp?<%=
    Server.HTMLEncode(MM_keepNone) + ((MM_keepNone!="")?"&":"") +
    "PCL2ID=" + othermenutwo.Fields.Item("PCL2ID").Value
    %>"><%=(othermenutwo.Fields.Item("PCL2Description").Value)%></a></td>
    Unfortunatley my code tweaking isn't working as the second
    variable isn't being sent, any help would be gratefully appreciated
    Thanks

    Instead of using DW's 'go to detail page' option, simply set
    up the link the manual way in DW using the Link browser. Select the
    file you want to link to and then use the parameters button at the
    bottom of the 'Select File' dialogue to set the parameters to be
    passed with the link. You can then manually set the name of the
    parameter to be passed and then select its value from a recordset.
    The key thing is that you can set as many parameters as you like,
    so you can set both the parameters you want.
    On the detail page you then filter by the parameter name you
    chose (or both).
    Personally I always code links this way rather than using the
    go to detail page option as you get much better control of what is
    going on.

  • Can we Pass two variable values in to one Varaible which is Cust Exit?

    Hi all,
    Can we pass two Variable values to a Variable which is Custexit?(For Example posting Period and the fiscalyear in to the FicalPeriod )
    Regards
    Kiran

    Hello,
    For that example you had to "convert" both post period and fiscalyear into fiscalperiod, and yes it is possible, but not throwing up the two values, you had to do it yourself in the user exit code.
    Diogo.

  • Why no variables in the database that i build with RAM?

    hi,all
    i tried to build a express database by running a maintainance procedure that created in the project in RAM.The project is the sample project that installed along with the sample data warehouse. But when i finished doing so,i found no variables in the database,so how can i display datas in the client views?
    who can give me any solution?
    thanx.
    chen wang

    RAM gets its data from the datawarehouse, so you would use the formulas in the Express database. These formulas control the data transfer to/from RDBMS and Express.

  • How can i pass a parameter to the query to filter the result of this lookup

    Hello,
    i'm developping a web application with JDeveloper 10.1.2 and JHeadStart.
    i realy need to know how can i filter the lookup (LOV) query result.
    in other word, when i click on the lookup, it show all the row that exist in may data base table.
    what i want is how can i pass a parameter to the query to filter the result of this lookup ?
    Thank you

    Hi,
    have a look if this helps
    http://oracle.com/technology/products/jdev/tips/fnimphius/restrictlovlist/restrictlov.html
    Frank

  • Notifying a forms client from the database

    I would like to notify a forms client of a certain things that happens in the database.
    I guess this could be done by having a timer polling a table at certain intervalls.
    I my case that solution is not good because I need a fast reaction (<2 sec) which would require the client to poll in a high frequency.
    Is there any way to do this?
    Could I somehow embedd a java client in the form window that the database could notify and that then notifies the form client or perhaps start a back ground process that could listen to events and the notify the client somehow.
    Any clues anyone?
    Carl Larsson

    Carl
    2 Seconds doesn't sound like a particularly excessive frequency for the polling method, but it would be best combined with DBMS_ALERT as suggested by Jiri rather than looking at a table. I have had an application live for the last two years using this method involving 14 clients polling at one second intervals and have had no performance implications. DBMS_ALERT.WAITONE has the ability to wait a specified time for a reply, but this should be set to zero, so control is returned immediately to the form and all waiting is handled by the timer.
    The Java method should in theory be more efficient if you have the knowledge to implement it (I don't !).

  • When I switch libraries I lose the majority of the material in my main library and can only restore it by repairing the database. Can anyone tell me why this is happening and how I can resolve the problem? Thanks

    When I switch libraries I "lose" the majority of the material in my main library (or at least I can't see it) and can only restore it by repairing the database. Can anyone tell me why this is happening and how I can resolve the problem? Thanks

    I seem to have found a way around it. Rather than switching libraries by going into files/switch libraries I used Aperture Preferences to change them. I've done it a couple of times and it appears to work OK.
    That is an interesting finding. It suggests, that your "Preferences" file "com.apple.Aperture.plist" may have been corrupted and you fixed it this way. Can you now switch between libraries the usual way? If not, I'd try to remove the "preferences" file from the user library to the Desktop and relaunch Aperture.
    The Aperture 3: Troubleshooting Basics:http://support.apple.com/kb/HT3805
    describe how to remove the user preferences.

  • How to pass javascript variable to PLSQL stored procedure

    Hi,
    How can I pass a javascript variable to a database procedure. I have a form with a radio button group and would like to save the value of the selected radio button to a database table by passing the value to the stored procedure.
    Thanks

    Hi
    You can use iframe to call the procedure. Here is an example used in dynamic page or pl/sql portlet. The pl/sql procedure is called myprocedure and resists in the schema myschema. This example passes 2 parameters, but I have not yet reased a limit.
    First the call within a javascript function:
    myiframe.location.href="myschema.myprocedure?p_myprameter1=" + vJvascriptparameter1 + "&p_myprameter2=" + vJvascriptparameter2;
    Then the iframe:
    <iframe id="myiframe" height="0" width="0" frameborder="0"></iframe>
    You can let the pl/sql procedure print a value, that can be used i the portlet. You can get the value in a javascript this way:
    myvalue=top.window.frames["myiframe"].document.body.innerHTML;
    Best regards
    Klaus

  • How can I pass a variable between JSP and Role Form

    I need to pass a variable from (a copy of) applicationmodify.jsp to the IDM Role Form so that the variable is available within the Role Form at display. We've tried getAttribute and setAttribute modifying both the Role Form and the applicationmodify JSP and can get the form to the role form but not accessible but have had no other success. Has anyone had any success in doing this? Any suggestions would be appreciated.

    if by _root level you mean you're loading something into
    _level0 you can't won't be able to use the localconnection. the
    sharedobject is your only option.

  • How can I pass a variable to a form to pre-fill form fields on load?

    Hi all,
    I am developing a Windows Form Applicaiton in C# to register new users and walk them through a signup process.The application does a lot of other things as well. This part of it collects their personal information and saves the data to the database. Part of the process requires the user to complete a pdf form (W-4 tax form). I would like to pre-populate as many form fields as possible for them when the pdf launches, and not have them enter anything to get their data to prefill the form fields.
    My issue is I can't figure out how to get the pdf to know who is loading the form so I can do the SQL select and populate the form fields. I need to do a select * from Table where UniqueID="xxxxx" but how can I get the form to know on load what "xxxxx" is so it grabs the users personal info from the database?
    I have searched high and low and found nothing on how to do this without doing some hoakey hack outside of the application or pdf doc.
    I am creating/editing the form in LiveCycle Designer 8 and am loading the form for use by the user in acrobat 9.
    Any help,ideas, or nudging in the right direction would be much appreciated!

    I found this solution:
    REPORT YRT_TEST4.
    data: r_range type range of matnr.
    perform test changing r_range.
    *& Form test
    form test changing p_r_range like r_range.
    endform. " test
    REgards,
    Ravi

  • Passing form variables

    HI~
    I have a cfform on my index.cfm page, and the action is set
    to go to a confirm.cfm page. On that page, I want the user to be
    able to look at the information they entered into the form, and
    then hit "Submit" if it is correct. Right now, I am able to display
    the form information on the confirm.cfm page, but I'm having a hard
    time with my insert statement. Right now, when I hit the final
    Submit button, an entry is made in the database, but none of the
    variables are passed. I'm guessing this is because of the cfparam
    default="" setting, but I don't know what else to set it as-- if I
    try to set it as semester or form.semester, it says it is not
    defined. Please help! Thanks!

    semi star gazer wrote:
    > OK, I think I'm still missing something here. This is
    what I have right now.
    > With this code, I get a blank entry in the database when
    the user hits the
    > Submit button.
    >
    > <cfparam name="form.semester" default="">
    >
    > <cfif isDefined("form.submitEval")>
    >
    > <!--- insert form data into database --->
    > <cfquery name="insertEval" datasource="intern">
    > INSERT INTO mentorEvals (
    > semester
    > ) VALUES (
    > '#Trim(form.semester)#'
    > )
    > </cfquery>
    >
    > <cfform action="#CGI.SCRIPT_NAME#" name="submitEval"
    METHOD="post">
    > <cfinput type="hidden" name="semester"
    value="form.semester">
    > <!--- Submit Button that reads "Submit Evaluation"
    --->
    > <cfinput type="submit" value="Submit Evaluation"
    name="submitEval"
    > id="submitEval">
    > </cfform>
    >
    try using <input type="hidden" ...> instead of
    <cfinput ...> - i seem to
    recall there being issues with hidden cfinput fields...
    also - where's your closing </cfif>??? it should be
    after </cfquery> - i
    hope it is actually there...
    just to make sure semester is passed from first form, you can
    put
    <cfoutput>#form.semester#</cfoutput> right after
    your <cfparam>
    NOTE: you do not really need that <cfparam> there... it
    does not do
    anything... unless you are planning to use it later for
    validation
    routines... i wonder if it may be tampering with the semester
    value...
    it shouldn't, but who knows...
    Azadi Saryev
    Sabai-dee.com
    Vientiane, Laos
    http://www.sabai-dee.com

  • Passing FORM variables through CFSET

    I am writing an account creation page for my site. After the
    user inputs the required information, I would like to 1. confirm
    that their email is not a duplicate of another user 2. Pass them
    off to another page that allows them to confirm the information
    that they input and submit the info to the database. I would like
    to have the email confirmed on that page through passing the
    FORM.email variable to the #CGI.SCRIPT_NAME#. If the RecordCount on
    the query for duplicate email addresses comes back VALUE=0, use
    CFLOCATION to pass to the next page with the FORM variables intact.
    However, as forms can only have one action attribute, what is the
    best way to do this, in your opinion?
    Thanks so much for your help!
    dan

    use session var to store form data:
    - user submits form.
    - form posts to same page (to itself).
    - check for duplicate email
    - if no duplicate found, copy form to a sesion var and
    cflocate to next
    page; if duplicate found show error to user
    - on next page display user-submitted data from the session
    var
    make sure session vars are enabled in cf administrator and
    sessionmanagement is enabled in your appliction.cfm/cfc
    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com/

Maybe you are looking for

  • When batching Save for Web, Illustrator also saves copy of .ai file

    This question was asked and abonadoned here, so I'm posting because it's also happening to me. CS4 & CS5 (I tried both), Mac OS 10.6 1. I select the "Save for Web PNG" action, which is part of the default set, and select "Batch." 2. I choose a source

  • Audio & Video out of sync in itunes but not quicktime

    My audio and video has never been in sync in itunes. It has been years since I have been able to watch a movie using iTunes. When I use quicktime, everything is fine, but when I use itunes, the audio and video falls out of sync. I have tried all of t

  • Anyone with tech smarts? Help me with my USB needs!

    Hello. I'm a full-time student with an old PC that requires the installation of a USB port so I can use my new iPod shuffle. I've done research & discovered that I'll need to do technical stuff like check to see if my motherboard is compatible & buy

  • Adding a banner downside of page

    I've created the shadow down the side of the page, but I'm trying to also create a banner down the side of the page! here a flat image example http://www.paragon360.com/example_01/example_layout.htm I've tried playing around with the existing script

  • StringIndexOutOfBoundsException error while convering char to string

    I am getting the following error could someone please help. thanks. java.lang.StringIndexOutOfBoundsException: String index out of range: 0 the error is on line : char a = middleinitial.trim().charAt(0); following is my code: if (!fname.equals("") &&