Talking to different forms and passing information

Hi all
I am using netbeans to make my hci.
now in my form1 i have a button that when pressed takes me to form2 (class2) on form2 i want to press a button to change the color of button in form 1. as well as this i want to pass information between the two forms.
can any one help
thankyou in advance
james_bond

HCI?
human computer interation?
what happened to GUI?

Similar Messages

  • How to open a page from a Form and pass parameters to the form on that page

    I found a similar example on this forum, but it did not work for me:
    declare
    l_names owa.vc_arr;
    l_values owa.vc_arr;
    i number;
    begin
    PORTAL.wwpro_api_parameters.retrieve(l_names, l_values);
    FOR i in 1..l_names.count
    LOOP
    htp.p(l_names(i) || ' ' || l_values(i));
    END LOOP;
    end;
    By using this method i get the parameters for the Form, like the session ID, but not the parameters for the Page that the form is displayed in.
    Another method I tried:
    To open a Form from a Form and pass parameters works fine like this:
    --In the After processing page PL/SQL event.
    declare
    v_id number;
    blk varchar2(10):='DEFAULT';
    Begin
    v_id:=p_session.get_value_as_number (p_block_name=>blk,p_attribute_name=>'A_ID');
    if v_id > 0 then
    htp.formOpen('PORTAL.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=2649500412&p_arg_names=_show_header&p_arg_values=YES&p_arg_names=ID&p_arg_values='||to_char(v_id),'post');
    htp.formSubmit(NULL,'Upload Files');
    htp.formClose;
    end if;
    End;
    But I want to open a Page containing the Form instead of just opening the Form. Is this possible to open a Page and pass paramters to the page, and then let the form inside the Page access the passed paramters. The reason for this is that a Form cannot be based on a page template, or can it? When opening the form i want to keep the left menu, which I can if it is a page based on my template with the left menu.
    Best regards
    Halvor

    Hi,
    You can do this by calling the url of the page with the form. You can then use p_arg_names and p_arg_values to pass parameters. In the called form you can get the value from p_arg_names and p_arg_values and assign it to the form field.
    You can call this code in the success procedure of the calling form.
    declare
    v_id number;
    blk varchar2(10):='DEFAULT';
    v_url varchar2(2000);
    Begin
    v_id:=p_session.get_value_as_number (p_block_name=>blk,p_attribute_name=>'A_ID');
    v_url := <page_url>;
    if v_id > 0 then
    call(v_url||'&p_arg_names=id&p_arg_values='||v_id);
    end if;
    End;
    In the called form in "Before displaying form" plsql section write this code.
    for i in 1..p_arg_names.count loop
    if p_arg_names(i) = 'id' then
    p_session.set_value(
    p_block_name => blk,
    p_attribute_name => 'A_ID',
    p_value => p_arg_values(i)
    end if;
    end loop;
    This code picks up the value from p_arg_values and assigns it to the form field.
    Hope that helps.
    Thanks,
    Sharmila

  • Creating pocess intance of a different process and passing arguments

    Creating Process instance of a different process:
    I have two different process: Main_Flow (id: MainFlow) and Second_Flow (id: SecondFlow). In the first process I am reading a csv file. Each line of the file has four columns. After reading each line I have to initiate Second_Flow and pass the read data from the file. (Pls find the code below for the whole process):
         fileReader = FileReader(arg1 : fullFileName);//filename is of file type and have file name and path
         Java.Io.BufferedReader reader = BufferedReader(arg1 : fileReader);
         String str;
         int countLines = 0;
         while ((str = reader.readLine()) != null)
              strColumn = str.split(delim : ",");
                   int ColumnCnt = 0;
                   while (ColumnCnt < 4)
                        //defining variables
                        String appNo;
                        String custNo;
                        String loanAmm;
                        String loanDate;
                        //logMessage("Value at Column: " + ColumnCnt + " is " + strColumn[ColumnCnt]);
                        if (ColumnCnt == 0)
                             arrLoanData["appNo"] = strColumn[ColumnCnt];
                        else if (ColumnCnt == 1)
                             arrLoanData["custNo"] = strColumn[ColumnCnt];
                        else if (ColumnCnt == 2)
                             arrLoanData["loanAmm"] = strColumn[ColumnCnt];
                        else if (ColumnCnt == 3)
                             arrLoanData["loanDate"] = strColumn[ColumnCnt];
                        arrLoanData["descriptionArg"] = "AutoInstance: " + formatTime('now', timeStyle : Time.SHORT);
                        arrLoanData["genByArg"] = "Automatic";
                        ProcessInstance.create(processId : "/SecondFlow", arguments : arrLoanData, argumentsSetName : "BeginIn");
                        ColumnCnt = ColumnCnt + 1;
              countLines = countLines + 1;     
    (“The code is in Java and not in PBL”)
    I have to pass appNo, custNo, loanAmm and loanDate as the arguments. The Argument will be of Any[String] type. The argument set name of Second_Flow is “BeginIn”. But I am not getting anything in Second_Flow.
    What can I do in the argument mapping of begin of Second_Flow to get the passed argument (array)?

    the argument 'arguments' for the method ProcessInstance.create receives a map of the arguments that the 'argumentSetName' argument set will receive.
    so for example if your second flow has 2 arguments, String name, Decimal value and String[] content your method invocation would be:
    ProcessInstance.create(processId : "/SecondFlow", arguments : {"name": strNameFromCsv, "value": valueFromCsv, "content": ["a","b","c","d"]}, argumentsSetName : "BeginIn");

  • Dynamic link to different form and parameters

    Have a few problems i would like some help on.
    First i will describe what I’m planning to do.
    And I'm sorry if it's a little of the normal way of doing it, but I'm new to the Portal
    Have a list over different trip people shall have possibility to join,
    Some of those trips can are for the person only and others for the whole family.
    So my plan is to show a list of all the trips and then a status saying if
    they already has join it or not.
    Then the person can press the trip (link) and depending on some data,
    they would be transferred to 2 different forms. One for 1 person trip and another for a x person trip.
    Like:
    Trip     | Status | Personal/family
    Golf     | New     | Personal - if pressed open form1
    Boat     | New     | Personal - if pressed open form1
    Dinner     | New      | Family - if pressed open form2
    Soccer     | Accepted |Personal - if pressed open form1
    Tennis | Declined | Personal - if pressed open form1
    I made a report, showing all trip, but i can only make it use 1 link to form1, how do i make the link dynamic
    The next problem is when i open form1, i would like to do some stuff in PL/SQL (Before Page).
    But I have tried to get the parameters from the URL and I cannot get it to work.
    I use something like, but the l_names.count is 0
    ....portal/PORTAL.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=1380125721&p_arg_names=_sessionid&p_arg_values=&p_arg_names=ENROLL_ID&p_arg_values=5677&p_arg_names=_enroll_id_cond&p_arg_values=%3D
    DECLARE
    l_names owa.vc_arr;
    l_values owa.vc_arr;
    l_lang varchar2(100) := PORTAL.wwctx_api.get_nls_language;
    l_enroll_id NUMBER;
    BEGIN
    PORTAL.wwpro_api_parameters.retrieve(l_names, l_values);
    FOR i in 1..l_names.count
    LOOP
    IF l_names(i) = 'enroll_id' THEN
         l_enroll_id:= l_values(i);
    END IF;
    END LOOP;
    END;
    What i also want to do is in some cases. Is create a row in a table and populate the form1 with it in the "before page", instead of using query from parameters.
    Like:
    Trip     | Status | Personal/family
    Golf     | New     | Personal - if pressed open form1 and insert data and populate the form with the inserted data
    Soccer     | Accepted |Personal - if pressed open form1 and do the standard query
    How do I do that?

    One way to do this would be to hold the urls for the pages you need to display in a table. You could then build the links as one of the columns of a report using some fancy SQL.<br>
    <br>
    Or you could make a simple function to return the correct link based on the relevant parameters:<br>
    <br>
    create or replace function get_url (p_criteria in varchar2) return varchar2<br>
    is<br>
    lv_url varchar2(500);<br>
    begin<br>
    if p_criteria = 'Personal' then<br>
    lv_url := 'http://host:port/pls/portal/etc...';<br>
    end if;<br>
    etc...<br>
    return '&LT;a href="' || lv_url || '"&GT;' || p_criteria || '&LT;/a&GT;';<br>
    end;<br>
    <br>
    Your report could then include the function as one of the columns in your report.<br>
    Not very elegant but it should do the job.
    Patrick.

  • I cannot get firefox to delete all of my browsing history, specifically form and autocomplete information. Tried going through the steps multiple times.

    I have tried to clear all of my data history in firefox because some very sensitive information from filling out college forms and whatnot has been saved and is being used in autocomplete. Because of a bad wireless company, our network has to be "unsecured" to work, and I do not want anyone getting a hold of extremely important personal information. I have gone into settings and tried clearing the cache, using private browsing, deleting all past history, etc... but firefox won't delete any of my history, even browsing. Please help! Thank you.

    Rename or delete formhistory.sqlite (plus formhistory.sqlite-journal and formhistory.sqlite.corrupt and formhistory.dat, if they exist) in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder] in case there is a problem with the file that stores the "Saved Form" data.
    This will remove all saved form data, so you may want to rename formhistory.sqlite to formhistory.sqlite.sav or move the file to another folder in case you need to recover some saved data.

  • How to call form and pass parameter from OA Page

    Hi,
    I have one requirement to call a custom form from OA page by clicking the button and the same time i need to pass one parameter from this
    oa page to that form.
    how to do this by personalization?
    i surfed lot and i got some idea, some one said "pass the value as global variable and receive the global parameter when the new form instance trigger" .
    Can anyone please give about about this ?
    Thanks in advance,
    SAN

    This seems to be related to EBS and since this forum is dedicated to Fusion you might want to post the question to E-Business Suite forums and
    Support forum for EBS customizations.
    Jani Rautiainen
    Fusion Applications Developer Relations
    https://blogs.oracle.com/fadevrel/

  • Question on Setting up Form and Passing Parameters

    I created a JSP custom porlet as a form. My question is how do I pass parameter between portlets? What URL should I use for the portlet?
    I can only find a jsp file example in the PDK, but there isn't any good explanation.
    Thanks.
    MC

    To pass a parameter to a portlet you create a link using the PAGE_URL and append the parameter to the link using PortletRendererUtils.parameterizeLink()
    Your parameter will be sent to all portlets on the page since it is part of the page URL.
    To prevent parameters from one portlet interfering with another instance of the same portlet, you can scope your parameter to the portlet (before adding it to the URL) using PortletRendererUtils.portletParameter().
    There is also an article in the PDK (along with samples) that describes how to do this. The article is called: "Understanding the Parameter Passing JSP samples"

  • IDM  :  Customizing User Forms and/or Interfaces

    Good morning.
    Ok, I do not know if this is the right place to post this Issue. But, I can't seem to find any other forum which deals directly with IDM issues (believe it or not, Sun's Website is absolutely USELESS).
    Here's the thing :
    I am currently developing an IDM System.
    The version I am developing is the latest one : IDM 8.1
    I have created the Resources (LDAP and Active Directory), and done the reconciliation. I've performed all the usual and necessary user-operations (create user, edit user, create role, edit role, etc , etc).
    In short, the IDM is working perfectly...............
    ....except for one thing : "Customizing (User) Forms"
    The IDM I've created is intended for various users; some have administrator rights and access, some don't; some are mere users, some are Human Resources, some are IT, etc, etc
    The point is : I want to create different "Forms" and/or "Interfaces" for some of these different users.
    I know the theory behind this : I need to CUSTOMIZE a specific User Form.
    I also know that it is not advisable to modify the Standard XML Forms which come with the IDM package. The advice is to copy the ones you need to modify, and then make the changes to the copies.
    Here's the million-dollar question : HOW CAN I DO THIS?
    I have checked, and re-checked, and browsed every site imaginable --- from Sun, to Google, to Facebook. I have not found a single helpful answer to this question. Everywhere, everyone talks about WHAT needs to be done to create Custom Forms or Interfaces; but nobody cares to say HOW it should be done.
    Including our wonderful Sun Microsystems!
    Could anyone please tell me, in straightforward terms, how to customize Forms, and how to implement these customized forms into the IDM instance ?
    Thank you.

    Please try Directory Servers / Identity Management - Sun Java System Identity Manager forum @ [http://forums.sun.com/forum.jspa?forumID=764]

  • Calling report from form by passing parameter

    I have one form in which their is one filed name ID and another field which is nonbase table field. Now i want to run a report by enterint 'Y' in nonbase table field by taking the value of ID from ID field..
    This value of ID is a parameter for report tobe run....
    So how can i do this ?
    How can i create a parameter in form and pass it to report for to run..?
    thanks in advance

    This is one way of doing it :
    Create a parameter in the form and name it say : param_id, set the properties as desired. Create a parameter in the report to be run with the same name and the same properties. The where clause statement of your report query should be like this :
    WHERE ID = :PARAM_ID
    Then in the POST-CHANGE or KEY-NEXT-ITEM trigger at the non-base table item level enter the code like this :
    DECLARE
    pl_id ParamList;
    pl_name VARCHAR2(10) := 'rpt_data';
    BEGIN
    pl_id := Get_Parameter_List(pl_name);
    IF Id_Null(pl_id) THEN
    pl_id := Create_Parameter_List(pl_name);
    ADD_PARAMETER(pl_id,'PARAM_ID',TEXT_PARAMETER,TO_CHAR(:ID)); -- TO_CHAR only if ID is NUMBER
    ADD_PARAMETER(pl_id,'PARAMFORM', TEXT_PARAMETER, 'NO'); -- this is only if you want to hide the parameter form that is displayed when running the report.
    RUN_PRODUCT(REPORTS,'report_name.rdf',SYNCHRONOUS,RUNTIME, FILESYSTEM,pl_name);
    DESTROY_PARAMETER_LIST(pl_name);
    ELSE
    Message('Parameter list '&#0124; &#0124;pl_name&#0124; &#0124;' already exists!');
    RAISE Form_Trigger_Failure;
    END IF;
    END;
    Hope this helps ! I don't know the version of forms that you are using, but this is valid in 4.5 and 5.
    Sudha

  • I have a form that has multiple fields but has 5 sections. I have used mail merge to insert information but I can't get Excel to recognize that I need different names and addresses for each section. Please help.

    I have a form that has multiple fields but has 5 sections. I have used mail merge to insert information but I can't get Excel to recognize that I need different names and addresses for each section. Please help.

    Thanks for your response. I do believe I have the information needed for each form on a separate line in Excel. There is a first name, middle name, last name, city, and zip column. And field is entered on a different line for all the information. I'm really stuck.

  • How to get Apple ID and password that is different to iTunes store account which I have already activated and completed contracts, tax information and bank information I want to create a Paid Books Account use apple ID

    I was given this address from the Apple customer support team.
    I have an active existing iTunes store account and use the same Apple ID for signing into my iTunes Connect Account that distributes Apps.
    I have created some books using the iBook author and in order to distribute content on the iBookstore I have been told electronically that I need a new Apple ID and password that is different to iTunes store account which I have already activated and completed contracts, tax information and bank information valid until 2013?
    I want to create a Paid Books Account using the same email address, tax information and bank information. This has been most frustrating, as I cannot get passed the sign in section and there is no contact person I can speak to. I was of the understanding the iTunes connect account and the Developer programs which I paid good money for is all what I needed to be paid for selling iBooks on the iBookstore???
    I only have one email address and wish to also use it for the Paid Books Account. I have books ready to be exported and published.
    I am also having trouble locating and downloading iTunes Producer. I understand I need to have the Paid Books Account active to access the iTunes Producer program. Please help.
    See additional information below:
    What device did you use to connect to the store?  Mac computer
    Which operating system is installed?  Mac OS X v10.7.x
    What version of iTunes is installed on your computer?  iTunes 10.6
    Choose the iTunes Store or App Store for your country:  Other
    Please select your country:  Australia

    Hi Lrwill,
    If the apps that are on your son's iPad were purchased under his Dad's Apple ID, then signing your Apple ID onto the iPad will not help you with updating those apps.
    Also, if the iPad was sync'd with his Dad's iTunes library, then hooking it up to your computer/iTunes library, will require you to reset the iPad, and everything that was loaded under the other Library and Apple ID will be wiped out.
    Can you provide a little more info about what was set up under which Apple ID and what iTunes library the iPad was sync'd with?
    Cheers,
    GB

  • I created a pdf form and then iported it to Forms Central for distribute. It is now loaded to my website and setup so a person clicks on the link to open the form. At this point they then have to go to upper right to open form using a different view. I wo

    I created a pdf form and then imported it to Forms Central for distribute. It is now loaded to my website and setup so a person clicks on the link to open the form. At this point they then have to go to upper right to open form using a different view. I would like the form to open directly in Adobe Reader form to make it easier to enter information. Thanks, Ike

    If you created it in Forms Central, you have to edit it there. I believe Forms Central is similar to LiveCycle Designer in that the form created is no longer able to be edited in Acrobat. I might be wrong, but that is my understanding. You add the submit button in Forms Central. Within Acrobat, you should be able to go to the forms menu and Manage Data to save the data to an Excel file. Others better with forms should be by to clarify things, but this should get you started. In the future you might find it better to post a forms question in the forms discussions.

  • Linking form and report and passing parameters

    Is it possible to call a link with parameter from form to report? Let's say I have a form based on EMP table and when user clicks on DEPT_ID label I want to pass DEPT_ID as a parameter to a report showing detailed information about this department. All my attempts to do it were unsuccessful.
    I've seen many questions like this in this thread and most answers refer to Portal FAQ document but there is NO information there on linking form forms to reports and passing parameters between them.
    Any help will be greatly appreciated!
    Thanks.
    null

    This can be easily done. First open up two instances of your Portal. In one window, you will need to go into your component you wish to link FROM. In the other window you will need to go into your component you wish to link TO. In the component you wish to link TO there will be a moduleid. Note this somewhere. Then, you will see an area that says: "Call Interface: Show". Click on this. (In the window you are linking to.). In this window, you will see a bunch of stuff. At the bottom you will see a URL call. This is the call you need to use. At the top, it explains each piece of the URL call. Just subsitute YOUR appropriate information into the URL call. In the form you wish to link FROM, you will need to create a button. Just click on the green plus sign at the top of the screen (when in edit mode) and then declare it a button by using the Item Type drop down. Once you create this button, it will appear at the bottom, click on it and you will see an area to insert a Javascript. Click the onClick and insert:
    get_field_name = getField(this.form,'COLUMN_NAME_IN_DATABASE');
    window.open('/pls/cc_prod/DAD_NAME.wwa_app_module.link?p_arg_names=_moduleid&p_arg_values=MOD_ID_HERE&p_arg_names=_sessionid&p_arg_values=&p_arg_names=COLUMN_NAME_IN_DATABASE&p_arg values='+GETFIELD_NAME+'&p_arg_names=_COLUMN_NAME_IN_DATABASE_cond&p_arg_values=%3D');
    In the fourth tab, where it says, "....before displaying form" insert the following: (This will tell the form how to handle the getField function.)
    htp.p('<script language="JavaScript1.3">
    < !--
    function getField(form,fieldName)
    var objName = "";
    var tmp = "";
    var dAction = "";
    var sel_idx = 0;
    var cnt = 0;
    var instance = 0;
    var slicedName;
    var fillData = new Array();
    for (var i = 0; i < form.length; i++)
    slicedName = form.elements.name.split(".");
    tmp = slicedName[2];
    instance = parseInt(slicedName[3],10);
    if (!tmp)
    continue;
    objName = tmp;
    if (objName == fieldName)
    return form.elements[i].value;
    //-->
    </script>');
    I hope this helps.
    null

  • Does anyone get a vibration sound when talking on the iPhone6? It doesn't happen all the time and happens with talking to different people.

    Does anyone get a vibration sound when talking on the iPhone6? It doesn't happen all the time and happens with talking to different people. I have tried to troubleshoot it, but can't find a answer.

    Hey CEVYNBARRY!
    Here is an article for you that will help you address this issue:
    Troubleshooting "A connection failure has occurred", "The specified server could not be found" or similar messages
    http://support.apple.com/kb/ts1843
    Take care, and thanks for visiting the Apple Support Communities.
    -Braden

  • My husband  and I share the same apple Id for our iphones, now each one has different contacts, email, pictures, information, etc how coul I change the id of my iphone without delete any information?

    My husband  and I share the same apple Id for our iphones, now each one has different contacts, email, pictures, information, etc how coul I change the id of my iphone without delete any information?

    Welcome to the Apple Community.
    Deleting an account from a device will not delete the information from the account, if that is what you are asking.

Maybe you are looking for