How can I pass a string to a mxml?
I'm trying to pass a string to the mxml file.
Here is the part of the codes:
var renderPDFForm:RenderPDFForm = new RenderPDFForm();
mx.core.Container.addChild.addChild (renderPDFForm);
The RenderPDFForm is actually a mxml file, I want to do something like when you create the instance, a string can be called.
Given that we cannot create constructor for mxml file, how can I do?
Thank you
I recommend a pair public get/set in the MXML file that you set just after construction. This is roughly equivalent
Tags: Flex
Similar Questions
-
How can I pass a string reference in java?
Hello!
My question is how to pass a string reference in java.
I tried to declare my variable, instead of using 'string xxx = 'f';', I used 'string xxx = new String ("f");':
Public Shared Sub main (String [] args)
{
String xxx = new String ("f");
StatusEnum result2 = getErrorPointStr (xxx);
}
public StatusEnum getErrorPointStr (String text)
{
StatusEnum testStatus = StatusEnum.PASS;
StringBuffer buffer = new StringBuffer();
buffer. Append ("123");
text = buffer.toString ();
Return testStatus;
}
After the call to getErrorPointStr (String text) function, xxx = 'f'
If it does not work.
How can I solve this? It is very important, the function will receive String and nothing else.
Thank you!800512 wrote:
Therefore, there is no way to do it? I mean, the way, as I've just described:To return to StatusEnum and pass by reference String?
This question has already been answered.
It is very important for me to know this.
And already know you, 'cause I told you in the first answer here.
Perhaps if you explain what you're trying to accomplishand why you think that need pass a reference string - in other words, why you think that a reference string is a solution to your problem - in fact we could be able to move forward with help you to solve this problem.
And No, despite what you think, your problem isn't that you 'need to pass a string reference. It's your solution to the real problem of attempted (and failed). So let's get down to that, shall we?
-
How can I pass a string to oracle
Experts,
can you let me know how can I have paas the string to oracle OBIEE.
I have create a vision OBIE query with a where clause in this query, I spend
AND gr.user_nm = VALUEOF (NQ_SESSION. USER)
for example, in oracle, only it goes like gr.user_nm = userid
and the query fails because it is not bounded by apostrophe (')
It must be placed as AND gr.user_nm = 'user name '.
I tried many ways, but it gives a column not found error...
Thank you
BGHey BG,
I see what you mean.
I have a TEST table in my database contains a single field, TEXT_FIELD VARCHAR2 (20).
I put a TEST presentation variable to 7001-2'.
In the RPD PHYSICAL layer, I create the following view on my table
SELECT TEXT_FIELD
OF THE TEST
WHERE TEXT_FIELD = VALUEOF (NQ_SESSION. TEST)When it executes the SQL code, I get the following in physics
SELECT TEXT_FIELD
OF THE TEST
WHERE TEXT_FIELD = 7001-2There can be no single quotes. So I put single quotes in the physical layer, and I get the following text:
SELECT TEXT_FIELD
OF THE TEST
WHERE = TEXT_FIELD ' VALUEOF (NQ_SESSION. TEST).It is not to evaluate the variable. Oh. I tried a few other variations on the call to session variables (for example the bind syntax: TEST3) but no luck there either.
It seems that at the physical layer, OBIEE will allow you to order how it should interpret the value.
However, if I move this condition to the logic layer. And add in a LOGIC where clause, OBIEE then correctly interpret the type of data and encapsulates the unique value with qoutes.
BG in your BMM layer, are you going to the source of the logic table for GR and put this condition even in there. Then, it should work perfectly.
Good luck and if you found this post useful, please give points.
-Joe
-
in vista how can I pass notpad text to a mail recipient?
I have vista how can I pass on notpad text to a mail recipient? I havn't got 'word' installed.
Thank you.
You can go to file | Except that in Notepad to save the text. You can then use Insert | Attachment to attach the text of a message to the folder (or just drag the file recorded by the message above, then drop it) or you can just copy the text (use follow-up of CTRL-A CTRL-c), then in an e-mail message, and then paste it (CTRL-V).
Steve
-
How can I pass a value to a variable binding in a report query?
I did a query of report to print a PDF report, with a dinamyc source query that has a connection variable, like this:
SELECT EMPNO, EMPNAME, EMPDEPT
FROM EMP
WHERE EMPNO =: PARAMETER;
I want to call the report print directly from a page, by using the url print showed by apex:
f? p = & APP_ID.:0 : & SESSION. : PRINT_REPORT = MYREPORT
How can I pass the value of the variable binding: PARAMETER using this URL?
I don't think you can use the url parameter passes in a report query.
the binding variable: PARAMETER must be a page element or an element of the application.
use the "include session information and application" in the defination of report query to bind the value when the report is run
-
How can I pass the value of one for two binding settings
Hi all
I have a search query
Select Distinct CONSOLIDATION_SUMMARY_ID, CREATION_DATE CREATED_BY BATCH_ID, PROCESS_FLAG, ERROR_MESSAGE, CUSTOMER_ID, BILLING_FREQUENCY
CONSOLIDATION_LEVEL, SOLD_TO_ORG_ID, SHIP_TO_ORG_ID, TRANSACTIONAL_CURR_CODE, INVOICE_TO_ORG_ID, PRICE_LIST_ID
ORIG_SYS_DOCUMENT_REF, INVENTORY_ITEM_ID, ORGANIZATION_ID, ORDERED_ITEM, ORDERED_QUANTITY, UNIT_LIST_PRICE
UNIT_SEELING_PRICE, ORDER_QUANTITY_UOM, ORDER_NUMBER, ORDER_DATE, INVOICE_NUMBER, INVOICE_DATE
FEE_CALCULATION_WORKSHEET_PDF, TRADE_DETAILS_PDF, INVOICE_REPORT_PDF, PRICING_ATTRIBUTE_CONTEXT
PRICING_ATTRIBUTE, PRICING_ATTR_VALUE_FROM
of xxcurrnx.xxcur_trade_consol_summary XXSTR
WHERE XXSTR. BATCH_ID = NVL (: 1, XXSTR.) BATCH_ID)
and XXSTR. CUSTOMER_ID = nvl (: 2, XXSTR.) CUSTOMER_ID)
But I need to pass only one value to this query: throw the code below
public void passTocusttrxn (String vcustid)
{
System.out.println ("trxn vo customer id:" + vcustid);
XxcurtradeconsummaryVOImpl vOrdnumb = getXxcurtradeconsummaryVO1 ();
vOrdnumb.setWhereClauseParam(0,vcustid);
vOrdnumb.setWhereClauseParam(1,null);
vOrdnumb.executeQuery ();
System.out.println ("the query that is run after is:" + vOrdnumb.getQuery ());
}
But it throws the exception below.
java.sql.SQLException: parameter IN or OUT to missing index: 1
could you please tell me how can I achieve this.
Thank youHello
I hope that the problem solved, pls, close it.
Regads
Meher Irk -
How can I pass parameters of token
Hi all
I wrote this code for the side tab bar
OAStaticStyledTextBean = bulletTextOne
CreateWebBean (OAStaticStyledTextBean) (pageContext, STATIC_STYLED_TEXT_BEAN, null, "textOne");
bulletTextOne.setText (pageContext, yahooText);
bulletTextOne.setCSSClass ("OraLinkText");
bulletTextOne.setDestination (yahooUrl);
bulletList.addIndexedChild (bulletTextOne);
String x="OA.jsp?page=/crm/oracle/apps/xxcrm/crmmgmt/quotationmgmt/webui/xxcrmquotationsearchPG; »
OAStaticStyledTextBean = bulletTextOne
CreateWebBean (OAStaticStyledTextBean) (pageContext, STATIC_STYLED_TEXT_BEAN, null, "textOne");
bulletTextOne.setText (pageContext, yahooText);
bulletTextOne.setCSSClass ("OraLinkText");
bulletTextOne.setDestination (yahooUrl);
bulletTextOne.setDestination (x);
bulletList.addIndexedChild (bulletTextOne);
Here I am navigate from one page to another page when I click on the link
How can she then I pass parameter token at this link
form ${oa.xxcrmCostsheetVO1.OpcsOpportunityid}
Concerning
AnthonyHello
You can enter the Atrribute seen in processrequest like that.
Am = (OAApplicationModule) pageContext.getApplicationModule (webBean) OAApplicationModule;
OAViewObject vo = (OAViewObject) am.findViewObject ("ProjectVO1");
Line OARow = (OARow) vo.first ();
The ID of the string = (String) row.getAttribute("ViewAttribute").toString ();then pass this id as the destination url as said above
Thank you
Gerard -
How can I get the string value displayed on a digital control defined for the relative time.
I have a digital potentiometer to display relative time in increments of 30 minutes.
I want to record the value displayed on the control string. Unfortunately, when I use the "convert to decimal string.vi" number, the resulting string is just the value in seconds.
How can I get the value as a string? (for example 01:30 for an hour and thirty minutes)
Thank you
Sean
Hi Sean.C!
M_Peeker's suggestion is a good thing. A stage that could clarify things is that you must set the % t <%H:%M> format string entry.
< br / > Kristen:.
-
How can I pass data between DIAdem and LabVIEW?
Hello community,
in fact I use a LabVIEW application to control a test system, collect data and store it in a file.
DIAdem is executed (using ITOCommand) and then create a report (PDF).
This works already.
But also, I would like to receive a return value of tiara, a real number, as for example the register R1.
No idea how can be achieved?
Thank you!
Espelkamper
Declare records, variables in the script of tiara that store the calculated result. Read records in labview
-
Hello
I need to install Adobe Acrobat Pro on a new computer laptop. I bought Version 9 in 2009. There is no download option more in my Center of Adobe. How can I do this?
Thank you, Silvia
No upgrade discount still applies. now only Acrobat 10 and 11 are eligible. Or consider subscription instead, strongly recommended because it includes future updates.
-
I can't launch the software, I just buy because it's for Windows. How can I make it so it will work on my Mac?
Info for PC vs Mac: https://forums.adobe.com/thread/1658959?sr=inbox&ru=3738552
-
How can I pass the data to the comment system...
With comments Win XP and linux with samba installed host I get the folder with the command
S:
name of the folder addr\Shred getwayWin 7 does not work with this command...
How can I do?
Thank you very much.
NET use s:
= Send 'Assignment' to 911 for only $999999,99! =
-
How can I pass/add these results in the column of the motion of my hand
Hello Experts
I'm working on a subquery. My subquery works very well and gives the results I need. But how do I pass/add these results in the column of the motion of my hand "MGRNAME". Here's my query
Select pc.c_id 'Project ID',
CN. C_ID 'Customer ID', cn.c_last "Last Name", "First Name", cn.c_first
PJ.mgr_id 'ID Manager', 'Project', MGRNAME pj.project_name
project_consultant PC
Join them consultant cn
on (pc.c_id = cn.c_id)
Join the pj project
on (pc.p_id = pj.p_id)
where lower (cn.c_last) = "myers.
and MGRNAME in
(select concat (substr (c_last, 1, 20),
substr (c_first, 1, 20))
as consultant MGRNAME
where c_id in (102, 103)
)
When I run the above query, I got error.
Many thanks in advanceSELECT pj.p_id "Project ID", cn.c_id "Client ID", cn.c_last "Last Name", cn.c_first "First Name", pj.mgr_id "Manager ID", pj.project_name "Project", SUBSTR (mgr.c_last, 1, 20) || ' ' || SUBSTR (mgr.c_first, 1, 20) AS mgrname FROM project_consultant pc, consultant cn, project pj, consultant mgr WHERE pc.c_id = cn.c_id AND pc.p_id = pj.p_id AND pj.mgr_id = mgr.c_id AND mgr.c_id IN (102, 103) AND LOWER (cn.c_last) = 'myers';
isotope
-
How can I add a slider in a mxml file?
I can't add a cursor to my .mxml file... When you use addChild() it seems do not work and try to add it manually to the mxml using the same method that say a button also does not work... any help?
Hey, robert,.
This thread can probably help you with that:
Good luck!
-
I want to use a drop-down list box (or a similar control) in a VI to select from a list of strings to direct execution in TestStand.
- How connect the channel selected in the combo box at the output of the VI Terminal so I can see it in TestStand?
- What should I use as 'value' in the parameter module TestStand to retrieve the result of that VI?
I tried "wiring" the result of the drop-down list box directly to a terminal of output without success.
I tried "wiring" the exit from the drop-down list box to a wire string variable then this variable to an output without success Terminal.
(see attached files)
Can someone give me an example of a VI that allows you to select from a list of strings: {'Bob', 'Mary', 'Bill', 'Jennifer',...} using a
(or similar) drop-down list box control and routing of the string selected to the output terminal?
Also, how to reference this (result) setting within TestStand?
It is a simple task and there can be only one solution TestStand, I'm looking for a simple direct execution sequence by the operator to select a string in a list.
I studied this problem, but could not find instances of the digital comparisons or string canned and did not find a generic model that would return a string to a VI to TestStand result.
Thank you for suffering through this fundamental question.
David
Melbourne, Florida
Marco beat me but here is my interpretation. TS 2010, LV 2011
Also, look at the example of demo which comes with TestStand: C:\Documents and Settings\All Users\Documents\National Instruments\TestStand 2010 SP1\Examples\Demo\LabVIEW\Computer Test of the motherboard
Demonstration should be a version of what you want.
See you soon,.
Maybe you are looking for
-
why I'm locked out of watching one of my screenshots?
I was taking screenshots for a test that I prepare and now I'm locked out of which they are considered. I get this message: the file 'Screen shot 2016-06-02 at 12.57.15 PM' could not be opened, because you don't have permission to view it. To chang
-
I get a pcl xl error message when we print our LaserJet Pro 400 Color MFP
When I scan or fax, we get: PCL XL Error Subsystem: TEXT Error: InternalError 0 x 50 File name: cheettext.c Line number: 710 The printer is a Pro 400 Color MFP LaserJet - m475dw Windows 7 Professional Service pack 1 What should I do to fix this?
-
OfficeJet 4620: No number of scan
My office is upgraded to this printer. My boss has the same printer. Its numbers of its analyses, one in our office does not work. Scans of numbering is what makes us buy this model. Can I change the settings to automatically number the scans?
-
Motorola Widget settings updated
I'm having a hard time to modify the Widgets Motorola once they are in place. For example, if I want to delete one number for a contact in the contact widget or update the syndicated news feed. I guess I'm missing something obvious and it's my first
-
Replace a XP computer with another XP computer in a peer-to-peer network with two other computers. became terribly frustrating. I spent a day and a half by train to get there. I know MS wants everyone to buy their new OS, but I can't afford it right