How do you pass "struct" in an AJAX call URL? (CF11)
Quote from CF11 documentation: "Note that "struct" is also available to be accessible through an AJAX argument. Now you can pass struct in an AJAX URL to serialize a query object as struct."
How? An example URL would be handy.
"To serialize a query object as struct" overstates the case. You can serialize a struct, as well as a query, for sending by means of URL.
For example, create the following 2 CFM pages in the same directory.
testpage1.cfm
<cfdump var="#url#">
testpage2.cfm
<cfset myStruct = structnew()>
<cfset myStruct.myFirstKey = "uno">
<cfset myStruct.mySecondKey = 2>
<cfset myStructSerialized = serializeJSON(myStruct)>
<!--- Uses built-in cfdocexamples datasource --->
<cfquery name = "getBiololgyCourses" dataSource = "cfdocexamples">
SELECT Course_ID, Dept_ID, CorNumber,
CorName, CorLevel
FROM CourseList
WHERE Dept_ID = 'BIOL'
ORDER by CorNumber asc
</cfquery>
<cfset biologyCoursesSerialized = serializeJSON(getBiololgyCourses)>
<cflocation url="testpage1.cfm?myVar=#myStructSerialized#&biologyCourses=#biologyCoursesSerialized#">
Similar Messages
-
How do you pass XML as a URL param?
How do you pass XML as a URL param?
Thanks!I don't know why I wasn't thinking about this when I made my
last post. If they're pasting some XML into a form, that's one
thing. But if they need to send XML to your site from their own,
you can setup a Coldfusion Component (CFC) as a Web Service to
accept XML through a WSDL call.
Check out the
Coldfusion
Developers Center for
articles
on creating web services -
How do you pass shell scripts with cocoa?
How do you pass shell scripts with cocoa?
You asked for more detail -- I don't know if this is what you were referring to or not, but here's a little more detail on how to use the system() function if that's what you wanted to know.
As etresoft mentioned, the system() function can be useful for the kind of thing you are talking about. You will need to write the following statement at the top of your code if you want to use it:
#include <stdlib.h>
To use the system() function, simply put the command as you would write it in the Terminal between double quotes between the parenthesis. For example, something as simple as:
system("ls");
I don't what the practical use of the above statement would be, but it will run, and that's the general format for the system() function. So just put between the quotes whatever command you want to send.
Hope there was something helpful here. -
(264361962) Q ADVC-27 How do you pass the security info to access the EJB?
Q<ADVC-27> How do you pass the security info to access the EJB?
A<ADVC-27> Authentication for web service users must occur at the web layer. This
means providing appropriate web resource definitions and restrictions in the web.xml
file for your project. The most common and useful form of security for application
interaction is via client-side certificates. Then the client identity is transmitted
to the EJB is the same way as in regular J2EE environments. There is a complete description
on security on e-docs:
http://edocs.bea.com/workshop/docs70/help/guide/security/ovwSecurity.html
AdamYou need to ask Apple to reset your security questions. To do this, click here and pick a method; if that page doesn't list one for your country or you're unable to call, fill out and submit this form.
(119093) -
How do you change the font color in CALL-OUT text boxes in PRO XI?
How do you change the font color in CALL-OUT text boxes in PRO XI?
It's not so simple to find it if you don't know what you're looking for... But it can be found via View - Show/Hide - Toolbar Items - Properties Bar.
-
How do you pass an ActiveX Variant from an external application to LabVIEW?
Background: I created a LabVIEW ActiveX server. I can access it with my external application (Matlab). I have a control variable in my LabVIEW executable. I want to use Active X to set the value of my control variable from my external application.
Documentation: The only reference in the documentation for this task is in the Using ActiveX with LabVIEW in the LabVIEW 2009 help. It simply says "Use the variant control and indicator to pass data to or from ActiveX controls." I also went through all the ActiveX examples in the example finder and did not find any vis that passed variables using ActiveX.
Questions:
What should my control variable look like in LabVIEW? Should it be a refnum, a variant, or a data type? Does it have to be wired to a vi connector?
Do I need to do any magic on this variable, such as change its properties?
How do I pass the value from my external application to the variable in my LabVIEW executable?
Thank you.Hello Lyn,
The control variable should be a refnum and it would have to be wired to Automation Open with the correct reference.
Here are some great examples of using ActiveX Server in LabVIEW
LabVIEW Executable Used as ActiveX Server in LabVIEW
http://decibel.ni.com/content/docs/DOC-9647
Calling ActiveX Code from LabVIEW
http://decibel.ni.com/content/docs/DOC-9073
Andy Chang
National Instruments
LabVIEW Control Design and Simulation -
How would you pass more than 255 args?
I have an SFTP program that currently is only passed a single file. I am modifying it so that it will loop though an array of files to simulate an mput command. Originally I was just going to call the program with each file to be transferred as an argument but noticed the 255 argument limit. I am looking at potentially having 1500 - 2000 files to transfer at one time. I am just looking for advice on how this should be designed. One idea that was forwarded to me was to just create a listing of the files on the server and use that list file as my argument. Would this be the best approach for this issue?
sdhalepaska wrote:
georgemc wrote:
sdhalepaska wrote:
georgemc wrote:
sdhalepaska wrote:
georgemc wrote:
I see no reason why you need an argument for every file.I would not necessarily need one for every file. Prior to our needing to use this for multiple files, it was easy enough to pass in one file as an argument. That is my question, how would you try to pass in a long list of files?Let's establish what you are concerned about. The 255 argument limit is on method signatures. From what you're saying here, you're talking about arguments being passed into your application from, say, the shell. Am I right?Correct, please see my clarified post. From what I have tested, the 255 argument limit appears to exist even for arguments passed to main.Ah, but arguments passed to main from the command line are passed into main as a single array of Strings, no matter how many of them there are. I have no idea what the limit on those is, but an array can hold millions of elements. I expect your shell will moan about that many, though.
As I see it, you have a few choices. Unless these files are all in different, arbitrary directories, you can specify a list of directories for your app to search. Or you can pass them all in one at a time, and see how you go. Or you can list them in a text file, pass that to your app and have it work them out. Or write a script that invokes your app multiple times. What you don't need, is a method that takes each file as an argument.Thank you for walking me through this. Would you mind telling me which way you would lean if you were designing this? The files will all be in a single directory on the server and I would not like to invoke the app multiple times as it creates a connection during each invocation. They're all in the single directory. Ok, are all the files in that directory to be transferred? If so, I'd just pass the directory name to the app, and have it iterate over all the files. If it's only to be certain ones, how do you know which ones? Is there some regex or filtering you can do on the command line?
If you are interested, the 255 argument limit for main that I tested was from this article:
[http://www.javaspecialists.eu/archive/Issue059.html|http://www.javaspecialists.eu/archive/Issue059.html]
It does die at 255 using Java 1.5.Like I said, arguments to a method are thus limited. But the args passed to an app are passed to main as one argument - an array. In short, that article is not relevant to your problem. -
JavaScript: How do you pass the currently active doc to a dialog in a menu item?
I'm using Adobe Acrobat 11.0 Standard on Windows 7, and I'm having trouble with the menu item that I'm creating. The menu item calls a dialog that prompts the user to select a page in the currently active document. The problem is, I can't figure out how to pass the currently active document to the dialog. I scoured the rest of the documentation, did searches on Google and here in the Adobe forums, but haven't turned anything up. The AcroJS API gives the following solution (found under app/methods/execDialog):
This function attaches the Doc object to the dialog box, then passes the dialog box to the app.execDialog method. The dialog4 object and this function can be at the document level.
function dotheDialog(dialog,doc)
dialog.doc = doc;
var retn = app.execDialog( dialog )
Finally, the following script can be executed from a mouse-up action, for example.
dotheDialog( dialog4, this );
I did this exact thing, but in the dialog, the value of this.numPages still comes out as undefined, indicating that the current document still hasn't been passed. My own code looks like this:
function dotheDialog(dialog, thisDoc){
dialog.doc = thisDoc;
var retn = app.execDialog(dialog);
app.addMenuItem({
cName: "Test Dialogue Box",
cParent: "Edit",
cExec: "dotheDialog(templateDialogue, this);"
where templateDialogue is the name of my own dialog, rather than dialog4. I'm not sure what the retn variable that they declare in the documentation is for, but I've tried it with and without that part, and it doesn't seem to make a difference. Does anyone know how to do this?Sorry, here it is. It's also just a small modification of something directly from the API, which is why it still has the date bit in it.
var templateDialogue = {
initialize: function (dialog) {
// Create a static text containing the current date.
var todayDate = dialog.store()["date"];
todayDate = "Date: " + util.printd("mmmm dd, yyyy", new Date());
dialog.load({ "date": todayDate });
commit:function (dialog) { // called when OK pressed
var results = dialog.store();
var inBounds = (parseInt(results["tPag"]) < this.numPages);
if(!inBounds){
app.alert({
cMsg: "Please enter a valid number for the page from which to make the template." +
"\n" + parseInt(results['tPag']) + " = parseInt(results['tPag']) !< this.numPages = " + // I put this in to see the value of this.numPages,
this.numPages, // and it continues to be undefined.
cTitle: "Page out of Bounds",
nIcon: 0, nType: 0
}else{
var nButton = app.alert({
cMsg: "Your template is named " + results["tNam"] + " and is made from page " + results["tPag"],
cTitle: "javascript",
nIcon: 3, cType: 0
description: {
name: "Personal Data", // Dialog box title
align_children: "align_left",
width: 350,
height: 200,
elements:
type: "cluster",
name: "Add a page to this documents templates.",
align_children: "align_left",
elements:
type: "view",
align_children: "align_row",
elements:
type: "static_text",
name: "Template Name: "
item_id: "tNam",
type: "edit_text",
alignment: "align_fill",
width: 300,
height: 20
type: "view",
align_children: "align_row",
elements:
type: "static_text",
name: "Generating Page: "
item_id: "tPag",
type: "edit_text",
alignment: "align_fill",
width: 300,
height: 20
type: "static_text",
name: "Date: ",
char_width: 25,
item_id: "date"
alignment: "align_right",
type: "ok_cancel",
ok_name: "Ok",
cancel_name: "Cancel"
Side Question: Out of curiosity, how would you abort if the user clicks cancel? I get the feeling that they don't cover it because it's something you're supposed to already know how to do, but...I don't. Would you just put whatever action you want to take into an if ( button == "Ok" ) type statement so that cancel does nothing? -
How do you pass a string into xml
How do we pass a string to be parsed as xml
something like
DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
oc = docBuilder.parse (String s);
Thanks
ArnoldString xmlString = "<?xml version=\"1.0\"?>\n<myelement myattribute=\"myvalue\"/>\n";
InputSource inputSource = new InputSource(new StringReader(xmlString));
Document document = builder.parse(inputSource); -
How do you override global variable values when calling oraxsl or xsl.exe?
I am a newbie to oracle xslt.
I have down loaded the latest version of xdk (10.1.0.2...). (Jan 2, 2009).
In the past I haveI used micorsoft's "msxsl.exe" to perform my transformations.
I am looking for a more up-to-date transformation tool.
I found Oracle's version, and thought I would try it out.
I have run the "bin/xsl.exe -hh" command.
I read its help data. It states that variables are
passed by coding a pramater "-V <var> <value>".
I have also examined the oraxls.bat file.
I found the documentation on "oracle.xml.parser.v2.oraxsl" class.
It states that parameters are passed after the "-p" switch.
It says the value of the -p parameter is "a list of paramemters".
I don't find this sufficient information to be useful.
I can spend days guessing, and I might get lucky.
I thought it my be better to ask for help.
I need to pass in (override) values for 3 global variables.
I saw the method
"setParam(namespace, variable, value)",
near the documentation for the "oraxsl" class.
How do you format the options string to communicate more than one param statement?
(in either xsl.exe and/or oraxsl class).
Suppose I have an xslt stylesheet as follows:
==================================================
<?xml version="1.0" ?>
<xsl:stylesheet version="1.1" xmlns:xsl='http://www.w3.org/1999/XSL/Transform' >
<xsl:param name='a' select='"default_a"' />
<xsl:param name='b' select='"default_b"' />
<xsl:param name='c' select="'default_c"' />
<xsl:template match='/'>
this is value for a: <xsl:value-of select='$a' />
this is value for b: <xsl:value-of select='$b' />
this is value for c: <xsl:value-of select=$c' />
<xsl:apply-templates />
</xsl:template>
</xsl:stylesheet>
========================================================
Now as part of the calling of the XSL processor I want to change the value of these
three global parameters.
I want:
a="current_a",
b="current_b",
and c="current_c"
How do I express this using xsl.exe and its paramter string (-V ????).
and/or how do I express it to the oraxsl class ( -p (xsl, a,"current_a"), (....) )???
The syntax for specifying this information is not very clear in either situation.
Of course I am making the "assumption" that by "param" they are
refering to "global parameters" (as in my stylesheet), rather than some other global parameters of XLST.
As an aside inquiry:
I had hopped that the Oracle's xsl Verion 2 routine could handle xslt 2.0 commands
such as "xsl:for-each-group", since it handled multiple xsl:outputs.
From reading some of the documentation it seems it only handles xslt 1.0 syntax/commands.
Is this true? (or is the documentation not up-to-date?).
Any help on passing param values to xsl.exe and/or "oraxsl" class is appreciated.
Thanks.Here is the line from one of my testing .bat files that passed in one parameter. I can't recall if I've passed in two, but this will give you a starting point for passing in multiple
java -cp %CPath% oracle.xml.parser.v2.oraxsl -p show_image='yes' %ValXML% %ValXSLT% As for XSLT 2.0 support, it appears it does per {thread:id=503445} -
How do you know or find out what the URL is on a calender published on .mac
I want to publish or subscribe several different calenders....how do you know or where do you find the url when you go to subscibe?
thanks
ronForgot Your Account Password
For Lion, Mountain Lion, or Mavericks
Boot to the Recovery HD:
Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
When the menubar appears select Terminal from the Utilities menu.
Enter resetpassword at the prompt and press RETURN. Follow
instructions in the dialog window that will appear.
Or see:
Reset a Mac OS X 10.7 Lion Password
OS X Mountain Lion- Reset a login password,
OS X Mavericks- Solve password problems,
OS X Lion- Apple ID can be used to reset your user account password.
For Snow Leopard and earlier with installer DVD
Mac OS X 10.6- If you forget your administrator password,
OS X- Changing or resetting an account password (Snow Leopard and earlier).
For Snow Leopard and earlier without installer DVD
How to reset your Mac OS X password without an installer disc | MacYourself
Reset OS X Password Without an OS X CD — Tech News and Analysis
How To Create A New Administrator Account - Hack Mac -
How to send other parateters with the ajax call for rich:suggestion ...
Hi
For the component <rich:suggestion ...>
How I can send parameters (besides what user fills in a field ) for the method
public List fetchAjaxList(Object event) wich is called when the user changes the content of the input field.
Put it in another way, I need values for two drop down lists that the user selects on the same page, this is because the returned list of the Ajax call DOES NOT depened only on the value of the input text field.
ThanksSorry, we are not writing AJAX like code. In conjunction with drop downs we are using the command "Autosubmit On Change" in the Design View of a NetBeans Visual JSF project. Than the IDE generates code like
onChange="common_timeoutSubmitForm(this.form, 'tabSetAngebotsauswahl:tabAngebotsauswahl:layoutPanelAngebotsauswahl:gridPanelAngebotsauswahl:dropDownAuftraggeber');" in the JSP. The whole page will be refreshed by a normal form submit than. -
I am working on a book and how do you add text to a theme called "Travel?"
I am working on a book in iPhoto and there's a theme called "Travel." How do you add a text? I REALLY need help!
Not really possible in general
a book is simply entries in the iPhoto database and to transfer it you must transfer the entire iPhoto database
You could preview it and send the resulting PDF but typically that is VERY large
Before ordering your book preview it using this method - http://support.apple.com/kb/HT1040 - and save the resulting PDF for reference - the delivered book will match it.
LN -
How do you get points on skype to call someone?
How do you earn points to call someone on Skype?>
You can get points by answering other community member's questions. You can receive reputation points when another community member marks you response as:
helpful - 5 reputation points
answers the members question - 10 reputation point
There is also certain perks based on how many points you have
Level Points Privilege
1 0
2 150 Report posts
3 500 Upload a custom avatar
4 1,000 Attend conference calls
5 4,000 Create User Tips
6 8,000 Access the virtual MVP lounge. Attend in-person Communities meet ups.
7 20,000
8 35,000
9 50,000
10 80,000+ -
How do you pass the data from a SBO process to a crystal report laout
Hi Everyone
Can someone please assist or direct me to documentation that could be of help.
I do production orders in SBO.
I have a crystal report that I have imported as a layout to print these production orders.
The report was developed the normal way, linking to the tables and returning data(all data for all production orders ever done)
The production print option is set to make use of this layout.
What I would like to see is that when I create production order 12345 and click on print preview I get the data of the mentioned order only displayed in my crystal layout(that is set to default)
What I get however is all the data from the tables.
Where am I going wrong. With my design already or is there a different way to pass the data to my report/layout direct from my SBO production order screen
This is quite urgen
Regards
BurgerHi All
The solution i was looking for is:
In Crystal create the parameter called DocKey@
This is recognized by sap and the active document number is passed to the report layout.
In crystal itself also do a filter {<Table>.<Column Name>} = {?DocKey}
So simple once you know how.
Hope this help someone else that is as stuck as I was.
Regards
Burger
Maybe you are looking for
-
My iPhoto will not open. Please Help.
My iPhoto will not open. I try and open the application but nothing happens. The icon appears in the dock, but it isn't open. An error message does not appear either. When I try and click on an option in the toolbar everything becomes greyed out.
-
Hi, We currently have a payslip report that has been developed using Oracle reports, but for this to run we have to change our NLS_LANG setting from UTF8 to WE8ISO8859P1. The problem with this is to apply patches Oracle have told us we need to have t
-
Once and for all: Hyper-threading, turbo boost on Core i5 MBA?
Hey, all. There is a lot of conflicting information on whether the new Core i5 MacBook Airs (as opposed to the upgraded Core i7 options) support hyper-threading. As best I can gather, there is still no "official" Apple statement on the subject. I tho
-
Windows 8.1 and Illustrator CC 2014- performance computer
so i've exhausted myself searching...i actually think this will be the first time i've ever had to ask a question on the forums for ANY adobe product...i generally can find an answer; it's also generally my fault! slow movement of objects in illustra
-
Trying to understand iterators
Hello again world. I written this little program to try and get an understanding of iterators. I chose to use a Vector object arbitrarily.import java.util.*; public class ForumEx extends Vector public ForumEx() Double number