Sending a variable to a cfm file
I would like to send a variable from a Flash(Textfield) to a cfm (textfield). I use this in actionscript2 :
variables_mc.Nom = "Francois";
variables_mc.getURL ( "http://www.persomode.com/boutique/formulaire_perso.cfm?code_lg=lg_fr&num_formula ire=3", "_blank", "POST");
In the cfm i have this :
<input type="TEXT" name="Nom" id="Nom" value="" size="35"/>
I just want change the value= "Francois".
Example "Livedocs" in french: http://livedocs.adobe.com/flash/9.0_fr/main/wwhelp/wwhimpl/common/html/wwhelp.ht m?context=LiveDocs_Parts_bak&file=00001009.html
When I want to send the code, nothing happens.
What can I do?
Thanks
Okay no problem, I got it sorted! Not sure how exactly, I just seemed to start over again (with regards to the posting to a web page bit) and it fixed it.
Have a play with it and give some feedback: http://www.rightjustified.co.uk/flash/squares/
Similar Messages
-
AS3 send/import variables to/from php file
Hi
im new I would like to send some variables from ac3 to a
php-file. the
php-file have to copperate with this variable (send
querystring to
mysql-server).
ac3 have to read then new variables and traced it on the
screen.
i found some examples on the net but i have not undersood
any.
can you please explane that to me????
SebastianHi
im new I would like to send some variables from ac3 to a
php-file. the
php-file have to copperate with this variable (send
querystring to
mysql-server).
ac3 have to read then new variables and traced it on the
screen.
i found some examples on the net but i have not undersood
any.
can you please explane that to me????
Sebastian -
How do i send variables to a flash file using swfloader???
hey guys... so im trying to load a swf using the SWFLoader, and i need to some how send a variable to that swf, and in that swf i need to capture that variable if that makes any sence...
the swf is made in flash, and a function init is called everytime the swf loads...
in that init function in the flash actionscript i need to capture the variable i send from flash builder....
so far i have the following code...
in this code i have no idea on how to send variables to my swf
var swfLdr:SWFLoader = new SWFLoader();
swfLdr.horizontalCenter = 0;
swfLdr.verticalCenter = 0;
swfLdr.source = "http://test-broadcast.apxinsider.com/Content/swf/office_weekly_UF.swf";
swfLdr.addEventListener(Event.INIT, swfLoaded);
swfLdr.load();
now i was htining i could do somehting like office_weekly_UF.swf?id=1304 or somehting... but if i do that, how do i capture this in my swf???
any thing would help! thank you so much!Hi,
I'll put up what i think is the answer. Do tell me if this is what you are looking for. When I created the swf in Flash Pro.This is the code I used
var keyStr:String;
var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters;
for (keyStr in paramObj) {
urlText.text = String(paramObj[keyStr]);
urlText is a text box whose content text is passed as a URL parameter. The parameters can be retrieved from paramObj. Is that what you meant by capturing the variables?
Then on the flex side, this is the code i used to display from SWFloader
import mx.controls.SWFLoader;
private var swfLdr:SWFLoader;
private function startSWF():void
swfLdr = new SWFLoader();
swfLdr.horizontalCenter = 0;
swfLdr.verticalCenter = 0;
swfLdr.source = "MySWF.swf?urlText=verbose";
addElement(swfLdr);
I hope this helps.
Nishad -
How to define and populate value to a variable in a text file
hi all,
i have a text file on unix server, when i read it through open dataset, is it possible to populate dynamic value to a variable in the text file. and is it possible to define a variable at any place in the text file?
after this the program will send the internal table for emailing.
thanks.Hi, If this file on server is a email template you can put some tags / marks and you can change it after you read it with OPEN DATASET / READ...
Sample:
OPEN DATASET p_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.
CHECK sy-subrc EQ 0.
DO.
READ DATASET p_file INTO lv_string.
IF sy-subrc EQ 0.
EXIT.
ENDIF.
REPLACE ALL OCCURENCES OF '((SYSTEM_ID))' WITH sy-sysid.
APPEND input_file_tab.
ENDDO.
CLOSE DATASET p_file.
on file there's a line with:
This email was generated on server ((SYSTEM_ID))
It will be translated to (sy-sysid = DEV):
This email was generated on server DEV
This is a "variable" like that you can use. -
Sender_interface_name in Variable Substitution in Receiver File Adapter CC
Hi,
as per this page : http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/frameset.htm
it says:
Variable Substitution (Target Directory/File Name Scheme)
If you set the Enable indicator, you can enter variables for the Target Directory and File Name Scheme. Enter the names of the variables and references in the table.
● Enter each variable that you reference in the Target Directory and File Name Scheme fields without the surrounding percentage sign under Name of Variables in the table.
The variables can refer to attributes of the message header or elements of the message payload.
○ If the variables are to refer to an attribute of the message header, add the prefix message: to the name of the variable under Reference. You can specify the following attributes of the message header:
sender_party, sender_service, receiver_party, receiver_service, interface_name, interface_namespace, message_id, message_id_hex
Can we not access sender_interface_name and sender_interface_namespace are not mentioned in above list of variables.
Is it not possible to access sender_interface_name or sender_interface_namespace as variable substitute parameters from within Receiver File Adapter Communication channel.
thanks.>Shabarish Vijayakumar wrote:
>>the sender interface details will always remain a constant
>>so you can hard code the value, isnt it?
Yes, i can hardcode, thats not a bad idea, i need to create then 3 different Reciever File Communication Channel objects, as I am dealing with 3 scenarios for which sender system and sender interface is different.
>Shabarish Vijayakumar wrote:
>>if you look at the mapping runtime constants, those are also for the receiver since the sender interface will always remain constant for any particular CC.
>>http://help.sap.com/saphelp_nw04/helpdata/en/b3/9a2aeb24dc4ab6b1855c99157529e4/content.htm
yes in this link you provided i can see..
INTERFACE Interface
INTERFACE_NAMESPACE InterfaceNamespace
SENDER_SERVICE SenderService
RECEIVER_SERVICE ReceiverService
RECEIVER_NAME ReceiverName
RECEIVER_NAMESPACE ReceiverNamespace
it seems both INTERFACE (,INTERFACE_NAMESPACE) and RECEIVER_NAME(,RECEIVER_NAMESPACE) are present, may be one is for sender, and another is for receiver.. may be if i use dynamic configuration, possibly my issue would be addressed.. correct me if i am wrong.
thanks. -
FILE SENDER ADAPTER - TO GET A DINAMIC FILE NAME IN THE DIRECTORY
Hi,
Please help me.
I have to read by a file sender adapter a specific file in the directory that its name is Dyyyymmdd, where yyyymmdd is variable according with the current day:
D - fixed letter
yymmdd - year,month and day of the current day.
I cant´t use D* in the File Name Scheme because I must read only the one file generated in the day.
How can I configure my file sender adapter to read this especific file in the directory?
Thanks in advance.
Mider.Hi Krishna,
I must access only one file by time ( of the current day ), but in the directory I have a lot of them of different dates. I mean, in the of the read ( in the adapter configuration ) , I need to configure the name of the file Dyyyymmdd before of the reading in the directory, in other words, I need to construct the name of file (withe the current date) before the communication channel access the file to read it.
I think that OS command just can be applicated in file receivers, but if possible, at your purpose, how can I access the name of this especific file via OS command for senders?
Thanks,
Mider.
Message was edited by: Midervilson Andrade
Message was edited by: Midervilson Andrade -
Get file name/path of current .cfm file...
i am going to make a "tracking" script for a website. my idea is to add a <CFINCLUDE> to every .cfm file on the server (right at the end, so it would be easier to remove when im done), and have the script that is included add a record to a database that contains the file name/path of the .cfm file. for example, index.cfm will include trackscript.cfm, and after the index.cfm is processed, a database will have a record in it containing the file name/path for index.cfm.
i am new to coldfusion, but i think i have everything figured out, except how to get the name of the file that will be added to the database. is there some kind of function or variable available that will give me the filename of the currently executing .cfm file?I don't think sticking a <cfinclude> call into every file is really a very good way of doing this.
You should have a look at using onRequestEnd() for this sort of thing.
There are various variables in the CGI scope which one can use to build the originating URL of the current request; CGI.script_name and CGI.query_string are probably the most helpful here. One can resolve the underlying file system path form a URL using expandPath().
Adam -
Application Variables in application.cfm and asp
If anyone could provide some insight into using application
variables declared in application.cfm, but retrieved in asp code,
it would be appreciated.
GOAL: Retrieve values into an asp page from application
variables in application.cfm.
PROCESS: Defined the variables in application.cfm. On an asp
page, defined the application variable in Window -> Bindings.
The application variables defined in the source code show up.
Attempt to retrieve the application variable in the asp page by
using the command: var_destination = Application("var_name")
It seems like whatever I try, the variable is empty. After
looking around on the web, I also saw that the equivalent to
application.cfm in asp is global.asa. I also tried setting up this
file, along with the variables, did the binding, and used the same
commands, and also was not able to retrieve any application
variables.
What am I missing?What am I missing?
That ColdFusion and ASP.NET are different applications and do
not share
the same memory addresses So they are going to each have
their one
"application" variables.
Blue Dragon has implemented CFML as an ASP.NET language so
that one
could write ColdFusion that runs on the ASP.NET framework and
would then
use the same memory locations with their server.
Otherwise you are going to have to write your own sharing
tool. Some
code that can read the desired variables from one code base
and pass it
to the other code base through forms, web services or some
other manner. -
CF10 on JBoss7 going though IIS7, CF can't find cfm file in the website root.
Our currently environment is CF8 running using JRun4 (via the wsconfig tool ) with IIS 6.0 has the webserver. We are trying to migrate our environment to CF10 using JBoss7 as the processing engine with IIS7 as the webserver.
We have managed to configure the ISAPI Connector so that IIS sends .cfm, requests to JBoss7
The issue we are running into is that when calling a .cfm file ISAPI Connector, ColdFusion cannot fine the file inside the IIS website root. Yet if the cfm. file resides in the cfusion.war root, then ColdFusion finds the file and processes it.HI! I'm using jdk1.3 on WINDOWS 98. I'v made two
classes in same package.Compiling of first class was
ok but when i tried to compile second class (which
uses first class) I get the message: can not resolve
symbol: (name of first class). I'v tried to put these
classes in same folder but it still doesn't work.I'v
tried with javac -classpath. but i get the same
message. Please help!!!!!!!!!!!You might need to post your directory structure. Let's say you have "package mypackage;" as the first line in both files. Let's call the files ClassA and ClassB. Then you need a directory named mypackage. Put the successfully-compiled class ClassA file into it, or put both .java files into it.
Now the compiler needs to be able to find the .class file or at least be able to find the .java file. To find a dependent class, the compiler looks through the directories in the Classpath for the fully qualified class name. Fully qualified means package name plus class name. In my example, if compiling ClassB requires ClassA, the compiler looks for mypackage.ClassA. So if the mypackage directory is in c:\myjava (meaning the file path to ClassA is c:\myjava\mypackage\ClassA), then c:\myjava must be 'in' your Classpath.
If you do not have a Classpath set on your system, the default is the current directory. So you could "cd c:\myjava" then "javac mypackage\ClassB.java" If you do have a Classpath, then you could add c:\myjava to your Classpath. Another option is "javac -classpath c:\mypackage ClassB.java" -
Duplicating and editing .cfm files programmatically
hey there,
is it possible to copy .cfm files and edit their content at
the same time? like say updating an embedded query or changing
headlines?could you point me a in a direction?
One possible way, in very general language:
Assuming you want to do this programmatically. Your would
code a file
read which puts the content into some type of string
variable. You
would then code searches and string manipulations to modify
the text as
desired. You would then write the file with the updated
content.
In order to get more specific suggestions and help. Let us
know what
you are actually trying to do, and what tools with which you
would like
to do it. -
My Application.cfm File creating trouble?
I am creating a AForums username/pasword from the admin
panel, and when i try to login into the forums through the main
admin panel it sets the sessions up aas i have dumped into ans seen
their value. The I am redirecting the page the home page like
www.website.com/forums/admin/home.cfm
but i dumped over there and sessions get lossed. i have not
included any application.cfm differenly in the forums, all my
website uses only 1 cfm file and in this applciation file.
i have did the dfault sessting for the forum as
session.forums eq false, and when i login, it just goes true.
When i locate from admin page to forums admin page, the
sessions get lost.
HAs there any workaround for this. i am trying for the last
couple of hours but did not find anything specific to this.Your "scriptprotect" parameter value in your cfapplication
should be "none", "all", or a comma-delimited list of variable
scopes(CGI,FORM,URL, etc.) in CF. You might want to check on that
value.
Anyway, where do you put your application.cfm in relation to
your directories "main admin" and "forum admin"? can you show us
maybe a little info in your directory structure?
I'll give you an example(directory structure) where a session
variable(which is enabled in application.cfm) is not recognized in
another page:
appRootDir\someDir\admin_panel\home.cfm -> for your main
admin panel
appRootDir\someDir\application.cfm -> for your
application.cfm
appRootDir\forum\forum_admin\home.cfm -> for your forum
admin home
In the above structure, only
"appRootDir\someDir\admin_panel\home.cfm" can access the
application.cfm since your main admin panel and application.cfm are
both under the directory "appRootDir\someDir\".
Another structure similar above will be like this:
appRootDir\someDir\admin_panel\home.cfm -> for your main
admin panel
appRootDir\forum\application.cfm -> for your
application.cfm
appRootDir\forum\forum_admin\home.cfm -> for your forum
admin home
In the above structure, only
"appRootDir\forum\forum_admin\home.cfm" can access the
application.cfm since your forum admin and application.cfm are both
under the directory "appRootDir\forum\".
To make both directories access the same application.cfm, you
should have a similar directory structure below which both
directories can access application.cfm from it's current directory
as below:
appRootDir\someDir\admin_panel\home.cfm -> for your main
admin panel
appRootDir\application.cfm -> for your application.cfm
appRootDir\forum\forum_admin\home.cfm -> for your forum
admin home
For the above structure, both main admin panel and forum
admin can see/access your application.cfm since the application.cfm
is accessible in "appRootDir\".
Maybe your directory structure is already similar to this but
you might want to check it again. Also, are there any clearing of
session variables in any of your files? -
Swf over lan sending a variable
Does anyone know how to send a variable trough LAN from a
master swf to all the other SWF files? And when the child swf's get
the variable to load a movie clip (the movie clip has the name of
the content of the variable) in the main scene? PLS HelpBroadcast/Multi-cast packets and often blocked by default but routers. i.e. you will see them if you are on the same router but no where else.
This is to prevent such packets flooding the whole network. (Although there are better ways to deal with this, this is the simplest approach)
You need to ensure that all the routers between your two systems allow forwarding of UDP packets. -
Send/receive variables online
I want to make a connection between two SWF through internet.
I want to some how connect these SWFs so I can send\receive
variables.
for example i want to build a messenger and i want to
send\receive strings from one SWF to each other
PLEASE help meI know how to send variables for the serverside but I don't
know how to send variables from server side for the SWF!
currently I'm sending variables form one SWF for a .php file
on the server and the php saves that variable in a .txt file and
the other SWF every 5 seconds requests for the variables and the
php cheks the .txt file if there were any thing it would send them
for it (I'm using LoadVariables() command)
but I dont want to chek that every 5 seconds, I and I don't
want to use that .txt file
its so much better to send the variables directly between
SWFs -
ODI variable refresh from a file
In one of the the threads in the past I read some tips about how to refresh a variable from a flat file. I have some information in a flatfile which I need as a variable.
Now I am reading the flat file into a SQL table and then refreshing it into the variable. I guess we can do this in one step. I am sure I read blog something about it. If anyone aware of the thread can you send the link.
Thankshttp://odiexperts.com/?p=243
http://odiexperts.com/?p=243 -
Variable subsitution for target file names
Hi All,
I am using variable subsitution for dynamic file names. I am using the multimapping for multiple files in the target.So i coluld not able to use the dynamic configuration for file names. Now i want to replace all the spaces in the filename to underscore.
For example
My payload filed value "file name in the target file".
Now my filename "file_name_in_the_target_file".
How to achieve this using Variable subsitution.
Regards,
Ramalakshmi.GUse replaceString Function.
file name
Constant (" ") --> replaceString -------> TargetField
Constant ("_")
Regards
Ramesh
Maybe you are looking for
-
Hi All, I am a java developer new to SAP and IPC CRM pricing, the below subtotal routine is already implemented in ECC,we need to implement the same in CRM. FORM FRM_KONDI_WERT_906. *{ INSERT SE1K900344
-
Networking issues with Windows SBS Server 2003
I have 3 G5 running on a recently installed 10.4.8, they were all previously running 10.3.9. They all connect to a network drive with folders that have color labels on them (only 2 blue and green). In 10.3.9 the labels were fine, now when the machine
-
Firefox 3.0.1 will not launch without crashing immediately in 10.5.6
trying to help a friend ibook newly upgraded to 10.5.6 and Firefox will not launch. it crashes within seconds of launching every single time. I have trashed everything Firefox and Mozilla I can find in the HD-Library-(caches, preferences, app support
-
Having upgraded to ios5 my iPhone 4 doesn't. Seem to work with my pure i20 iPod dock . Any advice please.
-
Install Snow Leopard on MacBook Air
Does anyone know if there are any complications upgrading to Snow Leopard on a MacBook Air via the remote disk facility?