Forms6i- how do i pass values between two forms
Forms6i- passing values between forms
I have two forms. FORM1 does a call_form to FORM2.
How do i send values from FORM1 over to FORM2?
I want the 2 values in FORM1 to be passed top FORM2 and displayed as a TEXT ITEM.
But i don't know what is involved in passign vales between forms.
Define Parameters in Form2, and pass parameters with the same name from Forms1 with the parameter list option of your call_form built-in.
It is in the online help.
Similar Messages
-
How to pass value between two forms.
Hi all,
how to pass value between two forms(using :parameter),...
Thanks
RajeshTo use parameters, create a parameterlist with the named parameters
DECLARE
pl_id PARAMLIST;
pl_name VARCHAR2(10) := 'tempdata';
BEGIN
pl_id := Get_Parameter_List(pl_name);
IF not Id_Null(pl_id) THEN
DESTROY_PARAMETER_LIST(pl_id);
END IF;
pl_id := Create_Parameter_List(pl_name);
ADD_PARAMETER (pl_id,'MYPARAMETER',TEXT_PARAMETER,:BLOCK.VALUE);
CALL_FORM('MYNEWFORM', NO_HIDE, DO_REPLACE, NO_QUERY_ONLY, pl_id);
END;In the new form you can then just access the parameters via :PARAMETER.MYPARAMETER;
An alternative is the usage of globals:
:GLOBAL.MYPARAM:=:BLOCK.VALUE;
-- call the emp-form
CALL_FORM('MYNEWFORM', NO_HIDE, DO_REPLACE);and in the new form use:
DEFAULT_VALUE(NULL, 'GLOBAL.MYPARAM');
IF :GLOBAL.MYPARAM IS NOT NULL THEN
...The advantage of gloabls is that they can also return values back to the calling form, which is not possible using parameters -
How can I pass value between two pages or fragments?
Hi,
I am learning ADF nowadays. Now I come across the following problem.
There are two pages or fragments in a bounded task flow, e.g. PageA&PageB. There is an inputtext on PageA.When I press an button on PageA with an action jumpping to PageB I want pass the value of this inputtext to annother inputtext, which is shown on PageB. Moreover, the inputtext on PageB comes from a ViewObject. How can I achieve this goal? Any ideas or suggestions?
Best wishes!
Eleven.Xu
Mar 27th.2009
Edited by: Eleven.Xu on 2009-3-26 下午7:03RequestContext requestContext = RequestContext.getCurrentInstance();
requestContext.getPageFlowScope().put("var_name", value);
String value = (String)requestContext.getPageFlowScope().get("var_name");
if you open a new window, the value will be null. -
Passing values between two forms
hi all,
In form1, i have details of a particular contract driven from clicking the edit button of the report.
In form1 all the fields are text box and displayed as : disable save states.
From form1 when i click the edit button it goes to the form2 for editing that particular record.
In form2 some of the fields are replaced by select list and radiogroups.
problem is:
the data's from form1 (which is in text box disabled) is not getting displayed in the form2 in form of radio groups
Please, could any one give a solution for this?
whether it can be done?
thanks in advance.You can try to pass the parameters (go to url region of the page).
Leo -
How to pass Parameters between two forms
im trying to do this but i could not find any way for this.
can any one help me how can i pass parameters between two forms
in forms4.5. any help will be appreciated
thanks.
nullGlobal variables can be used, but you can do what the online help
says ...
Parameters are passed to called forms by means of a parameter
list. A parameter list is a named programmatic construct that is
simply a list of parameter names (called keys) and their values.
You can pass parameter values to forms invoked by the built-in
subprograms CALL_FORM, OPEN_FORM, and NEW_FORM. In addition, you
can pass parameter values to other Oracle tools with the
RUN_PRODUCT procedure.
A parameter you include in a parameter list can be either a text
parameter or a data parameter. The parameter type determines how
its value is interpreted.
Text Parameters The value of a text parameter being passed to a
called product is a CHAR string that can represent the following:
n a user-defined form parameter defined in a form invoked
by the CALL_FORM, OPEN_FORM, or NEW_FORM built-in subprograms
n a command line or user-defined parameter for a product
invoked with the RUN_PRODUCT built-in subprogram
Data Parameters The value of a data parameter being passed to a
called product is always the name of a record group defined in
the current form. (A record group is a data structure that
stores records derived from a query or through programmatic
assignment.) Data parameters are used to pass data to products
invoked with the RUN_PRODUCT built-in subprogram. You cannot
pass data parameters to forms.
The following table shows the structure of a parameter list that
contains four parameters:
Key Paramtype Value
CITY Text_Parameter 'BOGOTA'
CATEGORY Text_Parameter 'EXPORTS'
MULTIPLIER Text_Parameter '.0275'
NEW_DATA Data_Parameter 'RECORD_GROUP8'
arun reddy (guest) wrote:
: im trying to do this but i could not find any way for this.
: can any one help me how can i pass parameters between two forms
: in forms4.5. any help will be appreciated
: thanks.
null -
Pass Values between two Function Modules RFC in Portal
I need to pass values between 2 FM RFC.
I have an implicit enhancement in HRMSS_RFC_EP_READ_GENERALDATA RFC function module.
PERNR LIKE PSKEY-PERNR
ENHANCEMENT 1 Z_ESS_EXPORT_PERNR. "active version
EXPORT pernr to memory id 'PMK'.
set parameter id 'PMK' field pernr.
ENDENHANCEMENT.
On the other hand an RFC function module that has the code:
pmk LIKE PSKEY-PERNR,
pmk_2 LIKE PSKEY-PERNR.
get parameter id 'PMK' field pmk.
IMPORT pmk_2 FROM MEMORY ID 'PMK'.
When the execution is done in development environment, the modules function at the level of R3, the "get parameter id" works only if the debbuger is classic, otherwise not work. The Import to memory id never works.
In the environment of quality, r3 do not work any of the 2 sentences. If run from portal (which is as it should be) does not work.
Thanks if anyone can help me get the problem. Both function modules are executed at the portal.
Regards
Edited by: Daynet1840 on Feb 15, 2012 2:02 AMWhen the execution is directly in r3, in development environment or quality, does the set / get parameter id. Export / Import memory id not work.
But if the FM are called from the portal, does not the set / get parameter id.
I tried changing the sentence as I indicated harishkumar.dy still not working.
Madhu: They're in different function groups, one is standard and the other not.
Regards
Edited by: Daynet1840 on Feb 15, 2012 3:08 PM
Edited by: Daynet1840 on Feb 15, 2012 3:11 PM -
How can I share data between two forms on different lists
Using a custom content type, I created two lists that I want to share the same data - one is a calendar. Our employees complete a form from the "Out of Office Request" list that has workflow functionality that sends an email to that person's
manager. If the manager approves the request, the item automatically populates the "Out of Office Calendar." The problem is that the only information from the request list that populates the calendar is the Title field and date/time fields.
I need the manager name in order to create a view for each manager.
How can I connect the other information in the request list to the calendar list. It seems to me that if the title and date fields carry over the information, there should be a way to connect the other information. I'm using Designer.
I've tried to connect the two lists' webparts with the wizard, but when I get to the page that maps the two lists, there are no column names and the "Next >" button is grayed out. This seems like the logical place to connect the two lists,
but it isn't working.Hi,
According to your post, my understanding is that you wanted share data between two forms on different lists.
To show external information on the calendar event, there are two methods: Calculated column, workflow. You can refer to:
A Simple Guide to Show More Information on a Calendar Event
I recommend to use workflow to achieve what you want. But you need to create a people column to display the manager.
You can create a workflow associated to the "Out of Office Request" list, add action to Start Approve Process. If the manager approves the request, you can create a item in the calendar, and then update the people column and the title column.
Then the calendar will display the Title, date/time and the manager.
To create a view for each manager, you need to modify the Filter. You can use the people column is equal to the manager name or the Title contains the manager name.
Thank you for your understanding.
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
How to pass values between two pages
also see:
In portlets, how to use a html form passing values to the another page?
and
htmlFormActionLink() method
in common B/S developing, use html link add with a parameter or some parameters or we can submit it in a form to post values to another page .but how to do these in portal?
I tried to write the code, but couldn't run at all!
the provider.xml is still no problem!
would you be so kind as to help me ?
thanks!Hi Ravi,
Using the call
navigation->set_parameter( name='myparameter' value = myvalue ).
you can set the page parameter myparameter to the value myvalue. This value can then be used for processing in the subsequent page.
If the form field (in the layout part) and the page parameter are of the type string and are specified by the same name (in this case, myparameter), the following abbreviation can be used:
navigation->set_parameter( 'myparameter' ).
Using the set_parameter you can pass only the parameters of type string. If you wish to pass more set of values then you can call a method and then export the values of the drop down.
Pls reward if useful.
Thanks. -
Pass values between two workflow steps.
Hi,
I have requirement to pass values from one workflow step to another workflow step .
1. In workflow step 1 , we have created dynamic user group.
2. I need to get user group name in another workflow step.
Thanks
RavindraFirst of all if you want to pass custom property to next step then you have to customize the current and next step (if you can it as process step). As of now i can think of one approach by setting up value in meatdata of next route as below in your execute method (if there is only one next step not with "and" or "or" condition otherwise you have to use id or name to find out next step).
first step
List<Route> routes = session.getRoutes(item)
Route route=routes.get(0);
route.getDestinations().get(0).getMetaDataMap().put("key", value)
session.complete(item,route);
destination step
MetaDataMap map=item.getWorkflowData().getMetaDataMap();
map.get("key");
You can try once to check if it works else check through session. Let me know if it doesnt' work for you. -
How do you pass values between case structures?
Hi,
I have a simple vi where I am measuring voltage in a WHILE LOOP. The WHILE LOOP contains 2 case structures. Under some measured voltages, case 1 or case 2 will execute, and under some other voltages, neither case will execute, and the WHILE LOOP simply iterates again.
Case 1 and Case 2 both issue commands that are calculated using both the measured voltage and the PREVIOUS command value, using a very simple addition/subtraction sequence. Case 1 and Case 2 are likely to execute many times before the voltage changes enough to pass into the "in between" range. Each time either case executes, a new command is issued. Each new command is a modification of the previous command by the addition/subtraction process.
The two cases refer to an upper threshold and a lower threshold.voltage value. There is also a voltage range in between the lower and upper threshold values where we do not issue any commands. Commands are issued only when Case 1 (voltage<lower threshold) or Case 2 (voltage>upper threshold) is TRUE.
In the case structures, the measured voltage is used to calculate a command value by adding or subtracting to the previously calculated command, where either Case 1 or Case 2 are TRUE. The case structures do NOT use any of the voltage values measured in the "in between" range.
Suppose that Case 1 is executing and sending commands properly, and then, the voltage value changes to the in-between range and continues to the Case 2 range. What I want is for the Case 2 to use the last command issued by Case 1 for the Addition/Subtraction. Recall that many voltage values are likely to be measured in the "in between" range and none of these will result in issued commands. How do I capture the last command from Case 1. Of course, I want to go both directions. A total of four differen sequences are possible:
Case 1--> In between --> Case 2
and
Case 2 -->In between --> Case 1
and
Case 1 -->In between --> Case 1
and
Case 2 -->In between --> Case 2
How do I capture that last command issued, and store it until either case becomes TRUE again, and then make the case use this command? I don't think that a shift register will work because the "in between" range will change the value in the shift register, and I don't see how to implement a shift register with a Case structures. Will the feedback function work for this?
Thanks for your thoughts.
DaveAction Engines probably are a good idea.
I think the state machine in the attached vi should also be sufficient.
Attachments:
State Machine Example.vi 11 KB -
How to transfer a value between two view in Web IC
Hi all,
I'm trying to enhance the Partner contact creation view by adding in this view the language. This works fine but now i want to set a default value based on the customer language. But i don't understand how i cant retrieve the customer language from my contact view.
Can somedy help me on the subject ?
Thanks in advance.Hi,
To transfer data from one view to other, we always use component controller. But one easy approach is to store the value as a static variable of a class. The the user can access it in the same session always.
Regards,
Manas. -
Pass values between two component
Hi,
I have createed ZGAF_COMP1 having one context node COMP1_NODE and one context attribute ATTR_COMP1, ZGAF_COMP2 having one context node COMP2_NODE and one context attribute ATTR_COMP2.
Then I have created required component conf. and appl conf based on FPM_GAF_COMPONENT and FPM_IDR_COMPONENT.
now what have I need to do to pass the value of ATTR_COMP1 to the second component?
any help will be appreciated.
Thanks,
-HareshHi,
You can use shared data component to pass your data from one component to other component
Each component which wants to use a shared data component needs to declare a usage to the shared data component. The lifecycle handling is now handled completely by the FPM. Whenever a component is instantiated by the FPM (e.g. a UIBB which is
configured for a given screen), the FPM analyzes all usages of that component. If it detects a usage pointing to a component which implements the IF_FPM_SHARED_DATA interface, a singleton of this shared data component is automatically attached to the usage.
please follow the below steps to perform data transfer
Create a component which implements the IF_FPM_SHARED_DATA interface.
This component contains methods to retrieve data from the business logic and
exposes the extracted UI data via its Web Dynpro context or interface
methods.
Each component accessing this shared data defines a usage of the shared data
component. This usage is automatically instantiated by the FPM.
The consuming component can now communicate with the shared data
component via Web Dynpro context mapping, attribute access or method calls.
Thanks
Senthil -
How Do you pass events between two Different VIs
Hi everyone
I have created this event driven VI.... I now want to drive the events from another VI that doesn't generate events but is static or just plain runs
Thank
daleHi Megan
I got your code snippet and I see how you do that. I am new at Lab view and probably am not really getting into the overall architecture if you will. So I have developed this event driven interface tool box that have within the events a section of code. The Tool box is a standalone. I want to use it from a calling SubVI - as you have shown in your first example without making the sections within the event more Sub vi's. Think of it as using the events within the toolbox. The toolbox (SubVi) by itself stays within a loop until the user presses a finish button during standalone. When the toolbox is called by another VI it does not get stuck! It simply returns. I am somewhat spoiled by using VB or C++ just to call the section that gets executed within the class or Sub. Furthermore when I try to make the pieces within the events Sub Vi's I get a large number of inputs and outputs and a bunch of warnings "insane wires" - These are caused by the properties nodes needing to expand once they are placed into the sub vi.
To further complicate things when I use your first example ... I don't register changes only static conditions when only going throught the subV i once.
Sorry for being such a pain
Dale Pittock
Agilent -
Please help: how do you pass events between two panels?
hi
this is probably very simple but so far no one of you could help me. i checked the tutorials but there's nothing. i've got a panel in a panel. when a child-panel-button is clicked i want to notify the parent which then exchanges the child panel with another.
another question
if i use paint() in a swing program, most components don't get displayed. why? paint() would be a useful loop to make user events visible.
thankscode:
class PnlParent extends JPanel implements ActionListener
add( pnlChild1Obj ) ;
add( pnlChild2Obj ) ;
public void actionPerformed( ActionEvent e )
//if button of pnlChild clicked then exchange pnlChild
// the invisible button method in PnlParent does not work
// i get a NullPointExeption, maybe i cannot reference an outer panel button
// from an inner panel
remove( pnlChild2Obj ) ;
add( pnlChild3Obj ) ;
class PnlChild1 extends JPanel implemts ActionListener
add( btn1 ) ;
add( brn2 ) ;
public void actionPerformed( ActionEvent e )
class PnlChild2 extends JPanel
add( text )
class PnlChild3 extends JPanel implemts ActionListener
add( btn3 ) ;
add( brn4 ) ;
public void actionPerformed( ActionEvent e )
} -
How to pass parameters between two xterm windows?
Hi,
I would like to know how to pass parameters between two xterm windows where there are two independence processes running on them respectively ? Would appreciate if any one out there can advise me . Thanks.Global variables can be used, but you can do what the online help
says ...
Parameters are passed to called forms by means of a parameter
list. A parameter list is a named programmatic construct that is
simply a list of parameter names (called keys) and their values.
You can pass parameter values to forms invoked by the built-in
subprograms CALL_FORM, OPEN_FORM, and NEW_FORM. In addition, you
can pass parameter values to other Oracle tools with the
RUN_PRODUCT procedure.
A parameter you include in a parameter list can be either a text
parameter or a data parameter. The parameter type determines how
its value is interpreted.
Text Parameters The value of a text parameter being passed to a
called product is a CHAR string that can represent the following:
n a user-defined form parameter defined in a form invoked
by the CALL_FORM, OPEN_FORM, or NEW_FORM built-in subprograms
n a command line or user-defined parameter for a product
invoked with the RUN_PRODUCT built-in subprogram
Data Parameters The value of a data parameter being passed to a
called product is always the name of a record group defined in
the current form. (A record group is a data structure that
stores records derived from a query or through programmatic
assignment.) Data parameters are used to pass data to products
invoked with the RUN_PRODUCT built-in subprogram. You cannot
pass data parameters to forms.
The following table shows the structure of a parameter list that
contains four parameters:
Key Paramtype Value
CITY Text_Parameter 'BOGOTA'
CATEGORY Text_Parameter 'EXPORTS'
MULTIPLIER Text_Parameter '.0275'
NEW_DATA Data_Parameter 'RECORD_GROUP8'
arun reddy (guest) wrote:
: im trying to do this but i could not find any way for this.
: can any one help me how can i pass parameters between two forms
: in forms4.5. any help will be appreciated
: thanks.
null
Maybe you are looking for
-
Screenshot problem in Captivate 3/XP
Greetings, Captivate 3 WinXP, SP3 I'm having trouble getting Captivate to consistently execute a screenshot. Sometimes it works, and sometimes it does not. Most recently it did not work once a dropdown menu was activated from a menu bar. Furthermore,
-
Hi Experts.. I have to create RFC 'z_order_status' to read current status from R/3, for all orders that are not invoiced. and also cal this RFC for open sales orders and get current status and update both ztables. i have stuck in writing the select q
-
Nokia 7360 Withholding Callers Numbers
Hi, I was hoping someone could help me with this please. When I receive calls, all that appears on my display is "(no number)" so I haven't a clue who is phoning me. I understand that some people do withhold their number, but this is happening with e
-
Mighty mouse: left-handed
hi, i want to use my mouse as a left handed mouse. i configured the secondary button to ben on the left, just worked. but i notice when i move the mouse up, down, left or right it moves diagonally. i understand this is because right handed people hol
-
How to Calculacte No of Months between 2 give dates at Report Leve
Hi Experts, I had 2 Key Figures of DATs Format... I can i calculacte No of Months between 2 given dates at Bex Query Designer Level I am intrested in Calculacting exact months...not No of Days Please advise