Adding variables to LoadVars
I have an application that reads a PHP script and populates
the Flash applets using the following on frame 1:
if (_root.c.n <= 0) {
c = new LoadVars();
c.onLoad = showContent;
c.sendAndLoad("varReturn.php",c,"post");
A combobox (created with the returned data) is created on
frame 61. When a selection is chosen in the combobox I need to add
the value returned from the combobox to the variable catvar, add
this variable to the LoadVars object and run the script again. It
seems to set c.catvar initially but when I use the 'sendAndLoad
command the second time c.catvar isn't included.
Is it possible to add variables to a LoadVars object created
on frame 1 from frame 61?
You are not using
LoadVars.sendAndLoad
properly.
You need TWO LoadVar variables. One for the sending and one
for the return values. You do not have an onLoad method attached to
the send LoadVars object but rather for the return LoadVars object.
Look at the example in help for
LoadVars.sendAndLoad
. It is a perfect model to do what you want to do.
Similar Messages
-
Syntax error when adding variables in recordset (query)
MySql,PHP,Dreamweaver,WindowsVista
Hi I am receiving a syntax error: invalid quantifier ++ $orderNum;s*?> when adding two variables in the recordset (query) dialog box. I get the error when clicking OK.
Here is what is entered:
name: fieldname
type: text
default: -1
runtime value: $_GET['Field']
name: searchvalue
type:text
default: -1
runtime value: $_GET['Search']
Can anyone help with this?That's a completely separate issue. The error message is telling you that you have not defined the testing server correctly in the Site Definition dialog box.
The Host directory field and URL prefix should both point to the same place, in other words, the root of your website. Host directory is the physical path, while URL prefix is the address you would put in a browser address bar.
Select Site > Manage Sites. Select the name of the site, and click the Edit button. In the Site Definition dialog box, select the Advanced tab, and then choose Testing server from the Category list on the left.
Depending on how your remote login works, Host directory should probably be public_html or just /. Use the same value as in the Remote server part of the Site Definition dialog box. The URL prefix should be http://gaylehansen.aisites.com/. -
Adding variables to match question slides
Hi All,
I am using Captivate 7 and need your help/idea/expertise on this. I am trying the following:
Adding a drag and drop slide wherein I should be able to drop the source to any target.
If the drop happens on the correct option (this is the challenge, how can I define the correct answer!), a message should flash saying "You are right"
If even a single drop goes wrong, then I the right answers should flash, (this I can create a new slide though)
But to set such conditions what should I exactly do? Please help.
Thanks,
RojaThe title of your question is bit confusing. Why should you have to add variables to match question slides?
The content of your question is totally different: each D&D slide can act as a question slide. It doesn't really have all the features of a question slide but most of them: Reporting, Score (only black/white, not partial score/penalty), Attempts, Actions On Success/Failure. When it is configured as a question its score will be reset when the user 'Retakes' a quiz with multiple attempts on quiz level etc. Progress quiz indicator will not be included however. And defining the correct answers is a breeze with the wizard or with the button Correct Answers.
The best part about D&D are IMO the 'Object actions': you can specify an advanced action for each drag&drop act and that is what you need. Do not use a simple action, because it will release the play head. That action can show a feedback text/object that was previously hidden, it can apply an effect to an object like flashing, etc. This blog post was written for CP8, but can help maybe:
Drag&Drop tips - Captivate blog -
Empty Dropdown after adding variable reference to
Hi ,
I am facing a problem while trying to convert the currency from the report result.After right click and select Gloal currency translation ,it is giving me an empty dropdown menu.
If I give a fixed date in the currency translation type in T- code RSCUR ,it works fine ,I get all the translation type I created in the dropdown menu.When I give a variable for time reference
dropdown menu is empty.have anyone faced this earlier?
we are on BI platform
Thx
sheebaHi,
First step is the check the data insde P table ( example /BIC/PXXX which will be there in the in master data and text tab)
if you find the data for newely added attributes then it works fine.
or else
Delete the master data
programs for individual IinfoObject master data deletion:
RSDMD_DEL_BACKGROUND or RSDMD_DEL_MASTER_DATA_TEXTS
then delete the transformation and recreate the transformation followed by DTP once again
activate all atributes individually once again
load data to the infoobject and check it.
you should be able to relove the problem
santosh -
Issues adding variable production cost
Hi
I am having issues to find the correct way to add production cost.
I know that basically a labour item that has cost in master data (Standard method) is added to the BOM and will then be added to the production order. However, this is a fixed cost, and even the same cost for every BOM/production oder.
How can I add variable cost to the production that i can easily change at the end of the production?
additional ...: I do receive invoices from external companies for the production/assembling - mostly some weeks after the production. Ho do i enter them into the system? Is there a way to link the received invoice to the cost of a production order?
Thanks for your help
FranzThanks for your answer!
Here's what I am going to do ... maybe someones interested in this too:
- Create an item with standard cost evaluation and a standard cost of 1$ (I plan to use this in BOM for production cost and purchase, mainly)
- Make this item a non-inventory, sales- and purchasing item
- Add a price to the price list (needed if used in sales and BOM sales calculations)
- Add the item, with a quantity relative to the production cost (external work) to be added, to the BOM / production order (i.e. 15.5)
- Use the item to issue a PO for this external work
- The production cost will be included in cost calaculation of item
- The invoice for the external work can be added to the system and the item does not have to be reevaluated
Franz -
Adding variable in Report painter
Hi Gurus,
I am creating a new report using Report painter. Though, it is working fine, I want to bring one of the field for selection. How to add variable ? I created a variable but I am trying to insert this variable in the report painter... I am unable to find any way.
Awaiting your help.
thanks in advance.Hi,
Go to Global Parameters Definitaion in report painter, variable will be used only along with the field, just in global paramerters enter your desired field and click in next column, system will show you a pop up select your variable for that field...
now its just done run the report and test it!
If you still not make it refer to standard report of such kind, you will surely get it....
Regards,
Sayujya -
Adding variable in onApplicationStart
Hi,
When we add a new variable in Application.cfc under the method onApplicationStart the variable doesn't seem to be visible until we restart the application. But as I am a beginner I am not sure what Restarting an Application means? Would restarting the Coldfusion Server from services.msc be enough?
Thanks
Adil ShoukatRestarting an Application is just restarting the website - yes restarting the entire service will work, but is complete overkill.
OnApplicationStart fires the first time your website is accessed in a specified period of time (set with this.ApplicationTimeout) - once that time has elapsed with no visitors, your onApplicationEnd() method fires and the application is removed from memory. The next time it's then accessed, onApplicationStart is called and the site is loaded back into memory.
You're not seeing onApplicationStart fire because you're developing the website, so it's not been idle. During development, I do something like this in your onRequestStart() method:
<cfif structKeyExists(url, 'restart') >
<cfset onApplicationStart() />
</cfif>
That way all I have to do is put ?restart at the end of any URL, and it'll restart the website. Much quicker and more efficient than restarting CF. -
Adding Variable inside Print Options Header in OBIEE Report
Hi All,
Can we add a variable or access via @1,@2 column convension in the Print Options - Header / Footer sections. I want the values to appear only when users click the print option.
Thanks,
SreekanthYes you can refer variables in the Header and Footers properties.
like for session , @{biServer.variables['NQ_SESSION.CURRENT_YEAR']}
Also have a look at : How to generate dynamic Headers In OBIEE Reports [ID 1162344.1]
HTH,
SVS -
Program Adding variable in query
Hi,
We have a new object which must be as variable in our queries (~100 queries).
I need to know if someone has already developp a programm to add automatically an infoobject as variable in queries.
I think that we should use Function module 'RSZ_X_COMPONENT_SET' but how do we fill correctly parameters?
Thanks & regardsDear Darius,
Instead of Variable why dont you restrict that Characteristic with ONE value ?
If it is variable > create that with processing tyep Customer exit and write the code.
Regards,
Ramkumar. -
Hi:
I'm trying to add three new attributes to my view which
will be variables and calculated so I wish to use sql derived variables however
when I create them they appear to be saved as transient variables ?????
Is there an option somewhere for me to choose sql derived?To make a transient View-attribute SQLDerived, set the "Selected in Query" checkbox on and enter a valid Query Column: Expression.
-
Hi all,
How to add variables in Scripts
example : &J_1IEXCHDR-EXBED(16.2R)& and &V2& in layout
Thanks in advanceare you getting from print program ?
if so add under text element
P1 &J_1IEXCHDR-EXBED(16.2R)& ,,&V2&
here p1 is the paragraph format maintain tab space
if you are getting from form routine then use below perform routine -
All,
Creating a variable for the restricted info object in the query is taken care by the security folks or developers?Hey,
For the created variable for characteristics in the query ,I have to secure the coressponding charatcteristics
value by creating analysis authorization object.I assigned 0tcavalid,0tcaiprov,0tcaactvt,0wbs_elemt (which
is my restricted info object )to the custom authorization(everything made active and auth.relevant).I am not
sure what type of values to enter in the each intervals for the characteristics and under 0tcaiprov what value
should I give?? -
Simple coding question: Adding variable to a string
I can't figure out what the syntax is for this in Actionscript. Basically, I have a variable I want to add into a string that will call a certain frame based on user's language selection. So...
var currentPage:int; <<this updates dynamically when nextPage, previousPage, etc are called
if (currentLanguage == "English") {
myMovie.gotoAndStop ("English%n", currentPage);
else if (currentLanguage == "Spanish") {
myMovie.gotoAndStop ("Spanish%n", currentPage);
Then each frame of myMovie will be named "English1" "Spanish1" "English2" "Spanish2" etc to correlate with page numbers.
Is this possible in Actionscript 3.0?
Thanks!sure. you can use a variable in place of the frame label and/or the scene name. from your code, you're using a variable in place of the scene name. that should work (if you're using scenes).
if you want to go to frame label english1, when currentPage is 1, you should use:
myMovie.gotoAndStop("english"+currentPage,possiblescenenamehere);
and because i don't think you're using scenes, just use:
myMovie.gotoAndStop("english"+currentPage);
or, even easier:
var currentPage:int; // defined somewhere;
var language:String; // defined somewhere;
myMovie.gotoAndStop(language+currentPage); -
this seems so simple and i've done this stuff before, but the
variable 'total' keeps returning $0.00. i'm sure it's something
stupid but i've been staring at the code so long i'm just going in
circles. can someone please take a look at this and let me know
what i need to do to make 'total' add up any items that have been
selected on a form (all form data is being sent properly into the
db, i've checked that).
thanks
<!--- TOTAL FORM VALUES --->
<cfif IsDefined("Form.Event1") IS "Registered">
<cfset Event1cost=125>
<cfelse>
<cfset Event1cost=0>
</cfif>
<cfif IsDefined("Form.Event2") IS "Registered">
<cfset Event2cost=90>
<cfelse>
<cfset Event2cost=0>
</cfif>
<cfif IsDefined("Form.Event10") IS "Registered">
<cfset Event10cost=15>
<cfelse>
<cfset Event10cost=0>
</cfif>
<cfif IsDefined("Form.Event11") IS "Registered">
<cfset Event11cost=40>
<cfelse>
<cfset Event11cost=0>
</cfif>
<cfif IsDefined("Form.Event12") IS "Registered">
<cfset Event12cost=5>
<cfelse>
<cfset Event12cost=0>
</cfif>
<cfif IsDefined("Form.Event14") IS "Registered">
<cfset Event14cost=25>
<cfelse>
<cfset Event14cost=0>
</cfif>
<cfif IsDefined("Form.cocktailparty") IS "Registered">
<cfset EventCPcost=20>
<cfelse>
<cfset EventCPcost=0>
</cfif>
<cfif IsDefined("Form.Event26") IS "Registered">
<cfset Event26cost=40>
<cfelse>
<cfset Event26cost=0>
</cfif>
<cfif IsDefined("Form.Event29") IS "Registered">
<cfset Event29cost=15>
<cfelse>
<cfset Event29cost=0>
</cfif>
<cfset
total=DollarFormat(Variables.Event1cost+Variables.Event2cost+Variables.Event10cost+Variab les.Event11cost+Variables.Event12cost+Variables.Event14cost+Variables.EventCPcost+Variable s.Event26cost+Variables.Event29cost)>
<!--- --->This will always return false
<cfif IsDefined("Form.Event1") IS "Registered">
You probably meant this
<cfif IsDefined("Form.Event1") and form.event1 IS
"Registered"> -
Adding Variables to ArrayCollection
I cant get the Varaibles into my addItem.
This works if I hardcode the qCUSN05:50
public function handleQueryResult2(event:ResultEvent):void{
myChart=event.result as ArrayCollection;
myChart.addItem({qBRAD53:"Competition", qCUSN05:50,
qCATG53:01});
But this does NOT:qCUSN05:sResult6
[Bindable]
public var sResult6:Object;
public function handleStringResult2(event:ResultEvent):void{
sResult6=50;
public function handleQueryResult2(event:ResultEvent):void{
myChart=event.result as ArrayCollection;
myChart.addItem({qBRAD53:"Competition", qCUSN05:sResult6,
qCATG53:01});
Any Thoughts? Thanks
GeorgeI think this is a timing issue. You are setting the variable
in a ResultEvent handler, and also using the variable in a
ResultEvent handler. Maybe the variable is not set yet. Uncomment
the line of the following code setting the variable in the other
ResultEvent handler and you will see.
<?xml version="1.0"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
creationComplete="init()">
<mx:Script>
<![CDATA[
import mx.controls.Alert;
import mx.rpc.http.HTTPService;
import mx.rpc.events.ResultEvent;
import mx.rpc.events.FaultEvent;
import mx.collections.ArrayCollection;
private var service:HTTPService;
[Bindable]
public var myChart:ArrayCollection = new ArrayCollection();
[Bindable]
public var sResult6:Object;
//This works if I hardcode the qCUSN05:50
public function handleQueryResult(event:ResultEvent):void{
myChart.addItem({qBRAD53:"Competition", qCUSN05:50,
qCATG53:01});
//But this does NOT:qCUSN05:sResult6. I cant get the
Varaibles into my addItem.
public function handleStringResult2(event:ResultEvent):void{
sResult6=50;
public function handleQueryResult2(event:ResultEvent):void{
// sResult6=50;
myChart.addItem({qBRAD53:"Competition", qCUSN05:sResult6,
qCATG53:01});
public function init():void {
myChart.addItem({qBRAD53:"Test1", qCUSN05:10, qCATG53:00});
// This function just serves to fire a ResultEvent object.
// We don't actually use the result.
public function useHttpService(parameters:Object):void {
service = new HTTPService();
service.url="
http://weblogs.macromedia.com/mchotin/index.xml";
service.addEventListener("result", handleQueryResult);
service.addEventListener("result", handleQueryResult2);
service.addEventListener("result", handleStringResult2);
service.addEventListener("fault", httpFault);
service.send();
public function httpFault(event:FaultEvent):void {
var faultstring:String = event.fault.faultString;
Alert.show(faultstring);
]]>
</mx:Script>
<mx:Button label="Use Service"
click="useHttpService('Greg')"/>
<mx:DataGrid dataProvider="{myChart}" width="100%"
height="50%"/>
<mx:TextArea id="txtArea" width="100%" height="50%"/>
</mx:Application>
Maybe you are looking for
-
My iPad doesn't ring when someone calls on face time. Any idea why?
I have two iPads... both are brand new. When I use face time to call from iPad "1" to iPad "2" everything works fine. When I call from iPad "2" to iPad "1" iPad "1" doesn't ring. The screen lights up with the 'accept call' or reject call buttons, and
-
Can't see video on Gallery Web
Have a iDisk for many years, can see streaming vidéo on my original web site but when i put the same video on my galerie web iphoto can see all there, i create a new album for my video on galerie web can't see it ? http://gallery.mac.com/escapademedi
-
Quicktime won't launch in Safari
Hi, I'm trying to stream a video from Safari through Quicktime on my iPhone but Quicktime doesn't launch. I get a big code of numbers/symbols/letters then the browser crashes. This has only started happening over the last few days, had no problems wi
-
Get the sy-uname from SAP system
dear all, i use the following codes to retrive the system username IWDClientUser wduser = WDClientUser.getCurrentUser(); IUser user=wduser.getSAPUser(); String username = user.getUniqueName(); i already add the required com.sap.security.api.
-
SAVE, Output type, Smartform, MESSAGING, SPOOL ??
Hi Experts, When I SAVE(cntrl+S) the Inbound delivery via VL31N, one ZIB output type going to SPOOL, say receiving report, a smartform. But, in one condition, I do NOT want to get the output & NO SPOOL. So, let meknow that, 1 - How to get it done, I