Simple example of a combobox displaying data from a CF datasource
Can anyone point me to a simple example of a Flex 3 combobox that displays data from a ColdFusion datasource? I cannot seem to find a simple example. As always, thanks!
Thanks for the response, but the example you provided is more complex than I need. For example, I have a simple table accessed through ColdFusion. The table has one filed with 7 records. I need a flex page to display that data in DataGrid, ComboBox and List controls. The Datagrid displays the 7 records but the ComboBox and List are blank. How do I get the values from the database to display in the BomboBox and List controls?
Below is my code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml"
creationComplete="initComponent()">
<mx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
import mx.rpc.events.ResultEvent;
import mx.rpc.remoting.RemoteObject;
private var currentIndex:int = 0;
private var _key:Object;
[Bindable]
public function get key():Object
return this._key;
public function set key(key:Object):void
this._key = key;
private function initComponent():void
refreshList(null);
public function refreshList(event:Event):void
this.dataManager.getRoles(this.key);
private function getRoles_result(event:ResultEvent):void
this.roleList.dataProvider = event.result as ArrayCollection;
this.roleList.selectedIndex = this.currentIndex;
]]>
</mx:Script>
<mx:RemoteObject
id="dataManager"
showBusyCursor="true"
destination="ColdFusion"
source="ifqgtfuses.com.vwRoles">
<mx:method name="getRoles" result="getRoles_result(event)" />
</mx:RemoteObject>
<mx:Canvas width="100%" height="100%" x="0" y="0">
<mx:DataGrid id="roleList"
x="10" y="10">
<mx:columns>
<mx:DataGridColumn dataField="vchar_role" headerText="Role" />
</mx:columns>
</mx:DataGrid>
<mx:ComboBox x="10" y="160" id="rolesComboBox" dataProvider="{roleList.selectedIndex}"/>
<mx:List x="120" y="10" id="rolesList" dataProvider="{roleList.selectedIndex}"/>
</mx:Canvas>
</mx:Canvas>
Similar Messages
-
Display data from multiple document Libraries in List View Webpart
Hi All,
I want to display data from multiple document libraries into one list view webpart(custom i have created)
I went through the following link http://blogs.msdn.com/b/ramg/archive/2009/04/22/implementing-a-simple-cross-site-collection-list-view-webpart.aspx
but it tells to display only from one document library.
My motive behind displaying data in the list view webpart is to achieve the functionality of Check In ,Check Out and other OOB features.
With Regards,
Jaskaran SinghHi,
As there is no such OOTB feature, a workaround is to create a visual web part to gather items from libraries and implement functionalities like Check in, Check out files
in different libraries.
The links below will provide more details:
Create Visual Web Parts in SharePoint
2010
A demo about displaying list items in visual web part:
http://www.dotnetcodesg.com/Article/UploadFile/2/217/Web%20Part%20in%20SharePoint%20To%20Show%20All%20List%20and%20List%20Items.aspx
About the Check In and Check Out:
How to Check In a document programmatically
SPFile.CheckIn method
and SPFile.CheckOut method
Best regards
Patrick Liang
TechNet Community Support -
Display data from CSV file in iWeb page
Hi,
I like to display data from a CSV file in iWeb page if a date value from CSV file matches todays value from the system. Here is an example.
CSV data values
01/20/2011,Sunny,87
01/21/2011,Cloudy,100
01/22/2011,Rainy,60
If today's date value is 01/21/2011 the page should display 01/21/2011 Cloudy 100 in a tabular format.
Appreciate your help in providing HTML code for this issue.
ThanksI suspect there is a soft return in the excel database somewhere that can't be seen. Take the csv/txt file into notepad and look for a line that starts oddly compared to the others.
I haven't had luck removing soft returns from excel files so I do this a rather odd way. I take the excel file into InDesign as a table, and then use find/change to replace any soft returns with nothing, then convert the text to table and then export the text out again by going export, and selecting text from the dropdown menu.
For my money, I always save tab delimited text files from excel so that if a field does contain commas, it doesn't "trick" indesign into thinking a new field is beginning or not... instead the field delimiters are tabs and they are unlikely to have been used in the excel database.
If you do choose to use this indesign import method of mine to clean up the database, i also noticed two things in your screengrab: first was that some fields have spaces at the start of the text... easy enough to fix with a GREP that looks for ^\s (start of a sentence followed by a space) and replace with nothing. The second thing is the T&C field that all entries (at least in the screengrab) all start the same – if all entries in the database start the same, couldn't that line be in the indesign file? Its only a small detail I know. -
How to display data from a recordset based on data from another recordset
How to display data from a recordset based on data from
another recordset.
What I would like to do is as follows:
I have a fantasy hockey league website. For each team I have
a team page (clubhouse) which is generated using PHP/MySQL. The one
area I would like to clean up is the displaying of the divisional
standings on the right side. As of right now, I use a URL variable
(division = id2) to grab the needed data, which works ok. What I
want to do is clean up the url abit.
So far the url is
clubhouse.php?team=Wings&id=DET&id2=Pacific, in the end all
I want is clubhouse.php?team=Wings.
I have a separate table, that has the teams entire
information (full team name, short team, abbreviation, conference,
division, etc. so I was thinking if I could somehow do this:
Recordset Team Info is filtered using URL variable team
(short team). Based on what team equals, it would then insert this
variable into the Divisional Standings recordset.
So example: If I type in clubhouse.php?team=Wings, the Team
Info recordset would bring up the Pacific division. Then 'Pacific'
would be inserted into the Divisional Standings recordset to
display the Pacific Division Standings.
Basically I want this
SELECT *
FROM standings
WHERE division = <teaminfo.division>
ORDER BY pts DESC
Could someone help me, thank you.Assuming two tables- teamtable and standings:
teamtable - which has entire info about the team and has a
field called
"div" which has the division name say "pacific" and you want
to use this
name to get corresponding details from the other table.
standings - which has a field called "division" which you
want to use to
give the standings
SELECT * FROM standings AS st, teamtable AS t
WHERE st.division = t.div
ORDER BY pts DESC
Instead of * you could be specific on what fields you want to
select ..
something like
SELECT st.id AS id, st.position AS position, st.teamname AS
team
You cannot lose until you give up !!!
"Leburn98" <[email protected]> wrote in
message
news:[email protected]...
> How to display data from a recordset based on data from
another recordset.
>
> What I would like to do is as follows:
>
> I have a fantasy hockey league website. For each team I
have a team page
> (clubhouse) which is generated using PHP/MySQL. The one
area I would like
> to
> clean up is the displaying of the divisional standings
on the right side.
> As of
> right now, I use a URL variable (division = id2) to grab
the needed data,
> which
> works ok. What I want to do is clean up the url abit.
>
> So far the url is
clubhouse.php?team=Wings&id=DET&id2=Pacific, in the end
> all
> I want is clubhouse.php?team=Wings.
>
> I have a separate table, that has the teams entire
information (full team
> name, short team, abbreviation, conference, division,
etc. so I was
> thinking if
> I could somehow do this:
>
> Recordset Team Info is filtered using URL variable team
(short team).
> Based on
> what team equals, it would then insert this variable
into the Divisional
> Standings recordset.
>
> So example: If I type in clubhouse.php?team=Wings, the
Team Info recordset
> would bring up the Pacific division. Then 'Pacific'
would be inserted into
> the
> Divisional Standings recordset to display the Pacific
Division Standings.
>
> Basically I want this
>
> SELECT *
> FROM standings
> WHERE division = <teaminfo.division>
> ORDER BY pts DESC
>
> Could someone help me, thank you.
> -
Use an applet in a Jsp to display data from Oracle DB
Hi everyone, I'm very new to java my question is:
Is there a way to display an applet like a table within a Jsp to display data from a Oracle DB? The thing is that I would be able to show this applet only at the click of the submit button in my html form.
Please help me any sample code are welcome
Thank you in advance
FabryHi,
Why can't you use a Java Bean which takes the data from the database. Then call this bean from the JSP page using <jsp:useBean> tag.
Ok,if you dont want a Java Bean and if you want to use an applet in a JSP file, you will have to use <jsp:plugin>tag. Here is an example
<html><head><title> Demo Applet</title></head>
<body bgcolor="rd">
<% if (request.getParameter("SUBMIT") != null) {%>
<jsp:plugin type="applet" code="DemoApplet.java" codebase="." name="Demo" height="400 with="300>
<jsp:fallback> Plug in not supported by your browser</jsp:fallback>
</jsp:plugin>
</body></html>
Hope this will help you.
Rgds,
Ravi Shankar -
Issue with display data from infoset
Dear Experts,
When I am trying to display data from BI INFOSET in (Execute in background ctrl+F2)backend it is working fine but when in try to run the execution in forground (execute F8) then the system gets hang.. and time out. could any one has this kind of experience. if so kindly let me know do i need to implement any patch or else which way i can do work to resolve this issue.
Thanks in advance.
MannuHi Krishna,
I have tried as you have suggested ie. using Tcode RSISET for displaying data but still i have the same issue.
Could any one post any additional suggestions to follow.
Thanks in advance,
Mannu -
Display data from a virtual InfoCube
Hi experts,
When I tryed to display data from the virtual InfoCube 0FIGL_V40, I've got a dump.
Please help me to solve this problem.Dear Akshay,
Is it possible that the problem comes from R/3 since when I check the extractor 0FI_GL_40 with the RSA3 Tcode I've got the message:
Errors occurred during the extraction --- Message no. RJ012
I think that the pb has been solved by switching on the business function "Reporting Financials" . Inthe SAP source System -> TA: SFW5. Turn on Reporting Financials. Then I've no pb while testing the extractor.
Pb solved.
Many thanks
Youness
Edited by: Youness NAJI on Jan 13, 2010 4:39 PM -
Display Data from multiple models in one table
Hi Experts,
Is it possible to display data from multiple models in one table smltnsly.
I have created a table dynamically.Now I would like to display data from multiple models... If this possible,can anyone give me a lead as to how to do it..
Regards
SUHi
Your Model Nodes be
Model1
---Output_Model1
Attrib1
Attrib2
Model2
---Output_model2
Attrib1
Attrib2
and the value node is
ValueNode
---Attrib1
---Attrib2
Now the coding.
int size;
IPrivate<ViewName>.IOutput_mode1Node node1 = wdContext.nodeOuptut_Model1();
IPrivate<ViewName>.IValueNodeElement elem;
size = node1.size();
for(int i=0; i<size; i++)
elem = wdContext.createValueNodeElement();
elem.setAttrib1( node1.getOutput_Model1ElementAt(i).getAttrib1() );
elem.setAttrib2( node1.getOutput_Model1ElementAt(i).getAttrib2();
wdContext.nodeValueNode().addElement( elem );
similar code for Model Node 2
Regards
Abhimanyu L -
Display data from BLOB column.
Hi All,
I want to display data from blob datatype field, which contains HTML and GIF both files.
If I set it's property from file format IMAGE then i get data only gif.
if anybody have answer plz revert back...
awaiting...
JunedHi Juned
What I suggest is that you may have overlapping fields. One to show HTML and other to show GIF. You need to add one more column to your table in order identify if the BLOB is GIF or HTML.
In the Format Trigger of each of these two fields, inspect the value of flag column and hide one field if the datatype is not its type.
For instance, if flag field is 0 then hide Image field and show HTML field. If flag field is 1 then show Image field and hide HTML field.
Regards
Sripathy -
Display data from diferent tables
My requirement is to display data from diferent tables supose tables likeVBAK and VBAP.it will allow for all entries concept oops abap?.
how to write code for display data from diferent tables .
method WDDOINIT.
data:
node_sflight type ref to if_wd_context_node,
Itab_sflight type standard table of SFLIGHT.
select * from SFLIGHT into table Itab_sflight.
node_sflight = wd_context->get_child_node( name = 'SFLIGHT_NODE' ).
node_sflight->bind_table( itab_sflight ).
endmethod.
Thanks,
RamaHI,
IS IT CORRECT WAY OF DONIG CODING?
IF I AM WORNG PLEASE SUGEST ME.
method WDDOINIT.
data:
node_sflight type ref to if_wd_context_node,
final type standard table of vbap.
types: begin of t_vbak,
vbeln type vbak-vbeln,
end of t_vbak.
endmethod.
data wa_vbak type t_vbak.
data i_vbak type standard table of t_vbak.
types: begin of t_vbap,
vbeln type vbap-vbeln,
posnr type vbap-posnr,
matnr type vbap-matnr,
end of t_vbap.
data wa_vbap type t_vbap.
data i_vbap type standard table of t_vbap.
select vbeln from vbak into table I_vbak.
select vbeln posnr matnr from vbap into table I_vbap
for all entries in I_vbak
where vbeln = i_vbak-vbeln.
loop at I_vbak.
read table i_vbap with key vbeln = I_vbak-vbeln.
final-vbeln = I_vbap-vbeln.
final-posnr = I_vbap-posnr .
final-matnr = I_vbap-matnr .
append final.
clear final.
endloop.
node_sflight = wd_context->get_child_node( name = 'NODE_VBAP' ).
node_sflight->bind_table( final ).
endmethod.
Thanks,
rama -
Report not displaying data from one of the infoproviders
Hi Experts,
Issue: Report not displaying data from one of the infoproviders
I have a report 'ReportA' which has multiprovider MP1 as the source.
MP1 has two Infocubes IC1, IC2 in its design.
Now, when i execute the report, data from IC1 is displayed. But no data from IC2 is displayed.
Is there a setting i need to enable in MP1 ? or is there anything else that needs to be enabled ?
Please reply.
Regards,
Suraj S NairHi All,
When i display data directly from the multi provider, without any restrictions, i cannot view the data from infocube IC2.
I feel its not an issue with the Query. It must be a problem with the setting in the Multiprovider MP1.
Infocube IC2 is a copy of Infocube IC1. Multiprovider MP1 first only had IC1 in its design. It was recently IC2 was also included.
I checked the Characteristics, all of them are assigned corectly.
Now, this issue sure has something to do wiht the setting of Multiprovider or please correct me if wrong.
Regards,
Suraj S Nair -
How do I display data from Multiple Queries in a spreadsheet?
I am running Oracle forms 10g as a kicker to export a report (rdf 10.1.2.0.2) to PDF or Excel Spreadsheet - User's choice.
Doesn't matter if I have desformat = SPREADSHEET, DELIMITEDDATA, or DELIMITED; I still get only the first query displayed when I run in spreadsheet format.
How do I display data from Multiple Queries in a spreadsheet? Is this possible?
Thanks in advance!Hi adam,
did you search the forum? You will find a lot of threads handling the problem of Excel file access.
In short: you need to use ActiveX (the RGT also uses ActiveX under the hood)!
Best regards,
GerdW
CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
Kudos are welcome -
Using JTables to display data from a text file
How do I display data from a .txt file into a column inside a JTable?
dont quite get the "vectors" part..
by the way, my program is as follows
* Damn Java ..
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import java.awt.Dimension;
import java.awt.GridLayout;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
public class ScoreBoard extends JPanel {
private boolean DEBUG = false;
public ScoreBoard() {
super(new GridLayout(1,0));
String[] columnNames = {"Player's Name",
"Time Completed",
"$ Amount Earned $"};
/* Object[][] data = {
{"1",
new Integer(5), new Integer(500)},
{"2",
new Integer(5), new Integer(3200)},
{"3",
new Integer(5), new Integer(1000)},
{"4",
new Integer(5), new Integer(100)},
{"5",
new Integer(5), new Integer(200)},
final JTable table = new JTable(data, columnNames);
table.setPreferredScrollableViewportSize(new Dimension(600, 90));
if (DEBUG) {
table.addMouseListener(new MouseAdapter() {
public void mouseClicked(MouseEvent e) {
printDebugData(table);
//Create the scroll pane and add the table to it.
JScrollPane scrollPane = new JScrollPane(table);
//Add the scroll pane to this panel.
add(scrollPane);
private void printDebugData(JTable table) {
int numRows = table.getRowCount();
int numCols = table.getColumnCount();
javax.swing.table.TableModel model = table.getModel();
System.out.println("Value of data: ");
for (int i=0; i < numRows; i++) {
System.out.print(" row " + i + ":");
for (int j=0; j < numCols; j++) {
System.out.print(" " + model.getValueAt(i, j));
System.out.println();
System.out.println("--------------------------");
* Create the GUI and show it. For thread safety,
* this method should be invoked from the
* event-dispatching thread.
private static void createAndShowGUI() {
//Make sure we have nice window decorations.
JFrame.setDefaultLookAndFeelDecorated(true);
//Create and set up the window.
JFrame frame = new JFrame("ScoreBoard");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
//Create and set up the content pane.
ScoreBoard newContentPane = new ScoreBoard();
newContentPane.setOpaque(true); //content panes must be opaque
frame.setContentPane(newContentPane);
//Display the window.
frame.pack();
frame.setVisible(true);
public static void main(String[] args) {
//Schedule a job for the event-dispatching thread:
//creating and showing this application's GUI.
javax.swing.SwingUtilities.invokeLater(new Runnable() {
public void run() {
createAndShowGUI();
and i want to display the player name from a textfile.txt to the player column instead of hardcoding it like above. Thanks! -
Could u plz help me to find simple example for how to save data file in a spread sheet or any other way in the real time controller for Sbrio 9642 using memory or usb flash memory
Here are a few Links to a helpful Knowledge Base article and a White Paper that should help you out: http://digital.ni.com/public.nsf/allkb/BBCAD1AB08F1B6BB8625741F0082C2AF and http://www.ni.com/white-paper/10435/en/ . The methods for File IO in Real Time are the same for all of the Real Time Targets. The White Paper has best practices for the File IO and goes over how to do it.
Alex D
Applications Engineer
National Instruments -
Short dump MESSAGE_TYPE_X in displaying data from BPC Virtualcube
Hi Experts,
I am experiencing an error when try to display data from a BPC VirtualProvider Infocube (both from Workbench and with LISTCUBE transaction).
This kind of virtualcube is auto generated by BPC.
When I do some kind of selection I obtain this error: MESSAGE_TYPE_X
Short text of error message:
System error in program SAPLRRK0 and form CHECK_KHANDLE (see long text)
Technical information about the message:
Message class....... "BRAIN"
Number.............. 299
Variable 1.......... "SAPLRRK0"
Variable 2.......... "CHECK_KHANDLE"
I have another BPC vitualprovider and this doesnu2019t happen.
I would use this cube inside a multiprovider, that has a BI cube too, and get the data through a BEx query. But the query throws the error and stopped.
I know that there could be problems with BPC structures (i.e. changes in tech name when transporting it), but at the moment I donu2019t see other solution to compare BI to BPC data.
I went through other posts in sdn forum for this issue, but I am not able to get the exact solution,
please help
Thanks,
Marco
System version:
BW: 701 level 0007
BPC: 750 level 0005Hi Lokesh,
I read the note you have indicated.
For the first note 1479393: I donu2019t have hierarchies and the error appears in a different program to what is indicated in the note. This is where terminated:
Termination occurred in the ABAP program "SAPLRRK0" - in "CHECK_KHANDLE".
The main program was "GP4LQ7N6RS4RUB6HA69UREYGPKB ".
In the source code you have the termination point in line 34
of the (Include) program "LRRK0F05".
Furthermore, there are no calculated measures nor members in the MDX statement, because I just try to display the data from the virtualcube.
For the second 1448691: yes, it could be a performance related problem. Indeed, when I apply stronger filters, the error doesnu2019t occur and I got the data. But the system is already patched to SAPKW70107.
So, do you have any other ideas?
Thanks,
Marco
Maybe you are looking for
-
Hi Gurus, Can someone please help me understand how the vendor master data is transferred from Legacy System? I am aware that we do it master data transfer via LSMW etc. But how the vendor numbers are managed? Is it just with the help of A/c group an
-
I got out of my bed last night and accidently got shocked by my Ipod and now it won't charge. I tried using a different charger and my Ipod dock but it wouldn't show that it was charging. I turned it off last night and left it on my dock and turned i
-
Email Messages Have Started Arriving as Both Email and SMS
All of a sudden, all of my email messages have started arriving on my iPhone as both mail and SMS messages. This happened yesterday (Mon., 3/3/2008) evening. I had downloaded the latest iPhone software the previous day and had had no initial problems
-
Why is the flash player (plugin) getting slower?
I just upgraded from the current release of 10.1 to a beta that I downloaded last December. A vast improvement!! The platform is Windows XP SP/3, the host is an Acer AR1600 (Intel Atom 230 + nVidia ION LE). The content provider is Hulu. The video is
-
How to turn OFF status LED on VC220?
I'm looking for a way to turn off the status LED on a VC220. This is not the IR LED, but instead the large blinking LED on the front. The documentation mentions that it can be turned off, but I can't find a menu option for this. Thanks for your help