How to open a form based on the the parameter in another Form

I created a button in a form (FORM1). By clicking this button, I want to open another form (FORM2) based on the a value of one key field in this form(FORM1). Both forms have the same key field.
So, I wrote the following codes behind the PL/SQL Button Event Handler of the custom event for the button that I created in FORM1.
v_inventory_num:=p_session.get_value_as_NUMBER(
p_block_name => "_master_block",
p_attribute_name => 'A_INVENTORY_NUM',
p_index => 1
if v_inventory_num is not null then
portal30.wwa_app_module.set_target('/pls/portal30/PORTAL.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=5958032800&p_arg_names=_show_header&p_arg_values=YES&p_arg_names=A_INVENTORY_NUM&p_arg_values='||v_inventory_num,'CALL');
end if;
end;
I could not open the FORM2 by clicking the button on FORM1.
However,I can open the FORM2 by click the button by using the following code.
portal30.wwa_app_module.set_target('/pls/portal30/PORTAL30.wwa_app_module.new_instance?p_moduleid=5958032800','CALL');
How could I pass the parameter in FORM1 into FORM2 and when the FORM2 is opened if has already been queried with the passed parameter?
Your help would be highly appreciated!
Jeffrey Wei Ye

Hi:
Thank you for reply to my question.
I have tried your codes and apply them the following the form. However, I always got the following error:
Error: (WWV-00000)
No conversion performed for type INTEGER, value . (WWC-49102)
No conversion performed for type INTEGER, value . (WWC-49102)
No conversion performed for type INTEGER, value . (WWC-49102)
No conversion performed for type INTEGER, value . (WWC-49102)
My codes is:
declare
request_no number;
blk varchar2(30) := 'DEFAULT';
l_url varchar2(4000);
begin
request_no := p_session.get_value_as_NuMBER(
p_block_name => blk,
p_attribute_name => 'A_WORK_REQUEST_ID');
l_url := 'portal30.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=11880470335&p_arg_names=_sessionid&p_arg_values=&p_arg_names=work_request_id&p_arg_values='||request_no;
portal30.wwa_app_module.set_target(l_url,'call');
end;
then,
I created another form which has two fields and the dattype of pk is varchar2 and change manually put the pk's p_arg_value into the url.
e.g.
l_url:='PORTAL30.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=9029417810&p_arg_names=WORK_AREA_CD&p_arg_values=APP';
portal30.wwa_app_module.set_target(l_url,'call');
However, I still get the error message as below:
Error: (WWV-00000)
No conversion performed for type INTEGER, value . (WWC-49102)
No conversion performed for type INTEGER, value . (WWC-49102)
No conversion performed for type INTEGER, value . (WWC-49102)
No conversion performed for type INTEGER, value . (WWC-49102)
No conversion performed for type INTEGER, value . (WWC-49102)
Your help would be highly appreciated.
Wei Ye

Similar Messages

  • Form-based authentication stores the username/password pair in the session

    Hello,
    I am following the SR Demo and the authentication method followed is
    Form-based authentication stores the username/password pair in the session
    In the URl, the username and password is in clear text format.
    What is the best way of doing the authentication. How can I eliminate the username and password being shown in the URL?
    Any help is highly appreciable.
    Thanks

    Hi,
    this is how form based authentication works according the specs. You can use SSL to protect the communication, use BASIC authentication (though not much better), certificate based auhentication or SSO
    Frank

  • How do I fix this error message, The address wasn't understood Firefox doesn't know how to open this address, because one of the following protocols (connectag

    We have a new computer and I cannot get my garmin running watch to sync with mozilla. The error message that I keep getting is"The address wasn't understood
    Firefox doesn't know how to open this address, because one of the following protocols (connectagent) isn't associated with any program or is not allowed in this context.
    You might need to install other software to open this address."
    Help please

    This is for a special URL that starts with
    connectagent://
    instead of with
    http://
    is that right?
    Two thoughts:
    (1) Could you try changing a setting for your Garmin plugin. Here's what I mean:
    Open the Add-ons page using either:
    * Ctrl+Shift+a
    * orange Firefox button (or Tools menu) > Add-ons
    In the left column, click Plugins.
    Find your Garmin plugin change "Ask to Activate" to "Always Activate".
    Your system information seems to list two different versions of a similarly named plugin. I'm not sure whether that is causing a problem.
    (2) Does Garmin's documentation specify any extra steps to set up Firefox, other than installing its add-ons?

  • How to add byte[] array based Image to the SQL Server without using parameter

    how to add byte[] array based Image to the SQL Server without using parameter.I have a column in table with the type image in sql and i want to add image array to the sql image column like below:
    I want to add image (RESIM) to the procedur like shown above but sql accepts byte[] RESIMI like System.Drowing. I whant that  sql accepts byte [] array like sql  image type
    not using cmd.ParametersAdd() method
    here is Isle() method content

    SQL Server binary constants use a hexadecimal format:
    https://msdn.microsoft.com/en-us/library/ms179899.aspx
    You'll have to build that string from a byte array yourself:
    byte[] bytes = ...
    StringBuilder builder = new StringBuilder("0x", 2 + bytes.Length * 2);
    foreach (var b in bytes)
    builder.Append(b.ToString("X2"));
    string binhex = builder.ToString();
    That said, what you're trying to do - not using parameters - is the wrong thing to do. Not only it is insecure due to the risk of SQL injection but in the case of binary data is also inefficient since these hex strings are larger than the original byte[]
    data.

  • How To Open REX2 ReCycle Files In To The EXS24 Logic Pro 9 ?

    Hi,How To Open REX2 ReCycle Files In To The EXS24 Logic Pro 9 ?

    There is a variety of options.
    See the Instruments manual, p302 "Converting ReCycle Files to EXS Instruments".

  • Firefox doesn't know how to open this address, because one of the following protocols (itms-service) isn't associated with any program or is not allowed in this

    Firefox doesn't know how to open this address, because one of the following protocols (itms-services) isn't associated with any program or is not allowed in this context.
    You might need to install other software to open this address."
    tried to fix in about:config but itms-services not foundn; also tried to fix using network.protocol-handler.external.foo but that wasn't listed either
    trying to download an app related to a rewards gift card
    firefox and os versions are up to date on MacBook Air

    Hello!
    Would you please provide the link you were trying to visit?
    Also, you may want to post this question to the [https://support.mozilla.org/en-US/questions/new/desktop Firefox for Desktop Support Forum] . The Mozilla Support volunteers there may be able to better assist you.
    I hope we can help you solve your problem.

  • How to populate a table based on a row selection from another table.

    Hi, i just started to use ADF BC and Faces. Could some one help me or point me a solution on the following scenario .
    By using a search component , a table is being displayed as a search result. If i select any row in the resulted table , i need to populate an another table at the bottom of the same page from another view. These two tables are related by primary key . May i know how to populate a table based on a row selection from another table. Thanks
    ganesh

    I understand your requirement and the tutorial doesn't talk about Association between the views so that you can create a Master-Detail or in DB parlance, a Parent-Child relationship.
    I will assume that we are dealing with two entities here: Department and Employees where a particular Department has many Employees and hence a Parent-Child relationship.
    Firstly, you need to create an Association between the two Entities - Department and Employees. You can do that by right clicking on the model's entity and then associating the two entities with the appropriate key say, DepartmentId.
    Once you have done that, you need to link the two entities in the View section with this Association that you created. Then go to AppModule and make sure that in the Available View Objects: 'EmployeesView' appears under 'DepartmentView' as "EmployeesView via <link you created>". Shuttle the 'DepartmentView' to the right, Data Model and then shuttle
    "EmployeesView via <link you created>" to the right, Data Model under 'DepartmentView'.
    This will then be reflected in your Data Controls. After that, you simply would have to drag this View into your page as a Master-Detail form...and then when you run this page, any row selected in the Master table, would display the data in the Detail table.
    Also, refer to this link: [Master-Detail|http://baigsorcl.blogspot.com/2010/03/creating-master-detail-form-in-adf.html]
    Hope this helps.

  • How do I open up a form based on a query/parameter

    Can someone please tell me how can I open the form based on a query and the query is based on a pre-set value. Thanks.
    I am new to Oracle Form. Please treat me like a newbie. Thanks.

    Hi,
    If I understand u , you want to call a form
    and execute query automatically with preset value.
    Is that what you mean?.
    1.suggestion: You can use the call_form, or open_form .
    check all parameters like "auto query" and so on.
    (see help-online for parameters to pass for call_form, open_form....)
    2.Suggestion: In the pre-query trigger set the value.
    in the When-new-form-instance
    write this code:
    Begin
    execute_query; -- built-in procedure
    end;
    I hope this gives you an idea,
    Regards
    CB

  • How to change the fields in a JSF form based on a URL parameter

    I am trying to build a generic JSF form of parameters which I want to dynamically change (i.e.
    change which field is visible, what the label text should be, etc) based on a URL parameter.
    I can set the fields using logic in the backing bean as an action on a command button pressed.
    But how do I do it based on the URL parameter ? I can retrieve the URL parameter but I
    don't know where to put (or hook) the Java code to do this initialization prior to
    the page being rendered for the first time.
    The fields in the JSF is being configured dynamically using a database table.
    BTW I am using Jdeveloper 10.1.3.5
    Thanks
    CK

    Thanks. I decided to set a Session bean to store the value of the URL parameter (if it is set)
    and then to use the session bean to initialize the attributes of the fields on the JSF Page.
    There also seems to be some caching of the inputText fields (i.e. it reverts back to the first
    initialized value) even though I tried to change it using the URL parameter in the requestScope
    backing bean. So, setting the values into the Session bean and retrieving it back from there
    seems to be more reliable.

  • How to call an ABAP based web service from a web page (form)

    Hi,
    I am trying to figure out how I can call my own developed ABAP based web service. I was able to successfully test it in the WS navigator and am now wondering what I need to do to embed the service call in a plain simply web page (form). Basically I'd like to create a web form allowing to specify the parameters and with a 'Submit' button pass the parameters to the web service and launch it.
    Is this possible or do I need some kind of SDK to accomplish this?
    Thanks for any hints and tips.
    Wolfgang

    Hi,
    refer the following link and this is for cosuming the web service form Web dynpro Java
    https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/50d70a19-45a3-2b10-bba0-807d819daf46&overridelayout=true
    and please go throught the following link if you want to cosume it through web dynpro abap and find the answer given by the Moderator Thomas Jung
    regards
    Manohar

  • How to create flash quiz based on circling the correct answer?

    Hi all,
    I am quite new to actionscripting and need to create a flash based quiz.
    The user will have to circle the correct answer in the quiz.
    I do know of drag and drop function but didn't know how to create circling function.
    Please advise how should I get started.
    Thank you in advance.
    Regards,
    Chewy

    Here is something to wet your appetite. This script creates squares and allows you to draw any shape with the mouse when mouse is down.
    It doesn't define what square things are drawn around - this is how lines can be drawn with AS3 in principal. Just place the script on timeline.
    var beginPoint:Point;
    var drawingBoard:Sprite;
    var drawBoardGraphics:Graphics;
    init();
    function init():void
         removeEventListener(Event.ADDED_TO_STAGE, init);
         var board:Sprite = new Sprite();
         board.x = board.y = 20;
         addChild(board);
         var numSquares:int = 8;
         var gap:Number = 20;
         var square:Sprite;
         // make squares
         for (var i:int = 0; i < numSquares; i++) {
              square = makeSquare();
              square.x = (square.width + gap) * i;
              board.addChild(square);
         drawingBoard = new Sprite();
         drawBoardGraphics = drawingBoard.graphics;
         // board filler
         var drawFiller:Sprite = new Sprite();
         var g:Graphics = drawFiller.graphics;
         g.beginFill(0xff0000, 0);
         g.drawRect(0, 0, stage.stageWidth, stage.stageHeight);
         drawingBoard.addChild(drawFiller);
         addChild(drawingBoard);
         drawingBoard.addEventListener(MouseEvent.MOUSE_DOWN, startDrawing);
    function startDrawing(e:MouseEvent):void
         stage.addEventListener(MouseEvent.MOUSE_UP, stopDrawing);
         stage.addEventListener(MouseEvent.MOUSE_MOVE, onMouseMove);
         beginPoint = new Point(mouseX, mouseY);
         drawBoardGraphics.clear();
         drawBoardGraphics.lineStyle(3, 0xff0000);
         drawBoardGraphics.moveTo(beginPoint.x, beginPoint.y);
    function onMouseMove(e:MouseEvent):void
         drawBoardGraphics.lineTo(mouseX, mouseY);
    function stopDrawing(e:MouseEvent):void
         stage.removeEventListener(MouseEvent.MOUSE_UP, stopDrawing);
         stage.removeEventListener(MouseEvent.MOUSE_MOVE, onMouseMove);
         drawBoardGraphics.lineTo(beginPoint.x, beginPoint.y);
    function makeSquare():Sprite {
         var s:Sprite = new Sprite();
         var g:Graphics = s.graphics;
         g.beginFill(Math.random() * 0xFFFFFF);
         g.drawRect(0, 0, 60, 60);
         g.endFill();
         return s;

  • Can you enable both Windows Based Authentication and Forms Based Authenication for the same web application?

    Hello Community
        In WS2012 and SharePoint 2013 Server is it possible when creating a
    web application to enable both Windows Based Authentication/Negotiate
    (Kerberos) and enable Forms Based Authentication or does the web application
    use either one or the other?
        Thank you
        Shabeaut 

    Yes , you can use dual authentication on same web application. You can use same web application , at OOB login page you will have option to use windows or form login.
    Or you can extend your web application to a new web app and configure extended web application to use Form Based Authentication(Note extended web application will also show same content database , so the content will same only url will be different)
    http://blogs.technet.com/b/ptsblog/archive/2013/09/20/configuring-sharepoint-2013-forms-based-authentication-with-sqlmembershipprovider.aspx
    http://gj80blogtech.blogspot.in/2013/11/forms-based-authentication-fba-in.html
    Thanks
    Ganesh Jat [My Blog |
    LinkedIn | Twitter ]
    Please click 'Mark As Answer' if a post solves your problem or 'Vote As Helpful' if it was useful.

  • How to open an Appleworks document created in the classic mode with a one year old iMac using 10.6.8

    Trying to open a 10 year old Appleworks document. Get a dialog box that the Classic Mode is not supported on this machine. Is there a way to work around this problem and open the doc?

    Try dropping the document onto the icon for AW 6.2.9; or use the Open item in AW 6.2.9's File menu.
    Provided the document is in AW 5.x or later format, it should b openable in AW 6.
    If the document is in AW 6.x format, it should also be able to be opened by Pages.

  • Hi! How do I switch existing automation data for one parameter to another?

    Hello! I am new to Logic 8, and actually to using the Logic automation feature. Here is the deal: I have some old-school Logic event data that I recorded as a kind of automation (before the current kind of dedicated automation) for an EXS24 parameter. I need to change this event 'automation' to actual Logic automation, as Logic 8 does not read it (as Logic 7 did before it). So, I highlighted all of the events in my old-school 'automation' region in the event list. I had to change the number value to a common number assignment so that I could Change Selected Event Data into Track Automation. I selected volume (number seven, I believe), and than highlighted all events, clicked on the event region, than went to options and selected my desired automation transformation destination (say that three times fast). Great! I have my region as automation! Logic 8 knows what to do with this! But, it is volume. I need it to control the LFO 2 Rate of the EXS24. Problem is, that when I switch the automation parameter from Volume to LFO 2 Rate, the automation disappears. It seems as though that automation data is only for Volume. So, how might a charming gentleman, such as myself, go about keeping/converting the same automation, but for the parameter I want to change it to?
    Thanks! =)

    Hold "command" when switching between automation parameters.
    Then you will get a dialog offering you the option to convert the existing parameter's data into the destination parameter, or "copy and convert" (which does the same but leaves the existing volume automation data intact.)

  • How to make items in a region populate a parameter in another region

    I have two regions in an APEX page: List of items (hyperlinks) on the left, PL/SQl block containing a media player for videos on the right.
    What I want is for the list to talk to the media player. Click an item in the list and that populates what file is played in the media player.
    I'm very new to APEX and if anyone has an example of this, I would greatly appreciate it.
    Thank you,
    Amy

    On one plage, I have the following region:
    htp.p('
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
    <title>play</title>
    </head>
    <body align="left">
    <object id="MediaPlayer1" CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/ en/nsmp2inf.cab#Version=5,1,52,701"
    standby="Loading Microsoft Windows® Media Player components..." TYPE="application/x-oleobject" width="700" height="500">
    <param name="fileName" value="'||VIDEO_NAME||'">
    <param name="animationatStart" value="true">
    <param name="transparentatStart" value="true">
    <param name="autoStart" value="true">
    <param name="showControls" value="true">
    <param name="Volume" value="-20">
    <embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="http://yourdomain.com/play.wmv" name="MediaPlayer1" width=280 height=256 autostart=0 showcontrols=1 volume=-20>
    </object>
    </body>
    </html>
    And a list with the following links in another region: "Video 1" "Video 2" "Video 3" etc
    How do send the URL/value of the lists into the fileName value in the media player?

Maybe you are looking for

  • VPN License question on 5505 ASA Firewall

    Inherited a firewall project, it's getting a VPN running on a ASA 5505 Firewall for remote workers.  Firewall was configured by someone else who isn't available.  Basic question on the License: The current license is good for 2 SSL VPN Peers, and 20

  • I want to open a PDF file and i can't? any advice?

    I want to open a PDF file and i can't? any advice?

  • Cannot access OSB Web Tool after Oracle Grid Control 11g was implemented

    Hi Guys, Here's our environment: We have servers: serv010, serv004, serv005, test001. All are working on windows server 2003. We have implemented Oracle Grid Control as a requirement for adding targets into our admin server. server010: - originally h

  • How to identify which root certificate is used?

    How to identify which root certificate(on terminal) is used when a terminal is connecting to a https website? SecurityInfo.getServerCertificate() only returns the certificate send from the https server. But how could know the which local root certifi

  • Yahoo account will not verify

    i keep entering my password to setup my account and it say yahoo server down and will not verify. it is the correct password and i have set up the account a few times