Passing Data from ComboBox to ListBox.
Hi everyone, I'm new with the whole flex 2 environment and
i'm need some help getting data passed from a ComboBox to ListBox.
I don't know whether i'm going about this the right way. Senario,
the person using this application will be able to select an item in
the ComboBox and based on the item selected, the listBox get
data(using an array variable) assigned to that item in the
ComboBox. I don't know the syntax that is used to achieve this.
I'll appreciate any information related to getting this problem
resolved.
Thanks for the feedback william, it was helpful but it still
not entirely what i want the list box and combo box to do. After
the array has been populated in the list box, a selection of item
can be made to display further details of the item in the list box.
A quick question will be can parallel array type be created in
Flex? Trying to accomplish department phone book. The people can
select the department and it will show the list of people in that
department. In the list box a selection of the person can be made
to display more detailed info about the person as name, phone
number, job title and etc. So far i'm not able to get the connect
between the combo and list box to display detail person info. Need
Help, all suggestions will be greatly appreciated. Here's my code
so far:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute">
<mx:Style>
Panel
borderStyle: solid;
headerColors: #e7e7e7, #d9d9d9;
backgroundAlpha: 100;
paddingTop: 10;
</mx:Style>
<mx:ArrayCollection id="ITpeople">
<mx:Object>
<mx:image>images/andrewo.gif</mx:image>
<mx:name>John Doe</mx:name>
<mx:title>Weblayout Specialist</mx:title>
<mx:phonenum>ext. 1028</mx:phonenum>
<mx:description>IT Department</mx:description>
</mx:Object>
</mx:ArrayCollection>
<mx:ArrayCollection id="Company">
<mx:Object>
<mx:comp>IT</mx:comp>
</mx:Object>
<mx:Object>
<mx:comp>Accounting</mx:comp>
</mx:Object>
<mx:Object>
<mx:comp>Customer Service</mx:comp>
</mx:Object>
</mx:ArrayCollection>
<mx:Script>
<![CDATA[
import mx.collections.*;
]]>
</mx:Script>
<mx:Panel layout="absolute" left="10" top="10" right="54"
bottom="200" title="ICM Phone Directory">
<mx:ComboBox x="10" y="32" id="cbxCompDept"
dataProvider="{Company}" labelField="comp" selectedIndex="0" >
</mx:ComboBox>
<mx:List id="names" dataProvider="{ITpeople}"
labelField="name" selectedIndex="0" x="10" y="95" height="268"
width="165"></mx:List>
<mx:VBox width="416" y="95" x="206">
<mx:Image id="picture"
source="{ITpeople.getItemAt(names.selectedIndex).image}"
autoLoad="true" />
<mx:Form id="details">
<mx:FormItem label="Name: ">
<mx:Label id="nameInput"
text="{ITpeople.getItemAt(names.selectedIndex).name}"/>
</mx:FormItem>
<mx:FormItem label="Title: ">
<mx:Label id="titleInput"
text="{ITpeople.getItemAt(names.selectedIndex).title}"/>
</mx:FormItem>
<mx:FormItem label="Phone Number: ">
<mx:Label id="phoneInput"
text="{ITpeople.getItemAt(names.selectedIndex).phonenum}"/>
</mx:FormItem>
<mx:FormItem label="Department/Company: ">
<mx:Label id="descInput"
text="{ITpeople.getItemAt(names.selectedIndex).description}"
height="120" width="200" />
</mx:FormItem>
</mx:Form>
</mx:VBox>
</mx:Panel>
</mx:Application>
Similar Messages
-
Problem in passing data from one .jsp page to another .jsp page
i have a problem here
Actually i have 2 jsp pages. What im trying to do here is actually i want to pass data from the first jsp page to the second for updating
The first jsp page contains data that user wants to update in the form of table.
<td><img src = "edit.gif" alt = "edit" border="0" ><td>
<TD><%= Name %></td>
<TD><%= rs.getInt("Age") %></td>
<TD><%= rs.getString("Gender") %></td>
So this page displays the data that users wants to update plus one image button (edit button). So when user clicks this button, all the data in this page will be brought to the second .jsp page called updatePersonal for updating.
The problem here is that it is not displaying the existing data in the second .jsp page.
The second page basically contains forms
<INPUT TYPE="text" NAME="FirstName" maxlength="30" value = "<%=FirstName%>">
Can someone please help me. I really dont know what to do..How do i get the data displayed in the text field that is passed from the first .jsp page..thankx in advancePlease modify below code to:
td><img src = "edit.gif" alt = "edit" border="0" ><td>
-----------------modified code
td><a href="updatePersonal.jsp?FirstName=<%=rs.getString(FirstName")%">&LastName=<%=rs.getString("LastName")%>&Age=<%=rs.getInt("Age")%>&Gender=<%=rs.getString("Gender")%>"><img src = "edit.gif" alt = "edit" border="0" ></a><td>
I'm sure it works</a> -
How can I pass data from a form guide to another form in a business process
How do we pass data from a form guide to another form(not necessarily a guide) without having to open the form. For example we have a small form guide to capture the contract id so we can then get data from contracts table to present to the user in a form. We want the user to open the guide (either Flex guide or form guide) to enter the contract id. Upon submission we want the process to get the contract data and put it into the form that will be opened at the next step by the user without having a user interact with the form to get the data into it. In other words we need the process to get the data and populate a different form than the form guide the contract id was entered in and this new form needs to be opened in the next step by the user.
Firstly, I'm assuming that you have a Forms ES Server if you are rendering a Guide. This could be either version ES1, ES2/2.5 or ES3/ADEP
If you submit the form back to the server, you can populate a second (PDF/XDP) form with the data bound to the same schema/Data Model using Forms ES.
You referred to the next user in the chain - If you are using Process Management, this is very easy, as you define what form is used to render the data in the "Presentation & Data" section of the Assign Task activity -
base /open SQL Statement etc) the first time i defined the system everything was fine but when i changed the Database (using M.S.Access) the " open SQL Statement" it would show the tables but not thier columns ,I"m using win98 sec edition / Teststand 1.0.1i need to pass data from an Access database to Teststand by using the built in Data step types(open database /open SQL Statement etc) the first time i defined the system everything was fine but when i changed the Database (using M.S.Access) the " open SQL Statement" it would show the tables but not thier columns ,I"m using win98 sec edition / Teststand 1.0.1
When I tried the same thing on another cmputer the same thing
happend
appreiciate u"r helpbase /open SQL Statement etc) the first time i defined the system everything was fine but when i changed the Database (using M.S.Access) the " open SQL Statement" it would show the tables but not thier columns ,I"m using win98 sec edition / Teststand 1.0.1Hello Kitty -
Certainly it is unusual that you can still see the tables available in your MS Access database but cannot see the columns? I am assuming you are configuring an Open Statement step and are trying to use the ring-control to select columns from your table?
Can you tell me more about the changes you made to your file when you 'changed' it with MS Access? What version of Access are you using? What happens if you try and manually type in an 'Open Statement Dialog's SQL string such as...
"SELECT UUT_RESULT.TEST_SOCKET_INDEX, UUT_RESULT.UUT_STATUS, UUT_RESULT.START_DATE_TIME FROM UUT_RESULT"
Is it able to find the columns even if it can't display them? I am worried that maybe you are using a version of MS Access that is too new for the version of TestSt
and you are running. Has anything else changed aside from the file you are editing?
Regards,
-Elaine R.
National Instruments
http://www.ni.com/ask -
Passing data from a panel to a frame / disposing of a frame from in a panel
Hello, I have recently created a program where all windows are made of seperate frames, now, to make the whole thing a bit more appealing and professional looking, i'd like to make 1 main frame, and load my content panels into this 1 frame. Problem i'm having with this is passing data from the loaded in panel to the main frame, so the main frame can hide one panel to load another with data inserted in the first panel. OR another solution to my problem would be a way to dispose of a frame, but from within the seperate panel class. I have searched the www for a solution, but haven't found one so far, so, any suggestions or references to some info about this kind of issue? Any pointer is greatly appreciated
kennethdm wrote:
EDIT: I took a look at the cardlayout, and, although i see its relevance to my question, it still leaves me with the question how exactly i will pass data the user inputs into the first panel, to the second panel. The second panel is built by the info which is provided in the first panel.Stop thinking of them as Panels and start thinking of them as OOP objects that have data that must be shared. It's often a matter of using getters and setters and sometimes requiring a sprinkling of the Observer design pattern. -
Passing data from one frame to another frame
hello all, i am having a problem with passing data from one frame from another. I have a main frame when you click on connect button it display the second frame(class) that has 2 text fields and 2 buttons. When i click on connect it check if the data is correct. If the data is correct i want that frame to close and pass the data back to main frame. How can i do that.
thank youhello all, i am having a problem with passing data
from one frame from another. I have a main frame when
you click on connect button it display the second
frame(class) that has 2 text fields and 2 buttons.
When i click on connect it check if the data is
correct. If the data is correct i want that frame to
close and pass the data back to main frame. How can
i do that.
thank you
the original problem sounded like an ideal opportunity to use Modal Dialog. if you want one frame to display another to get user input then you need to stop the method in the main frame from executing until you recieve a valid input.
you can use your own class and keep all of the components that you have in the connect frame but you would have to extend JDialog instead of JFrame.
there is a way around it!
if you must use JFrame for both, then you need to have access to the main frame in the connect frame, maybe pass the pointer to the constructor??
anyway, when the connect frame is done with its duties, you have to use the pointer to call another method in the main frame that will continue the process. otherwise main frame doesn't know when connect frame is done and by that time, the method in main frame that instantiated the connect frame has long since died.
also, it allows things to happen in the other window that you may not want to happen until the connect frame is done
typically users of software start clicking around on things and you could have three or four connect frames going at the same time
it's really best to use a Modal Dialog, it really can look just like a JFrame!!!!!!!!!!!!!! -
Passing data from a container to another
Hi,
Let's say I have two containers (Container1=application , Container2). Container1 gets some data from user, perform some database lookup and displays Container2 with the results from database lookup.
Container1 --(call and display)--> Container2
Below shows how I am using a bindable variable in Container1 to pass the data from Container1 to Container2. Also shows how I display Container2 from Container1.
<!-- Container1 -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
[Bindable] public var foo:String = "bar";
private function loginHandler(event:LoginEvent):void
mycontainer2 = new Container2();
mycontainer2.name = "mycontainer2";
this.addChild(mycontainer2);
</mx:Application>
I am accessing the data in Container2 as follow:
<!-- Container2 -->
{mx.core.Application.application.foo}
Q1) Is there a better way to pass data from one container to another and access the data?
Q2) Is this the only way to call and display Container2 from Container1?
Q3) How can I move back to Container1 from Container2, i.e. Container2 call and display Container1
Container2 --(back to)--> Container1Best practices call for using custom events to share data between components. Here is my Flex 3 Cookbook post on the topic:
http://cookbooks.adobe.com/index.cfm?event=showdetails&postId=15466
To switch easily between containers 1 & 2 use a ViewStack, the gold standard for such interaction, and manipulate the selectedIndex or selectedChild property:
http://livedocs.adobe.com/flex/3/html/help.html?content=navigators_3.html
If this post answered your question or helped, please mark it as such. -
Is it possible to pass data from a subVI before that subVI has finished executing?
Basically this is my problem:
1. I have a subVI which contains a loop that reads data from a device for a specified amount of time.
2. I would like to graph this data in real time on the front panel of the main VI.
So is there a way to pass data from inside the loop of my subVI to the graph of my main VI before the subVI has finished executing, and if so how do I do this?
Thank you.How about using a global variable or a Queue?
-
Hi Experts,
i am new to the SRM, i am facing problem in passing data from one screen to another.
my requirement is that when we select one shopping cart and press the PROPOSE SOURCES OF SUPPLY button, we will fetch all the contracts that are attached to the shopping cart.
we have implemented a BADI implementation of BBP_SOS_BADI (method BBP_SOS_CHECK) for passing some changed values to the contracts of the shopping cart into the popup screen that is displayed when we press PROPOSE SOURCES OF SUPPLY button and when we select any contract and press ASSIGN ONLY button in the popup screen the badi BBP_DOC_CHANGE_BADI is triggered.
i have implemented another BADI implementation of BBP_DOC_CHANGE_BADI for fetching the selected contract and pass the values to another screen, but the problem is that when we select one contract and press the assign only button we are fetching the wrong contract number ( that is in the BADI method BB_SC_CHANGE parameter IT_ITEM we are fetching the wrong contract), if we again do the same procedure for the second time we are getting the correct contract.
i am unable to understand why we are getting the wrong contract in the first time( that is we are getting contract other than the selected one).
as per my understanding i think when we are passing data to the popup screen using BBP_DOC_CHANGE_BADI we are not updating the shopping cart with the changed data.
can anyone tell me how we can update the SHOPPING CART with the changed contracts data, i have used BBP_PD_SC_UPDATE, BBP_PD_SC_SAVE and other shopping cart FM but nothing is happening.
Thanks
TanveerHello,
What version of SRM are you on? Have you check for OSS Notes? I have had trouble with BBP_DOC_CHANGE_BADI but it was because of other issues. The BADI works pretty well and it is called almost every time something happens to the shopping cart.
I have noticed that sometimes that values are not changed til the second calling of the BADI. I have yet understand why but I think it has to do with prompt processing. Usually, we train our requisitioners to click the 'Check' button to flush things out.
I don't know if I was helpful.... another thought.... could there be an error caught by BBP_DOC_CHECK_BADI that is preventing change in BBP_DOC_CHANGE_BADI?
Regards, Dean. -
Passing data from one bsp application to another
Hi,
I have few queries that most of you would have done in ur projects:
1. I want to pass data from one bsp application to another:
eg based upon selected row of table view which populates material no and descriprion to another application which open the entire material master data.
Now, i have both the pages in diff bsp applications in place but unable to pass the selected material code to the second bsp application.
Had it been two different pages of same application I was able to achieve it with set parameter()
2. To stop the application from reprcessing the data:
eg: Suppose I have a bsp page where user fill details of a customer and on submitinng the details a customer is created in background and the entire page is disabled by my code. Even now if the user press refresh (F5) button then another customer gets created in the background. So basically i want to avoid the reprocess of the onSubmit event
Few lines of sample code would be very helpful.
Best Regards,
Saurabh TripathiHi,
When I am writing the following code in appl1/page1:
export abc from transactionID
to data buffer lv_page_data.
CALL METHOD CL_BSP_SERVER_SIDE_COOKIE=>SET_SERVER_COOKIE
EXPORTING
NAME = 'TRANSACTIONID'
APPLICATION_NAME = RUNTIME->application_name
APPLICATION_NAMESPACE = RUNTIME->application_namespace
USERNAME = ls_name
SESSION_ID = runtime->session_id
DATA_VALUE = lv_page_data
DATA_NAME = 'lv_page_data'
and following code in appl2/page2:
CALL METHOD CL_BSP_SERVER_SIDE_COOKIE=>GET_SERVER_COOKIE
EXPORTING
NAME = 'TRANSACTIONID'
APPLICATION_NAME = RUNTIME->application_name
APPLICATION_NAMESPACE = RUNTIME->application_namespace
USERNAME = ls_name
SESSION_ID = runtime->session_id
DATA_NAME = 'lv_page_data'
CHANGING
DATA_VALUE = lv_page_data
IF lv_page_data IS NOT INITIAL.
IMPORT abc to transactionid
FROM data buffer lv_page_data.
ENDIF.
still the code doesn't work. Please explain and guide
Best Regards,
Saurabh Tripathi -
Hi All,
I am new to TestStand. Still in the process of learning it.
What are Parameters? How are they differenet from Variables? Why can't we use variables for passing data from one sequnece to another? What is the advantage of using Parameters instead of Variables?
Thanks in advance,
LaVIEWan
Solved!
Go to Solution.Hi,
Using the Parameters is the correct method to pass data into and out of a sub sequence. You assign your data to be passed into or out of a Sequence when you are in the Edit Sequence Call dialog and in the Sequence Parameter list.
Regards
Ray Farmer -
How to pass Data from one form to the other
Hi all
Can any one suggest me how to pass data from one form to the other form, which i zoomed from the original one?
I tried to do this by passing parameter in Event Procedure but i am getting error msg when i am opening the zoomed form.
If any one of u have any idea, give me a reply
Thank you
SuhasiniIf you choose the second alternative you should erase these global variables after the second form is opened
You can erase the global variable using:
erase('global_var')
Greetings,
Sim -
Passing data from one screen to another(web-dynpro) in SRM sourcing cockpit
HI Experts,
i am facing problem in passing data from one web-dynpro screen and assigning the data it to another web-dynpro screen.
my requirement is that when ever user selects a contract in PROPOSE SOURCES OF SUPPLY screen popup and press only assign only button, the data of the contract should be copied to the shopping cart.
i have already used the BADI BBP_DOC_CHANGE_BADI, but unfortunately it was not working.
so i tried to use the context, element and other web-dynpro fields to pass the data, i am able to pass the data from the popup to the second screen and able to assign it.
but when ever i deselect the shoppping cart which has been assigned with the data of the popup and select another shopping cart the data of the above shopping cart is cgetting changed.
i am unable to figure out the exact reason why this is happeing.i have written code in the ASSIGN ONLY button method to fetch the popup data and in the WDONMODIFYVIEW method of the second screen to assign the popup data to the shopping cart.
i have tried to bind the elements using the BIND_TABLE, BIND_STRUCTURE, BIND_ELEMENT, BIND_ELEMENTS methods, but nothing is working.
can anyone suggest me where i am making mistake and try to solve the issue.
Thanks
TanveerDear Poster
Your thread has had no response since it's creation over
2 weeks ago, therefore, I recommend that you either:
- Rephrase the question.
- Provide additional Information to prompt a response.
- Close the thread if the answer is already known.
Thank you for your compliance in this regard.
Jason Boggans
SAP SRM SDN Moderator -
How to send a data from combobox to list box in java when I click datas
ow to send a data from combobox to list box in java when I click datas in combobox
use getItemAt() from combo and add them to list model.
-
Passing data from JAVASCRIPT to SAP database
Hi Experts,
Is it possible to connect or access RFC function module through JAVASCRIPT? I want to send data from JAVASCRIPT to SAP database table.
Is it possible to pass data from JAVASCRIPT to SAP database table?
Thanks in advance.
Regards,
Arindam Samanta.OData services can be one option to achieve this.
Another possibility can be use of Generic REST enablement with SAP NetWeaver Gateway.
If you are not considering Gateway at all, then A JSON adapter like the one mentioned in JSON Adapter for ABAP Function Modules can be handy.
Maybe you are looking for
-
Attempting to eliminate a dead spot in Wifi coverage [and implement AirPlay] have one Airport Extreme 802.11n and two Airport Express 802.11n's. http://support.apple.com/kb/HT4145 The Airport Extreme is of course connected to cable modem and Ethernet
-
How to make a working IMAGE ofperfect system? What program to use? NoRestor
OK, being a PC guy (sigh) I am used to system restore. A few things. The other day for no reason iDVD stopped playing sound, for the life of me I could not fix it, garage band played fine....as well as Logic Express, but no for iDVD which leads me to
-
Billing document not through to Finance
Hello Experts, If you could help please ... I've got a billing document that didn't go through to Finance. If we try to post it now we get the error that the posting period is closed. Is there a way to solve this ? Thank you and take care! Maré
-
Error while excecuting of package in ODI 11.1.1.6
Hello Gurus, We have migrated from ODI 10g (10.1.3.5) to ODI (11.1.1.6) using Upgrade Assistant utility. After migration, for most of the interfaces , we are getting error while running a package ODI-1228: Task <Interface_Name> (Integration) fails on
-
1.- You gringos, NOT ALL THE WORLD IS THE GARBAGE USA, we need forums in various language, out side, there is a WORLD WITH MANY OTHER COUNTRIES, THAT SPEAK A LOT OF DIFERENT LANGUAGES. 2.- Why I can't find a simple thing: PRINT IN WHITE AND BLACK...