How to pass query result from pop-up?
Hi!
First of all, sorry for my english, I hope you could
understand me :-)
I'm newbie in Flex, just started. I wrote main application
with button
"Login", and when I click on it I generate pop-up window witn
my
custom component "LoginForm". In this form I check in my
MySQL
database using PHP if the username and the password are
correct.
To this point it works.
Now, I would like to pass the result (the query return full
name of
the users if it is correct) to the variable declared in main
application:
var person:Staff = new Staff();
Staff is my class defined in separate file Staff.as with
public
variable full_name:String and public method
setFullName(name:String);
How to do that?
Best regards,
Mariusz
There are several ways. One way is to use events. This
example shows several *other* ways.
http://www.cflex.net/showFileDetails.cfm?ObjectID=558
Tracy
Similar Messages
-
How to send query results from BW to R/3 abap program
Hi,
I have to bring in query results from BW into a abap program written in R/3...can anyone help me on how to accomplish this(BW to R/3) please...i was thinking if reporting agent or broadcasting should help but i dont know how to get started.
Please help.
Thank you so much.Hi Vijay,
As i know, you can send data from BW to Flat file or into any table in BW or to BW application server only.
You need 3rd party to send data to different server.
You can use
1. Tcode : RSCRM_BAPI to download query values/results into a table or into a flat file. OR
2. You can use Infospokes to generate files from ODS/CUBE/master data objects to flat files(local/application server) or to a table.
3. Using information broadcasting we can send mail(dont know much options), but i dont think generation of file possible.
You need to trnasfer generated file from BW to R/3 and load into R/3 using BDC or LSMW(if data is low).
I think, you can also use RFC function modules to read data from BW to R/3, plz check with ABAPer.
Hope it Helps
Srini -
How to pass query string from content editor webpart to another?
Hi All,
I am using content editor web-part to show GooglePiechart for workflow status column in a list. When user click on chart, i need to show particular clicked area data in another list web-part. So that, i need to pass the query value from content editor
web-part to another web-part. How to achieve this scenario?Hi Sam,
What you can do is using SPD create a data view webpart which excepts query string value as filters as shown in the below article
http://madanbhintade.wordpress.com/2012/01/08/sharepoint2010dataviewwebpart/
http://sharepoint.stackexchange.com/questions/55184/how-to-filter-dataview-webpart-dvwp-from-query-string
Then When you click on the pie charts particualr section perform a post back by appending the required query string paramter to the same page on which your webpart exist
Raghavendra Shanbhag | Blog: www.SharePointColumn.com
Please click "Propose As Answer " if a post solves your problem or "Vote As Helpful" if a post has been useful to you.
Disclaimer: This posting is provided "AS IS" with no warranties. -
How to pass query parameter from HTML in SAP XMII
I need to pass the value to query parameter from html .i m quite confused about how to do that .can anyone give me a valid point....
Ramesh,
Addition of Rupesh,
U can also pass in the form of INLINE paramters.
Like
<Applet name = <appletname> width .......>
<param NAME = "param.1" VALUE = <value>
<param NAME= "param.2" VALUE = " <value>
</APPLET>
Thanks
Hari -
How to pass query result to HTML table?
Hi,
i want to get the query result in HTMl table instead of Display Grid. how to do it? i searched in help, it suggests use icommand to do this. but i dont know how to pass the select query result to HTML table.. please help me.
-senthilHi Senthil,
You can create an icommand query. You can then use the icommand retrieval methods to capture and manipulate the query data.
(http://help.sap.com/saphelp_xmii115/helpdata/en/Applet_Reference_Details/iCom
mand_Reference.htm)
Basically what we did was, use the getColumnCount() and getRowCount() methods, once you have these two numbers you can set two for loops and use String getValue(int ColID, int RowID) , within the for loops you can generate the inner html content and write the values either in a html table or html form (which is what we did). This seems to work well, I'm still playing around with it and may post this approach on sdn by end of this week.
Mahwish -
How to prevent query results from caching
Hi there,
I have a form with several blocks. If i update an item (say empID = 2 from 1) and click on save and the database trigger raises an error, alert pops up. Now if i click on enter -query button twice from the toolbar, same query criteria appears and i click on execute-query button. This brings up the same record but with empID=2 instead of 1 which is the value in the database.
if i exit the form and come back, it shows the correct value i.e. 1. I have a select statement in post-query trigger for the block which queries by key and gets the values.
Why is forms caching the values??
Pleeeeease help.Here's what i have in ON-COMMIT trigger
Declare
alt_num NUMBER;
al_id alert;
BEgin
adatabasepackage.proc1(primary_key value);
:system.message_level := 0;
COMMIT_FORM;
Exception
when others then
al_id := FIND_ALERT ('CFG_ERROR');
SET_ALERT_PROPERTY (al_id,
alert_message_text,
err_tools.get_err_msg(SQLERRM)
alt_num := SHOW_ALERT ('CFG_ERROR');
end;
The error from the database is created by me in a table. err_tools.get_err_msg is a function which returns only the error message. -
How to get query result in comma dilimited text or excel file?
Does anybody know how to get query results in comma delimited
text file or excel file, I tried spool abc.txt, but the result
showed some ------ lines
ThanksTry doing this in your sql scripts
set heading off
set pagesize 0
set linesize 4000
set feedback off
set verify off
set trimespace on
set colsep ","
spool output.txt
select * from dual (or whatever you are querying
spool off
There may be a couple other set statement that you could add but
this should get you started in the right direction -
How can I export query results from sqlplus on the command line? Are there ways to specify the format such as CSV, TAB, XML, etc?
I've seen one approach that involves creating a shell script and piping the output to a file:
#!/bin/sh
sqlplus user/password <<__EOF__
set heading off;
set newpage none;
select f1, ',', f2, ',', f3 from some_table;
__EOF__
Then pipe the output to a file. Is there a simpler solution to this?http://asktom.oracle.com/pls/ask/f?p=4950:8:::::F4950_P8_DISPLAYID:235814350980
-
How to pass the value from Sub report to main report
I have un report(mainreport) within a subreport(subreport).
With reporting services, how to pass the value from Sub report to main report?
thanksHi Alebet,
With reporting services to pass values from sub report in to main report is not supported directly.
But there are some workarounds through which you can get this .
There are two ways to get this.
1- Put your sub report query into some table. i mean to say through the subreport query get some temporary table.
2- Using this temporary tables data write some Scala function in the data base.
3- Now in your main report query return this scala function as a column.
4- Extract the column value where ever you want in your main report which is getting calculated from the subreport query. so you will be getting the values returned from the subreport in the main report.
This will definitely work fine as i have done some report in this way.
Another way of doing is that
1- prepare another data set with the same query as in sub report in the data tab.
2- then refer this 2nd dataset in your main report .
But better way will be the top one.
Anyway please let me know if you get the solution.
Thanks
Mahasweta -
How to save query result in excel file
Hi all,
How to save query result in excel file from sql*plus tool.
thank youDo you really need an Excel file (binary) or a simple CSV?
If you just need a CSV then search for DUMP_CSV at http://asktom.oracle.com or at this forum
If you need formatting and/or multiple worksheets then you can use free tools like
https://xml-spreadsheet.samplecode.oracle.com/ or https://exceldocumenttype.samplecode.oracle.com/
Regards
Marcus -
How to return query result in procedure
Hi all,
Can anyone tell me how to return query result in pl/slq procedure using out .
thank you
regards
P PrakashProcedure for sys_refcursor:
create or replace procedure ptest(c out sys_refcursor) is
begin
open c for select * from dual;
end;Procedure for collections(although sys.ODCIVarchar2List is varray, same example you can use with "table of")
create or replace procedure ptest2(c out sys.odcivarchar2list) is
begin
select dummy
bulk collect into c
from dual;
end;Example:
declare
c sys_refcursor;
v varchar2(100);
vt sys.odcivarchar2list;
begin
ptest(c);
fetch c into v;
dbms_output.put_line('1.Cursor data: '||v);
ptest2(vt);
dbms_output.put_line('2.Collection data: '||vt(1));
end;Regards,
Sayan M. -
How to pass the data from a input table to RFC data service?
Hi,
I am doing a prototype with VC, I'm wondering how VC pass the data from a table view to a backend data service? For example, I have one RFC in the backend system with a tabel type importing parameter, now I want to pass all the data from an input table view to the RFC, I guess it's possible but I don't know how to do it.
I try to create some events between the input table and data service, but seems there is no a system event can export the whole table to the backend data service.
Thanks for your answer.Thanks for your answer, I tried the solution 2, I create "Submit" button, and ser the mapping scope to be "All data rows", it only works when I select at least one row, otherwise the data would not be passed.
Another question is I have serveral imported table parameter, for each table I have one "submit" event, I want these tables to be submitted at the same time, but if I click the submit button in one table toolbar, I can only submit the table data which has a submit button clicked, for other tables, the data is not passed, how can I achieve it?
Thanks. -
How to pass multiple values from workbook to planning function ?
Hi,
I have created Planning function in Modeler and it has one parameter(Variable represents = Multiple single values).
When executing the planning function by create planning seq. in the web template : I see value of variable store data like ...
A.) input one value -> V1
B.) input three values -> V1;V2;V3
This function execute completely in web.
However, I want to use the planning function in workbook(Excel).
The value of variable can't input V1;V2;V3... I don't know how to pass multiple values from workbook to parameter(Multiple single values type) in planning function ?
thank you.Hi,
Please see the attached how to document (page no 16).
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0881371-78a1-2910-f0b8-af3e184929be">how to</a>
Hope this was helpful
thanks -
Regarding how to pass the data from web dynpro to workflow
hi gurus,
how to pass the data from web dynpro to workflow.
Regards
vijayCheck this [thread|SAP_WAPI_START_WORKFLOW;
-
How to pass the data from web dynpro to workflow.
hi gurus,
how to pass the data from web dynpro to workflow.
Regards
vijayHi
you can use function module
data ls_input_container TYPE swr_cont.
data lt_input_container TYPE TABLE OF swr_cont.
CALL FUNCTION 'SAP_WAPI_START_WORKFLOW'
EXPORTING
task = ptask
IMPORTING
return_code = lv_return_code
new_status = lv_new_status
TABLES
input_container = pinput_container
message_lines = lt_message_lines
message_struct = lt_message_struct.
where you pass the data in imnternal table "pinput_container" as
ls_input_container-element = 'KUNNR'.
ls_input_container-value = ls_skna1-kunnr ."wd_this->lv_kunnr.
APPEND ls_input_container TO lt_input_container .
ls_input_container-element = 'CLUSER'.
ls_input_container-value = lv_cluser.
APPEND ls_input_container TO lt_input_container .
ls_input_container-element = 'BUKRS'.
ls_input_container-value = lv_bukrs. " youe value as per requirement.
APPEND ls_input_container TO lt_input_container .
ls_input_container-element = 'VKORG'.
ls_input_container-value = ls_sknvv-vkorg. " youe value as per requirement
APPEND ls_input_container TO lt_input_container .
ls_input_container-element = 'VTWEG'.
ls_input_container-value = ls_sknvv-vtweg. "youe value as per requirement.
APPEND ls_input_container TO lt_input_container .
ls_input_container-element = 'SPART'.
ls_input_container-value = ls_sknvv-spart. "youe value as per requirement.
APPEND ls_input_container TO lt_input_container .
*Also Forgot to mention where ptask is your workflow ID *
Regards,
Arvind
Edited by: Arvind Patel on May 14, 2010 7:38 AM
Maybe you are looking for
-
Scenario strategy: conversion script purchase orders
Hi, Can anybody email me an example of an conversion script regarding Purchase orders from an other system into SAP? I'am specially interested how to deal with open purchase orders in the old system, when they could not be closed in the old system. T
-
Dell E176FP monitor won't work with os 9.2
Hi I bought a dell 17 inch E176FP monitor but there is no display with my powermac g4 running os 9.2 It works fine when I plug it into my Dell inspiron laptop (awful product) and a smaller viewsonic model works fine with my G4. I've done a factory re
-
Cannot find symbol class ParseException
I have this in my code how ever DateFormat formatter = new SimpleDateFormat("ddMMyyyy"); dDateStamp = (Date)formatter.parse(dateStamp); When I pass in say dateStamp=safsadssad sa; I get an error which is fine. I can not seem to catch this error with
-
Cleaned up temp. files, etc with Norton and right after could not get yahoo, Facebook, or any of my bookmarked sites. Contacted Norton and they checked but said it wasn't their problem..suggested i contact Firefox. Everything runs normally with explo
-
Cannot find or invalidate its owning entity.
hi when i click my createinsert am geting this error cannot find or invalidate its owning entity. am in jdeveloper 11.1.1.6.0 my log error is <Utils> <buildFacesMessage> ADF: Adding the following JSF error message: Detail entity UamOrganisationUser w