Passing output of one iView as input to another iView using Visual Composer
Hi
I need urgent help. Is it possible to pass data from one iView to another using the Visual Composer tool. If it is how? Does anyone have an example or know where I can find one.
Here is my example:
I have created one Page with two iViews on the page. In the first iView i have a Bapi that accepts an ID number of a business partner as input and returns details like Name, Surname , title etc as well as the SAP Business Partner Number. The second Iview uses a Bapi that returns the Address details of the business partner.My problem is that I need to use the Business Partner Number from the first iView as the input into the second iView. Is this possible using Visual Composer? There will be a series of additional all bringing back different details of the same Business Partner and will need to use the same Business Partner Number.
Please advise me if this is possible using VC or if not suggest an alternative way of doing it.
Thanks in advance for the help.
Regards
Yusuf Gangat
Yes you can do this.
You can use ports (Signals) for this.
In order to explaing this, I will call the 1st iView - the source iView and the 2nd one - the target iView.
1. In the source iView create an "Out Port" from the form or table where you have the details you want passed. Name it anyway you want (in the Properties task pane).
2. In the target iView create an "Input Port" and connect it to the input of the BAPI you want run.
3. Make sure that both ports have exactly the same name (it's case sensitive). and the same fields.
4. Deploy the 2 iViews to the portal, put them in the same page.
Data should be transferred now between the iViews.
Lior
Similar Messages
-
How to pass output from one selection-as input to another selectiion??
From a user prompt will iniate many user table selections. And the outputs of each table selection will be used as inputs for the next table selection
I reviewed variable Scope and inner and outer Declare—it would be a great help if some one could give me a example of the right approach??
see sample script :
Thank you so much for your help
---------------------------- Section_01_UserInput.sql -------------------------
-- THIS SECTION OF THE SCRIPT IS TO PROMPT THE USER FOR THE MODEL NAME AND THE ORGANIZATION CODE (e.I...M1,M2,M3...._)
-- THE ORGANIZATION WHERE MODEL WAS CREATED IS THE ONLY PLACE WHERE YOU WOULD FIND THE BILL_SEQUENCE_ID
-- THE COMMON ORGANIZATIONS DO NOT HAVE COMPONETS THEY JUST REFERENCE TO THE ORHANIZATION THAT MODEL WAS CREATED
SET VERIFY OFF
SET ECHO OFF
ACCEPT v_assemblyName CHAR DEFAULT myDefaultAssemblyName PROMPT 'Enter Assembly name:'
ACCEPT v_OrganizationCode CHAR DEFAULT myDefaultOrganizationCode PROMPT 'Enter the Org where the MODEL WAS CREATED :'
SELECT a.organization_code, a.organization_id, b.inventory_item_id, b.segment1, b.description
FROM mtl_parameters a, mtl_system_items_b b
WHERE a.organization_code = '&v_OrganizationCode'
AND
b.segment1 ='&v_assemblyName'
AND
b.organization_id = a.organization_id;
SET VERIFY ON
SET ECHO ON
----OUTPUT of the Section_01_UserInput.sql QUERY---
ORGANIZATION_CODE ORGANIZATION_ID INVENTORY_ITEM_ID SEGMENT1 DESCRIPTION
M1, 207, *[225957]* , CN927779, Sentinel Custom Desktop
----------------------------- Section_02_bom_structures_b.sql ------------------
-- List all option class Bill of Materials for a single ATO or PTO model
-- List of bill_sequence_id and all component_item_id's that belong to that
-- bill_sequence_id
SELECT a.assembly_item_id, a.bill_sequence_id, b.bom_item_type, b.component_item_id
FROM bom_structures_b a, bom_components_b b
WHERE a.assembly_item_id = *['225957']*
AND
b.bill_sequence_id = a.bill_sequence_id
AND
b.bom_item_type = '2'; -- OPTION Class's are identified by bom_item_type
----OUTPUT of the Section_02_bom_structures_b.sql QUERY---
ASSEMBLY_ITEM_ID ORGANIZATION_ID BILL_SEQUENCE_ID BOM_ITEM_TYPE BILL_SEQUENCE_ID COMPONENT_ITEM_ID
*[225957]* , 207 , *[90754]* 2 90754 *[297]*
*[225957]* , 207 , *[90754]* 2 90754 *[299]*
*[225957]* , 207 , *[90754]* 2 90754 *[301]*
----------------------------- Section_03A_bom_structures_b.sql-------------------
-- List all the components under the option class
-- When no components are found with bom_item_type ='4' which means that this assembly has no
-- components in the bom_components_b because the assembly is a child that is a option class.
-- We need to run this script with a bom_item_type ='2' and stored the component_item_id into MEMORY_assembly_id
-- and run script again by read from MEMORY_assembly_id and bom_item_type = '4';
SELECT a.assembly_item_id, a.organization_id, a.bill_sequence_id, b.bom_item_type, b.bill_sequence_id, b.component_item_id
FROM bom_structures_b a, bom_components_b b
WHERE a.assembly_item_id = '297'
AND
b.bill_sequence_id = a.bill_sequence_id
AND
b.bom_item_type = '4';
----OUTPUT of the Section_03A_bom_structures_b.sql QUERY---
ASSEMBLY_ITEM_ID ORGANIZATION_ID BILL_SEQUENCE_ID BOM_ITEM_TYPE BILL_SEQUENCE_ID COMPONENT_ITEM_ID
*[297]* 207 *[384]* 4 384 *[185]*
*[297]* 207 *[384]* 4 384 *[241]*
*[297]* 207 *[384]* 4 384 *[249]*
*[297]* 207 *[384]* 4 384 *[4747]*
*[297]* 207 *[384]* 4 384 *[4749]*
*[297]* 207 *[384]* 4 384 *[4751]*
=================================================================================================
note output FROM EACH SELECT that needs to be passed to the next SELECT statement are *[ ]* for example *['225957'] see below:*
----OUTPUT of the Section_01_UserInput.sql QUERY---
ORGANIZATION_CODE ORGANIZATION_ID INVENTORY_ITEM_ID SEGMENT1 DESCRIPTION
M1, 207, *[225957]* , CN927779, Sentinel Custom Desktop
----OUTPUT of the Section_02_bom_structures_b.sql QUERY---
ASSEMBLY_ITEM_ID ORGANIZATION_ID BILL_SEQUENCE_ID BOM_ITEM_TYPE BILL_SEQUENCE_ID COMPONENT_ITEM_ID
*[225957]* , 207 , *[90754]* 2 90754 *[297]*
*[225957]* , 207 , *[90754]* 2 90754 *[299]*
*[225957]* , 207 , *[90754]* 2 90754 *[301]*
----OUTPUT of the Section_03A_bom_structures_b.sql QUERY---
ASSEMBLY_ITEM_ID ORGANIZATION_ID BILL_SEQUENCE_ID BOM_ITEM_TYPE BILL_SEQUENCE_ID COMPONENT_ITEM_ID
*[297]* 207 *[384]* 4 384 *[185]*
*[297]* 207 *[384]* 4 384 *[241]*
*[297]* 207 *[384]* 4 384 *[249]*
*[297]* 207 *[384]* 4 384 *[4747]*
*[297]* 207 *[384]* 4 384 *[4749]*
*[297]* 207 *[384]* 4 384 *[4751]*
Edited by: user612347 on Mar 16, 2010 4:21 PM
Edited by: user612347 on Mar 16, 2010 4:57 PMHi,
Sorry, it's unclear what you want to do.
Whenever you have a problem, it helps to be as specific as you can.
Post a little sampel data (CREATE TABLE and INSERT statements) and the results you want from that data. Since your problem involves parameters, give a couple of sets of parameters, and the results you want for each set, given the same data.
Are you saying that, after the user enters one set of parameters, you will need to run a variation of this query:
SELECT a.assembly_item_id, a.organization_id, a.bill_sequence_id, b.bom_item_type, b.bill_sequence_id, b.component_item_id
FROM bom_structures_b a, bom_components_b b
WHERE a.assembly_item_id = '303'
AND
a.organization_id = '207'
AND
b.bill_sequence_id = a.bill_sequence_id
AND
b.bom_item_type = '4';several times? What will be different each time? Will the hard-coded strings in the WHERE clause ('303', '207' and '4') be values from the earlier query?
Do you really want to run this query several times, or would you rather run one query, and have it produce results for all the relevant values? (That would probably be eaisest and less error-prone). When you post your desired results, post what you would most like to see. If something else is acceptable, describe it.
You can write SQL*Plus scripts to use parameters (substitution variables.
For example, you can write a query that says:
WHERE a.assembly_item_id = '&1'
AND a.organization_id = '&2'
AND b.bill_sequence_id = a.bill_sequence_id
AND b.bom_item_type = '&3';and call it like this
@Section_03A_bom_structures_b 303 207 4You can have a query output several such rows (for example:
@Section_03A_bom_structures_b 303 207 4
@Section_03A_bom_structures_b 304 298 3
@Section_03A_bom_structures_b 306 99 4), send all of that output to a SPOOL file, and then execute the SPOOL file. -
Output of one Report as input to another report
Hi friends,
I want to pass output of my zreport as input to another report. I want to pass all the values of one column in the input put field of another report.
Thanks and Regards
Neeleshhi neelesh
let assume u want send a data from Report 1 to Report 2 means
use the following code
SUBMIT report2 WITH parameter1 = parameter1
WITH selectoption IN selectoption1
AND RETURN.
rewards if its usefull
regards
deva -
Output of one report is input to another report?
Hi Expert's,
Is it possible to use output of one report as an input to another report.I mean to say fields which are avialble in the first report is used as a input for another report.
Thanks,
vasu.Hi,
Yes, you can do that.
You can run a first report having characteristics as output. You can then use the returned cahracteristic values as input variable for a second query.
You can achieve this by creating a replacement path (based upon your first query) variable in the second report.
Another option would be to use the report to report interface (RRI).
hope this helps,
Olivier. -
Output of One Query is input to other Query??
Hi All,
How to make output of one query as input to other Query and what are the points to be takeb care of to do it?
regards,
murali.
Message was edited by: MuraliHallo
You got a second query where you also have 0date. Based on the selection on the second query, you get some value for 0date. this values are then passed in background to the first query which will show you the output based on the input date of the first query. You can also have othe variable in the query.
http://help.sap.com/saphelp_nw04/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm
I hope everything is fine.
Mike -
Passing data from one UIX XML page to another UIX XML page
What are the various ways of passing data from one UIX XML page to another UIX XML page?
(a) If no bc4j is used.
(b) If bc4j is used.
(c) If my event handler calls:-
public static EventResult handleMyEventEvent( BajaContext context, Page page, PageEvent event) throws Throwable
then how can I pass data to the next UIX XML page?
Thanks,
Paul.What are the various ways of passing data from one UIX XML page to another UIX XML page?
(a) If no bc4j is used.For forwarded URLs; HttpServletRequest attributes [request], HttpSession attributes [session], ServletContext attributes [application].
For redirected URLs; HttpServletRequest parameters url, HttpSession attributes [session], ServletContext attributes [application].
(b) If bc4j is used.For forwarded URLs; BC4J Session properties.
For redirected URLs; BC4J Session properties IF release mode is NOT stateless.
(c) If my event handler calls:-
public static EventResult handleMyEventEvent( BajaContext context, Page page, PageEvent event) throws Throwable
then how can I pass data to the next UIX XML page?Return a UIEventResult (extends EventResult) from your event handler that has a data provider attached.
This data provider will be accessible in the next page with the name "ctrl:eventResult", where "ctrl" is the short prefix for the namespace "http://xmlns.oracle.com/uix/controller".
Regards,
John Fallows
Oracle Corporation. -
How to set cookie value in one page and retrieve in another page using setA
How to set cookie value in one page and retrieve in another page using setActionListener?
I have tried with following code srcpage.jspx->destpage.jspx
srcpage.jspx
<af:table value="#{bindings.DepartmentsView1.collectionModel}"
var="emp" rows="#{bindings.EMPView1.rangeSize}"
first="#{bindings.EMPView1.rangeStart}"
emptyText="#{bindings.DepartmentsView1.viewable ? 'No rows yet.' : 'Access Denied.'}">
<af:column sortProperty="EmployeeName" sortable="false"
headerText="Cookie Testing">
<af:commandLink text="#{emp.EmployeeName}" action="success">
<af:setActionListener from="#{emp.EmployeeName}"
to="#{cookie}"/>
</af:commandLink>
</af:column>
</af:table>
espage.jspx
<af:outputText value="Test Cookie Value: #{cookie}"/>
,Here Test Cookie Value prints the following instead of its original String value
{JSESSIONID=javax.servlet.http.Cookie@7da288, oracle.uix=javax.servlet.http.Cookie@399f62}
I have passed employee name "Robert" to cookie in srcpage.jspx,but it prints "JSESSIONID....." instead of "Robert" in destpage.jspx
Thanks in advance
KaleeHi,
"cookie" is a reserved name. If you want to write to a session scope attribute called "cookie" then you have to call #{sessionScope.cookie}. If you want to use EL to set and read from cookies then you will have to use
#{cookie.cookieName}
Note that #{cookie} writes to and returns a map
check this: http://www.informit.com/articles/article.aspx?p=30946&seqNum=7
Frank -
How Can I Call a method in iView ,which is in another iView
I Have 2 iViews i want to call a method in Iview which is i another iView
Thanks and Regards
Prasad.YHi Prasad,
first, welcom at SDN.
Next, let us clarify some wording:
A <i>PAR</i> is a <i>Portal ARchive</i>. It is a zip in a certain format. It contains a <i>portal application</i>.
A <i>portal application</i> consists of <i>components</i> and/or <i>services</i>.
An <i>iView</i> is somehow an "instance" of a <i>component</i>. It is created within the portal. There are <i>no iViews in a PAR</i> (like: "There are no objects in a JAR (but classes).").
With this in mind, you know that the question does not work, for iViews don't have "methods".
If you ask how you can call a method of a class belonging to a different component (but within the same portal app), it is no problem at all, each class has access to each other class within the same portal app (in fact, one has to differentiate between public and private part, but we don't want to go so far). To call use a class belonging to (the public part of) a different app, you will have to set the SharingReference within portalapp.xml.
If that's what you're looking for - great.
If not, ask again, but far more detailed.
Hope it helps
Detlev
PS: Please consider to reward points for helpful answers. Thanks in advance. -
Pass output of one script to other
Hy friends, I have created some 4 test scripts as below-
Script-1:-PR Creation
Script-2:-PR release
Script-3:-PO creation wrt PR
Script-4:-PO release
Now I want to pass output of first script (PR No which is created) to third test script to create PO wrt PR No. so how can I do this? Pl guide.
Regards,
YagneshHello Yagnesh
Below you see a simple example of how to link two scripts:
- First script multiplies input with factor 10
- Second script add 8 to input
ID_VALUE => type I(input)
ED_RESULT => type E(export)
LD_FIRST_CALCULATION => type V(local variable)
REF ( ZUS_LINK_TESTSCRIPT_A , ZUS_LINK_TESTSCRIPT_A_1 ).
REF ( ZUS_LINK_TESTSCRIPT_B , ZUS_LINK_TESTSCRIPT_B_1 ).
That's the XML version of the first test script. As you can see the output is stored in the local variable.
<?xml version="1.0" encoding="utf-8" ?>
- <ecatt:ZUS_LINK_TESTSCRIPT_A xmlns:ecatt="http://xml.sap.com/2003/05/eCATT/ref_ecatt">
<TESTCONFIG />
<VARIANT />
- <IMPORTING>
- <ID_INPUT default="5">
<valueRefName>ID_VALUE</valueRefName>
</ID_INPUT>
</IMPORTING>
- <EXPORTING>
- <ED_OUTPUT>
<valueRefName>LD_FIRST_CALCULATION</valueRefName>
</ED_OUTPUT>
</EXPORTING>
</ecatt:ZUS_LINK_TESTSCRIPT_A>
The local variable is now used as input for the second script:
<?xml version="1.0" encoding="utf-8" ?>
- <ecatt:ZUS_LINK_TESTSCRIPT_B xmlns:ecatt="http://xml.sap.com/2003/05/eCATT/ref_ecatt">
<TESTCONFIG />
<VARIANT />
- <IMPORTING>
- <ID_INPUT default="5">
<valueRefName>LD_FIRST_CALCULATION</valueRefName>
</ID_INPUT>
</IMPORTING>
- <EXPORTING>
- <ED_OUTPUT>
<valueRefName>ED_RESULT</valueRefName>
</ED_OUTPUT>
</EXPORTING>
</ecatt:ZUS_LINK_TESTSCRIPT_B>
Regards
Uwe -
How to send the output of one step as input to next step
Hello All,
I have a question that how to send the output of the first step as the input to the next step.
for e.g
consider a test sequence as below,
1.battery ON.
2. read Voltage
3. Check battery voltage.
as initially the battery gets ON when ever the test starts. in the second step it reads the voltage. let us assume that the voltage is 11.5V,
in the third step we r checking/validating that battery voltage in the range 11V to 12 V. . I mean if the vloltage value is less than 11V or greater than 12V te test has to FAIL.
so in order to check that voltage we need to send the voltage read from the second step.
so how can I send the voltage read from the second step to the third step so that I can check the battery voltage test.
kindly suggest me this using LabVIEW/Test stand.Hi,
Why do you need the third step, if the second step is a Numeric Limit Test step type, you can setup the limits of this step for your required limits of 11V and 12V. Your result is returned from your VI to Step.Results.Numeric which will be evaluated in the Status Expression giving you a Pass / Fail status.
Look at the example TestStand\examples\demo\..\Computer Motherboard Test\computer.seq
But to answer your reoriginal question, some additional information is required.
What are your inputs and outputs assigned to in TestStand, do you use the Step properties, Locals, FileGlobals?
Regards
Ray Farmer
Regards
Ray Farmer -
BizTalk Stored Proce-passing XML as one of the Input parameter and String as another parameter
I have a requirement in BizTalk that
- I will receive XML from Source and i need to submit this XML data and two other string parameters in SQL storeprocedure as a parameters and submit data
Ex: My_SP(myID Integer INPUT,myXML xml Input,mystring OUT)
Could you please help me how call storeprocedure and submit multiple parameters in BizTalk.you can execute stored procedure by generating schemas from WCF-SQL Adapter.
for passing parameters you will have to do the mapping to the Generated schema for Stored proc.
I would suggest to do this in Message Assignment shape, there you can easily assign all the parameters.
Integer and String parameters can be assigned from normal variables and XML parameter can be inserted as suggested by Abhishek-
xmldoc=requestMsg;
varOuterstring=xmldoc.Outerxml.Tostring();
Please refer the below article.
https://www.packtpub.com/books/content/new-soa-capabilities-biztalk-server-2009-wcf-sql-server-adapter
http://msdn.microsoft.com/en-us/library/dd787968.aspx
Thanks,
Prashant
Please mark this post accordingly if it answers your query or is helpful. -
Need to pass result of one query as input to the other query
Hi All,
We have a search page in which a query executes based on the input search criteria and gives result in a table format.
now we need to pass this result for each row of the result table to the input of the other query automatically.
Please provide any solution for this.
TIA,
BobI tried using setPropertyListener & setActionListener but data is not getting passed in my case.
I am trying to pass 4 values(TransactionId, InstanceId, InterfaceId, PayloadSequence) highlighted in bold as input to the webservice.
created a coumn "Payload" and used setPropertyListener in that.
But data is not getting passed to the popup.
I even tried hardcoding the values in the SetPropertyListener but then also hardcoded values are also not getting assigned to the input of webservice.
what am i doing wrong?
Below is the code.
<af:table value="#{bindings.SerachResultVO1.collectionModel}" var="row"
rows="#{bindings.SerachResultVO1.rangeSize}"
emptyText="#{bindings.SerachResultVO1.viewable ? 'No data to display.' : 'Access Denied.'}"
fetchSize="#{bindings.SerachResultVO1.rangeSize}"
rowBandingInterval="0"
selectionListener="#{bindings.SerachResultVO1.collectionModel.makeCurrent}"
rowSelection="multiple" id="t1">
<af:column sortProperty="*InterfaceId*" sortable="true"
headerText="#{bindings.SerachResultVO1.hints.InterfaceId.label}"
id="c6" rendered="false">
<af:outputText value="#{row.InterfaceId}" id="ot1">
<af:convertNumber groupingUsed="false"
pattern="#{bindings.SerachResultVO1.hints.InterfaceId.format}"/>
</af:outputText>
</af:column>
<af:column sortProperty="*InstanceId*" sortable="true"
headerText="#{bindings.SerachResultVO1.hints.InstanceId.label}"
id="c10" rendered="false">
<af:outputText value="#{row.InstanceId}" id="ot6"/>
</af:column>
<af:column sortProperty="*TransactionId*" sortable="true"
headerText="#{bindings.SerachResultVO1.hints.TransactionId.label}"
id="c8">
<af:outputText value="#{row.TransactionId}" id="ot10"/>
</af:column>
<af:column sortProperty="*PayloadSequence*" sortable="true"
headerText="#{bindings.SerachResultVO1.hints.PayloadSequence.label}"
id="c7" rendered="false">
<af:outputText value="#{row.PayloadSequence}" id="ot11"/>
</af:column>
<af:column sortProperty="StatusFlag" sortable="true"
headerText="#{bindings.SerachResultVO1.hints.StatusFlag.label}"
id="c2">
<af:outputText value="#{row.StatusFlag}" id="ot8"/>
</af:column>
<af:column sortProperty="CreationDate" sortable="true"
headerText="#{bindings.SerachResultVO1.hints.CreationDate.label}"
id="c9">
<af:outputText value="#{row.CreationDate}" id="ot3">
<af:convertDateTime pattern="#{bindings.SerachResultVO1.hints.CreationDate.format}"/>
</af:outputText>
</af:column>
<af:column id="c12" headerText="Payload">
<af:popup id="p1" contentDelivery="lazyUncached">
<af:dialog id="d1" type="ok" resize="on">
<af:panelFormLayout id="pfl4">
<af:panelLabelAndMessage label="#{bindings.intname.hints.label}"
id="plam1">
<af:outputText value="#{bindings.intname.inputValue}"
id="ot13"/>
</af:panelLabelAndMessage>
<af:panelLabelAndMessage label="#{bindings.payload_data.hints.label}"
id="plam2">
<af:outputText value="#{bindings.payload_data.inputValue}"
id="ot12"/>
</af:panelLabelAndMessage>
</af:panelFormLayout>
</af:dialog>
</af:popup>
<af:commandLink
text="view Payload"
id="cl1"
actionListener="#{bindings.getPayload.execute}"
disabled="#{!bindings.getPayload.enabled}">
<af:showPopupBehavior popupId="p1"/>
<af:setPropertyListener type="action"
to="#{bindings.trans_id.inputValue}"
from="#{row.bindings.TransactionId.inputValue}"/>
<af:setPropertyListener to="#{bindings.inst_id.inputValue}"
type="action"
from="#{row.bindings.InstanceId.inputValue}"/>
<af:setPropertyListener to="#{bindings.interfaceid.inputValue}"
from="#{row.bindings.InterfaceId.inputValue}"
type="action"/>
<af:setPropertyListener to="#{bindings.payload_seq.inputValue}"
type="action" from="#{'5'}"/>
</af:commandLink>
</af:column>
</af:table>
Edited by: Bob on Feb 7, 2011 11:24 PM -
Trying to pass parameters from one set of frames to another set of frames.
I have a JSP page with two frames.
TestPage1.jsp has this code:
<frameset rows="90,*">
<frame name="topFrm1" src="TestPage1A.jsp">
<frame name="botFrm1" src="TestPage1B.jsp">
</frameset>
In TestPage1B.jsp I have a form that submits parameters:
<form name=test1Frm method=post action="TestPage2.jsp" target=_top>
<input type=hidden name=param1 value=var1>
<input type=hidden name=param2 value=var2>
<input type=submit>
</FORM>
TestPage2.jsp is also a frameset almost identical to TestPage1.jsp:
<frameset rows="90,*">
<frame name="topFrm2" src="TestPage2A.jsp">
<frame name="botFrm2" src="TestPage2B.jsp">
</frameset>
TestPage2B.jsp includes a servlet that needs to receive the parameter values:
<jsp:include page="/servlet/MyClasses.TestPages" flush="true" />
If I submit the form in TestPage1B.jsp directly to TestPage2B.jsp, the parameters are successfully passed to the servlet, but if I submit the form to the frameset page TestPage2.jsp, the parameters are not passed. I've tried a variety of variations with the Target, but nothing works.
Any suggestions are greatly appreciated. TIA.
Cheers,
LoganLogan,
In your case I feel using Sessions is the best solution instead of passing params as the JSPs TestPage2.jsp & TestPage2B.jsp are two different pages. Store the values to be passed in session and retrieve the same in the servlet. -
Passing variable from one java source file to another
i have one java source file
one.java
class one {
long a;
a = somevalue;
i have another java source file
second.java
class second{
long b;
// here i need to assign the value of a i.e from one.java to b
i am in great confusion and begineer of java
plz plz help mea couple of possibilities are
pass a parameter to the constructor
or
use the reference to class Two to call a method in class Two that takes a parameter and sets the value of the attribute in class Two. -
Using selected output from a RFC as input for another RFC
Hi,
I'm new at this so I may be doing things completely wrong.
I have two models based on adaptive RFC.
The first populates a list of Org Units. (Orgeh_Out)
The user then selectes multiple Org Units from this list.
I want to use the selected Org Units as Input for the second RFC which will display the personnel numbers in the selected Org Units. (Orgeh_Tab_In)
Model 1 works fine but I am having difficulty in populating the Org Unit input table for the second model.
public void RFCPernrFill( )
//@@begin RFCPernrFill()
Z_Wd_Pernr_Input pernrInput = new Z_Wd_Pernr_Input();
wdContext.nodePernrList().bind(pernrInput);
int orgCount = wdContext.nodeOrgeh_Out().size();
for (int i=0; i<orgCount; i++) {
if (wdContext.nodeOrgeh_Out().isMultiSelected(i)) {
IOrgeh_OutElement thisOrgUnit = wdContext.nodeOrgeh_Out().getOrgeh_OutElementAt(i);
Zwd_Orgeh tmpOrgTab = new Zwd_Orgeh();
String st = String.valueOf(thisOrgUnit);
tmpOrgTab.setOrgeh(st); //<-- Causes error but will only accept a String
pernrInput.addOrgeh_Tab_In(tmpOrgTab);
I don't understand why tmpOrgTab.setOrgeh will only accept a String and not the 'thisOrgUnit' variable.
i.e. why couldn't I say tmpOrgTab.setOrgeh(thisOrgUnit) ?
The command tmpOrgTab.setOrgeh(st); causes an error however if I hard code a Org Unit tmpOrgTab.setOrgeh("5000011"); it works. The error I get is :
Type conversion error, field ORGEH, complex type class com.sap.com.testing.pernrlist.model1.Zwd_OrgehHi
Can you give me the structure of the proxy classes generated. I will give you the working code :).
The lines of code
Zwd_Orgeh tmpOrgTab = new Zwd_Orgeh();
String st = String.valueOf(thisOrgUnit);
tmpOrgTab.setOrgeh(st); //<-- Causes error but will only accept a String
pernrInput.addOrgeh_Tab_In(tmpOrgTab);
There is a structure in your RFC called ZWD_ORGEH.
Instantiate this like you have done.
Zwd_Orgeh tmpOrgTab = new Zwd_Orgeh();
Now the following line of code
tmpOrgTab.setOrgeh(st)
Here you say it is only accepting a string. But what i feel is that you would have another internal structure and u need to instantiate that.
Anyway if you just send me the proxy classes generated i will be able to help you in your code.
Also give me the structure of the RFC.
Meanwhile check this link
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/effective web dynpro - adaptive rfc models
The above link will also give you some input to your prob.
regards
Ravi
Maybe you are looking for
-
Drivers for hp 9800 in windows 8.1
I like the desk jet 9800 printer. It may be old but it is the best printer I ever owned. I had to buy a new computer because Microsoft stopped supporting XP. I don't want to buy a new printer. Maybe someone knows a solution, for we should not be dic
-
Testing while transporting from one server to other
We need to complete testing of BW objects in one server which has copied from another server for the support pack upgrade. Here are the basics we need tested: Spot check InfoSources/ODS Objects/Cubes/Update rules to ensure that all are active and th
-
Problem installing acrobat upgrade 2.3.0.0
How can I get around a download error #16820 when trying to install a mandatory acrobat upgrade 2.3.0.0.?
-
My Premiere CC crash when launch...Please Help!
So this is my Problem...I just bough the CC colection and most of the programs launch ok..but with premiere is not such thing. I get this error message saying "Adobe Premiere has stop working"...Im running in a ASUS PC descktop with windows 8, 16 G o
-
Differences between 2 pass and 1 pass compressing in compressor 2.0
Is there a noticeable difference between 2 pass and 1 pass compression? It seems to me that sometimes 1 pass looks better than 2 passes. Strange... Thanks,