How could I initialize a CFC with data before binding a grid to it?

Hi there,
I am refactoring some very old ColdFusion code (ColdFusion 5,
not done by me), and I'm considering replacing a huge and complex
HTML table with a CFGrid.
This HTML table is in an INCLUDE file and called from two
places, each time it gets a CFQuery with the same name and columns,
so the HTML table loop over it, but the (very complex) Queries are
built differently.
It would be a major hassle to "open up" the original queries
and build them into the CFC that should supply the data for my
CFGrid, so my idea is to wrap the original query into a QoQ, and
use the QoQ to display and maybe filter the CFGrid.
But my problem is, the CFC that I use to bind to the CFGrid
has to somehow get the original CFQuery to base the QOQ upon, and I
haven't found any way to pass the CFQuery to it! I tried to pass
the CFQuery itself in the bind expression as:
<cfgrid format="html" name="gridTravel" pagesize=25
sort=true autoWidth=false
height="565"
colheaderbold="false" colheaderfont="Franklin Gothic Medium"
colheaderfontsize="16"
selectcolor="##b8ccfa" selectOnLoad=false
striperows=true
font="Arial" fontsize="12"
"cfc:travel.getTravelList({cfgridpage},{cfgridpagesize},
{cfgridsortcolumn},{cfgridsortdirection},#TravelQuery# )">
And I also tried to first initialize the CFC with the CFQuery
before the binding:
<cfscript>
travelCfc = createObject("component", "travel");
travelCfc.travelListBase = TravelSel;
</cfscript>
But nothing works.
My question, does the binding of CFGrid to a CFC only works
in a "static" way (in Java term)?! In that case, the initialization
method would clearly never work properly, is it then possible to
pass the CFQuery in the Bind at all?
Given my requirement, what would be the best way of achieving
what I'm doing?
Any suggestion will be appreciated, and many thanks in
advance.
Billy

If you go to the VI Properties, under the Execution menu selection there is a pop-up for setting the Preferred Execution System. This is as close as you can specifying a thread in LV.
Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

Similar Messages

  • Initialize Delta Process with Data Transfer - Split the job in two/three

    Hello,
    I am trying to load master data into BI (DEV) and there are 700,000 master data records in my source system. When I tried to load Initialize Delta Process with data transfer, at some point (after 300,000 records) my load failed in source system and job log I found that this issue "ABAP/4 processor: TSV_TNEW_OCCURS_NO_ROLL_MEMORY"
    When I informed this issue to BASIS consultant, they suggest me to split the job in 3 (Three). My question: how can I split the job in three? I can do one Initialize Delta Process load and followed by delta load.
    Regards,
    Md

    Hi Md.
    Even at Infopackage level you can reduce the number of records per package.
    Go to Infopackage Schedular Menu -> DataS. Default Data Transfer. you can reduce the Maximum size of a data packet in kByte.
    Regards,
    Pratap Sone

  • InvalidKeyException: Could not initialize for signing with the given key

    InvalidKeyException: Could not initialize for signing with the given key
    What does this caused? And how can I make following code to work? Is it bug, or is it supposed to do so?
              X509CertImpl newCert = new X509CertImpl(certInfo);
              newCert.sign(caPrivateKey, SIG_ALG_NAME);

    Your key is probably using a different algorithm:
    Signature signature =
    Signature.getInstance( SIGNATURE_ALGORITHM );
    PrivateKey privKey =
    ( PrivateKey ) this.store.getKey( alias, pwd );
    Make sure the SIGNATURE_ALGORITHM (SHA1WithRSA, SHA1WithDSA)
    matches the algoright of the keystore.
    your will see it when casting the private key into a concrete
    key instance:
    RSAPrivateKey privKey =
    ( RSAPrivateKey ) this.store.getKey( alias, pwd );

  • In power mac g5, how to take Automatic Screen Shot with Date

    in power mac g5, how to take Automatic Screen Shot with Date ?
    please help me

    If you are standing by, and activating the process by keyboard
    you could be sure to include the open Date Time menu bar
    image in a complete screenshot, using cmd shift 3. Or outline
    the area you want if not full-screen, by using cmd shift 4.
    The command button may also have an apple icon on it.
    So that's the three key shortcuts for full & partial screen.
    For a more automated method, perhaps try using software to
    run an AppleScript, like Automator. Then write a script or find
    one that you can modify to do tasks and test it.
    There may be other methods, however identifying your intent
    would be higher on the list at this time; to narrow the method.
    Good luck & happy computing!

  • How to transport/move a table with data from development to Test to Production

    Hi,
    How to transport/move a table with data from development to Test to Production..? Export-Import a Delivery Unit does only the structure and not the data
    Reg
    Sri

    Hi Sri,
    You cannot transport Data via Transport route in HANA, you can only transport code changes/Structure via DU. For Data movement, you either have a do a export/import from a flat file or replication from a Source System to HANA.
    Thanks Much,
    Abhishek

  • How to: create a Login page with data tags

    hi, how could i create a jsp login page using the data tags.. and how to associate it with the other jsp pages that should be displayed in case of the correct insertion of the password .

    http://technet.oracle.com:89/ubb/Forum2/HTML/006025.html

  • How could I do a thread with Labview?

    I'm doing a VI with inside a calling to a SubVI. How could the Top-level VI works meanwhile the subVI is working? The top-level VI has to work like a thread because it takes measures from the serial port calling a C DLL, so when I call the SubVI it has to take measures continuously (the VI shows a graph of the measures).
    Thanks in advice
    Davide

    If you go to the VI Properties, under the Execution menu selection there is a pop-up for setting the Preferred Execution System. This is as close as you can specifying a thread in LV.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • How could I recorder my screen with Quick k time 7 pro with  OS X 10.8

    How could recorder Mac Screen with quick time 7 pro?

    QuickTime 7 does not exist in Mountain Lion. Not sure if you could even install it from the stand-alone installer. I can't look at the moment, but I believe QuickTime X in ML will do a screen capture.
    Just to note: If you had Quicktime Pro 7 installed when upgrading to either Lion or Mountain Lion, it was relocated to the Utilities folder. It can also be downloaded and installed in Mountain Lion, and it does function.
    It will also do screen recordings, but as others have pointed out Quicktime Player 10 will do it too.

  • HT1414 How can I save my media and data before restoring? My phone screen is blocked on "plug to itunes", thanks

    How can I save my media and photo data before restoring? My phone screen is blocked on "plug to itunes", thanks

    Once the Device is asking to be Restored with iTunes... it is too late to save anything...
    See Here  >  http://support.apple.com/kb/HT1808
    You may need to try this More than Once...  Be sure to Follow ALL the Steps...
    After you have Recovered your Device...
    Re-Sync your Content or Restore from the most recent Backup...
    Restore from Backup  >  http://support.apple.com/kb/ht1766

  • When I use Firefox to access jobs on local hospital website not all jobs displayed. Used IE and accessed all posted jobs. Could access all posted jobs with Firefox before hospital changed format. Could this be setting on my computer/Firefox?

    I've been using Firefox for more than a year and prefer it to Internet Explorer. I'm unaware of any websites or information on a website that I've been unable to access with Firefox before this.
    My question contains all the details. I don't know anything about the hospital's systems or website except that they used to have jobs listed under categories and now have a grid format. There are many more jobs posted and accessible through IE than Firefox.

    Thanks for suggestion. I cleared everything, closed Firefox, rebooted and checked the website again with Firefox and IE. Results same as before. (I clear history, cache, etc. pretty regularly.) From what I can see the website looks the same with both browsers, except for difference in job postings. When I called hospital and asked about it, the HR person I spoke with seemed surprised that I had a problem. Local computer columnist is a big advocate for Firefox, but I've no idea how many people in local area use it, i.e. would see the problem and call to ask about it. For whatever it's worth, the program the hospital uses is from SPECTRUM Human Resource Systems Corporation.

  • How to merge pdf in db, with data in db and serve as PDF doc to browser

    Hi,
    I have a requirement as:
    On an ebusiness suite webpage user clicks on a hyperlink.
    This downloads a merged pdf form, as:
    a. Retrieve pdf document from fnd_lobs
    b. Retrieve the data to be merged from a database table in the format merge_field_name, merge_field_value
    c. Merge the data and the pdf on the fly.
    d. Return the merge pdf file to the webbowser
    I have never used XML etc, and browsing metalink etc, it seems the using XML Publisher may be the best way to go.
    So, I would appreciate it if I could have the following answers:
    1. Is XML publisher the correct tool to use for this, or is their another technology that may be better suited.
    2. As we have a number of ebusiness suite applications licensed, would we need to buy an additional license for XML publisher.
    3. If I am on the right track, then any pointers on how to start.
    Thanks in advance.
    Mark

    Hi Mark
    1. XMLP will do this for you with a little code.
    2. As long as the data for the documents came from the delivered EBS schema (incl flexfields) i.e. not from a custom table. Then you are within the EBS license terms and there would be no extra kicense to purchase.
    3.
    a. You will need to extract the PDF from fnd_lobs as a PDF document and out it somewhere temporarily.
    b. Write the extract and template to format the data into PDF ... this is basic XMLP suff covered in the user guide and the XMLP pages on OTN.
    c. You now have your fnd_lobs PDF and the generated one, you can now combine them into a single document using an API. The PDF bookbinder API is the most poweful but there are others available too ... check the user guide for PDFBookBinder and FormProcessor.
    d. then you'll need to either stream the resulting PDF to browser yourself or you can use the XMLP OA Framework common region and embed it inside a page.
    Regards, Tim

  • How to debug DAQ VIs (problem with data)

    I am trying to debug (and understand) the attached VI.  I’m not asking anyone to analyze/debug it, since it is far more than an example; I am new to these forums and feel like asking such a thing would be inappropriate.
    I would like advice on how to debug it.  I am also going to describe my problem to see if the cause may be obvious to someone.
    The outputs of the "Angle Calc" sub-vi are fed into a state machine.  The state machine actuates outputs to move a motor and measures changing angles.  It first moves up/down, then left/right.  The attached VI is called by a top-level VI and the front panel is not usually open.  For some reason, when the front panel is opened, it behaves differently when it is called.  The behavior only changes for the right/left movements.
    Here's where I'm hoping someone can point out some better debugging methods for me.
    I have been using the Express Write to LVM File VI and the Convert to Dynamic Data function to write acquired data to text files for analysis after the acquisition has completed.  Are there better methods recommended for doing this?  I wish I could run through the code while recording the execution and then step through a playback of it!
     As for the specific problem I am having...
    In the "Right Find Stall" case, the signal wired from the "Angle Calc" VI (array size 100) is connected to a Max/Min Array function.  When I log the data coming from the Min/Max function, I see an alternation between valid data and 0 (i.e. 12.2, 0, 13.3, 0, 14.0, 0, 14.5, 0...).  When I log the data being fed into the Min/Max function I do not see 0s. 
    A guess of mine is that the array is empty and therefore no data is logged but Min/Max returns a 0 (not sure why this would happen).  I also have no idea why this would ALWAYS happen with the front panel opened.  I have seen the effect with the front panel closed, but never to the same degree; usually just a seemingly random zero or two but not a pattern of every other point...
    Thanks all,
    Dave
    Attachments:
    Functional_Test.vi ‏2710 KB

    Angle_calc receives array controls in and passes array indicators out.  It performs a trig function and a bit of multiplication. 
    I'll check out the Write to Spreadsheet File VI, haven't used it in the past.  If it will allow me to write text out that'll be enough reason for me to stop using the Express VI.
    I've used Execution Highlighting and stepping before but with the data acquisition by the time the application makes it around to the next read the DAQ card has sampled a ton of data and the data coming in is no longer useful (a different state should be active by then).
    I do think the problem is related to the computer slowing down with the front panel open.  I've logged the 'backlog' number of the Read function and found that the number in there is greater than 0 much more often when the VI's front panel is open and that I've seen relations between the 0s that I discussed earlier and the backlog going above 0 (usually the scan after a non-0 backlog seems to be a problem).
    I need to familiarize myself with the DAQ basics, the buffer, backlog, and relation to sampling rate, etc.
    In a simple VI I just wrote, I noticed that if I increased the sampling rate high enough, data being acquired into a chart cuts-out on a regular basis; instead of a smooth line, I see small dashes or dots of data (spaces in between).  I don't understand this- I would expect data to be lost but not "no data" to be read in.  I think understanding what is happening here would be helpful.

  • How to sync TCP/IP command with data

    Hello. I am trying to catch a TCP/PI data and write it to the file. I am using the TCP Communicator example as the base. My goal is to send a command and write to the file the response from the host. Few challenges. I can send multiple commands, but I only want to write to file after specific one and only once. It is the reason I have some logic in the send loop to enable write block. My problem is, by the time data comes, my enable changes value, so I only write the data that was on the bus from previous command. Or, I keep witing to file ove r and over.
    What is the best way to sync send a command and wait for the result for this command? Should I just use case structure since I do not need to listen host all the time, only after I sent  commands.
    Labview 8.2
    Win7
    Thank you
    Attachments:
    TCPIP.PNG ‏71 KB

    Do you have control over the data on both ends of the connection? If so, create a simple messaging protocol that will help you keep things in sync and give you the ability to recognize the commands. The simplest protocol would be to define your data packets to contain a message header and data. The message header would contain a message identifier identifier and the message data length. The header should be fixed length. This allows you to easily read the header and the data. The data will be whatever you need for each message type. The header message length will let you know how much data to read. Using this simple protocol the message reading would be very simple. Since each message will contain an identifier you can easily chose how to process the message and what actions you take. If you need to match responses with specific commands you could put a command sequence number in the message header. This would allow you to match the response with the specific command. You would need to include the command sequence number in the response.
    If you don't have control over the other side of the connection you will need to get the message format the device uses. That will dictate how to process the messages.
    Also, if your system is always a command/response system you do not have to have the read and write in separate tasks. You can send the command and wait for the response immediately afterward. You would not send the next command until you get a reposes. If you know you won't get a response for a specific command you would skip the read.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • How to update a table AUTOMATICALY with data from a .txt file??

    HI ,
    I want to upload data which is in a notepad file and Create a table. This notepad file stores a string of datas. Here, the data comes in to the .txt file every second.
    (The data is actually stored into the notepad file when a program is executed in Processing.js software)
    Is it possible to do the following using APEX ? ?
    1. This table has to be updated automatically once in 2 minutes (I want this completely automatic, no human intervention -- no update buttons)
    2. A report is to be created in a apex application with this table, it should reflect the updates in the table every 2 minutes.
    Is it possible?? give your ideas.. I want to do this soon for my engineering project :) Any help from you is appreciated. :)
    Edited by: user13301695 on 28-Mar-2011 10:09

    And how do you expect your database server to access a local file in your machine ?
    Is the file accessible from outside your machine say inside a webserver folder so that some DB process can poll on the file ?
    Or, is your DB server in the same machine where you have the text file ?
    You will have to figure out the file acess part before automating user interaction or even auto-refreshing.

  • How to fill the table UD_SAPHR with data from SAP HR Connector

    Hi, I`ve searched all the forrum but didn`t find how to map fields from connector form to the any field in OIM. I tryied with entity adapters but failed to reach any result. The problem is that I even cant put incoming data with connector to the table of the connector form (UD_SAPHR).
    I will be grateful for any help. Below is the cut of the log. In few words - how to map, for example, field "Department=40000260" to the field in the USR table or UD_SAPHR table (or any other - to have this information in OIM).
    OIM-9101Upd5, OS-Oracle Enterprise Linux4x64,SAP COnnector-SAP-ER90460, Database-Oracle 10gx64, Appication server-SOA(Oracle Application server)
    INFO,01 Jul 2009 14:08:11,504,[XL_INTG.SAPHRMS],getDetailsForRecon(): *****************************
    INFO,01 Jul 2009 14:08:11,505,[XL_INTG.SAPHRMS],getDetailsForRecon(): 00000017
    INFO,01 Jul 2009 14:08:11,505,[XL_INTG.SAPHRMS],reconcileEmp(): SAPUserRecon for SAP : SAP HRMS IT Resource:EmployeeId=00000017
    DEBUG,01 Jul 2009 14:08:11,505,[XL_INTG.SAPHRMS],SAPUserRecon:returnDate(): Employee Status***3
    DEBUG,01 Jul 2009 14:08:11,505,[XL_INTG.SAPHRMS],EmpStatus***3
    INFO,01 Jul 2009 14:08:11,505,[XL_INTG.SAPHRMS],getUserId(): Recon key is 00000017
    INFO,01 Jul 2009 14:08:11,505,[XL_INTG.SAPHRMS],getUserId(): Hash Key is USR_UDF_PERSONNEL_NUMBER
    INFO,01 Jul 2009 14:08:11,505,[XL_INTG.SAPHRMS],getUserId(): Get UserId of user with reconKey: 00000017
    INFO,01 Jul 2009 14:08:11,506,[XL_INTG.SAPHRMS],getUserId():hmFilter: {USR_UDF_PERSONNEL_NUMBER=00000017}
    INFO,01 Jul 2009 14:08:11,540,[XL_INTG.SAPHRMS],Result set rs contains : Thor.API.tcMetaDataSet@790a37
    INFO,01 Jul 2009 14:08:11,540,[XL_INTG.SAPHRMS],getUserId(): Xellerate RS Count*** 0
    DEBUG,01 Jul 2009 14:08:11,541,[XL_INTG.SAPHRMS],getUserId(): hmReturn ***{Create=0, UserLinked=0, userId=, UserKey=, XelUser=, Exist=0, User=}
    INFO,01 Jul 2009 14:08:11,541,[XL_INTG.SAPHRMS],getUserId(): Recon key is 00000017
    INFO,01 Jul 2009 14:08:11,541,[XL_INTG.SAPHRMS],getUserId(): Hash Key is USR_UDF_PERSONNEL_NUMBER
    INFO,01 Jul 2009 14:08:11,541,[XL_INTG.SAPHRMS],getUserId(): Get UserId of user with reconKey: 00000017
    INFO,01 Jul 2009 14:08:11,541,[XL_INTG.SAPHRMS],getUserId():hmFilter: {USR_UDF_PERSONNEL_NUMBER=00000017}
    INFO,01 Jul 2009 14:08:11,570,[XL_INTG.SAPHRMS],Result set rs contains : Thor.API.tcMetaDataSet@282f10
    INFO,01 Jul 2009 14:08:11,570,[XL_INTG.SAPHRMS],getUserId(): Xellerate RS Count*** 0
    DEBUG,01 Jul 2009 14:08:11,570,[XL_INTG.SAPHRMS],getUserId(): hmReturn ***{Create=0, UserLinked=0, userId=, UserKey=, XelUser=, Exist=0, User=}
    DEBUG,01 Jul 2009 14:08:11,570,[XL_INTG.SAPHRMS],sEmployeeUserID***
    DEBUG,01 Jul 2009 14:08:11,570,[XL_INTG.SAPHRMS],UserKey***
    DEBUG,01 Jul 2009 14:08:11,570,[XL_INTG.SAPHRMS],EmpStatus fetch from target System is 3
    DEBUG,01 Jul 2009 14:08:11,570,[XL_INTG.SAPHRMS],EmpStatus Mentioned in Task scheduler is 3
    INFO,01 Jul 2009 14:08:11,570,[XL_INTG.SAPHRMS],reconcileEmp():sUser get from Resource Object Table ***
    INFO,01 Jul 2009 14:08:11,570,[XL_INTG.SAPHRMS],reconcileEmp():sXelUser get from Xellerate Table***
    el Number=00000017, LinkedUserID=, Xellerate Type=End-User Administrator, First Name=п⌠п╣пҐпҐп╟пЄп╦п╧, Last Name=п■п╟п╡я▀пЄп╬п╡, Role=Consultant, Middle Name=FromHRMS=1}╣п╡п╦я┤, Userr
    INFO,01 Jul 2009 14:08:11,571,[XL_INTG.SAPHRMS],Reconciliation of the user entered
    DEBUG,01 Jul 2009 14:08:11,571,[XL_INTG.SAPHRMS],before create HR user reconciliation event***{PostalCode=, EndDate=9999/12/31 12:00:00 MSK, EmailAddress=, SSN=, State=, District=, TelephoneNumber=, Manager=, StartDate=1888/12/01 12:00:00 MSK, City=, EmplUserId=, UserLinked=0, UserLocked=0, FirstName=п⌠п╣пҐпҐп╟пЄп╦onnel Number=00000017, EmployeeId=00000017, Country=RU, Title=Mr, Department=40000260, MiddleName=п░пҐпЄя─п╣п╣п╡п╦я┤, LastName=п■п╟п╡я▀пЄп╬п╡}
    INFO,01 Jul 2009 14:08:11,711,[XL_INTG.SAPHRMS],disableEnableXelUser(): Get UserKey of user with reconKey: 00000017 for SAP SAP HRMS IT Resource
    DEBUG,01 Jul 2009 14:08:11,742,[XL_INTG.SAPHRMS],disableEnableXelUser(): Xellerate RS Count*** 0
    INFO,01 Jul 2009 14:08:11,742,[XL_INTG.SAPHRMS],reconcileEmp(): User Reconciliation for Create & Modify User is completed.
    INFO,01 Jul 2009 14:08:11,742,[XL_INTG.SAPHRMS],reconcileEmp() **** DONE RECONCILIATION

    That is my problem. I get only those fields, that are in the xellerate user standard form. And I need also fields "Department" and "City".
    This information connector gets from SAP (as it is seen in log) but doesn`t save it anywhere inside the OIM, though such fields exists in the UD_SAPHR table (and correspondend form) but this table remains empty after reconciliation.
    DEBUG,26 Jun 2009 18:01:41,746,[XL_INTG.SAPHRMS],before create XL user reconciliation event***{Email=, Organization=Xellerate Users, User ID=00000072, Personnel Number=00000072, LinkedUserID=, Xellerate Type=End-User Administrator, First Name=п°пҐп╣, Last Name=п п╬п╪п©п╣пҐя│п╦я─я┐п╧п╨п╟, Role=Consultant, Middle NamomHRMS=1}
    INFO,26 Jun 2009 18:01:41,746,[XL_INTG.SAPHRMS],Reconciliation of the user entered
    DEBUG,26 Jun 2009 18:01:41,746,[XL_INTG.SAPHRMS],before create HR user reconciliation event***{PostalCode=, EndDate=9999/12/31 12:00:00 MSK, EmailAddress=, SSN=, State=, District=, TelephoneNumber=, Manager=, StartDate=1970/01/01 12:00:00 MSK, City=, EmplUserId=, UserLinked=0, UserLocked=0, FirstName=п°пҐп╣, Person Number=00000072, EmployeeId=00000072, Country=RU, Title=Mr, Department=40000240, MiddleName=п·я┌п©я┐я│п╨, LastName=п п╬п╪п©п╣пҐя│п╦я─я┐п╧п╨п╟}
    Edited by: user6645106 on 03.07.2009 10:12

Maybe you are looking for

  • [HELP] using multiple value parameter in c:import tag

    I need to pass a multi-value parameter to a included page. e.g. http://myhost/MyContext/dir1/page1.jsp?abc=value1&abc=value2/dir1/page1.jsp includes /dir2/page2.jsp, and would like to pass this multi-value parameter over, but change the name to xyz,

  • How to edit a standard  form and print progarm

    hi experts,               I have lot of standard scripts for my works.but it is very tough to change the print progarm according to our own forms.Is there any easy way yo change the print progarm???? and some of the print progarms are not avilable fo

  • [Solved] Headphones not muting built-in speakers on a laptop

    I have bought a new laptop a Packard Bell MX61 and so far so good, everything works very well with linux until now. Today I plugged my headphones and the speakers didn't mute, I have searched the web and it seems this is starting to be common, as it

  • Query Regarding Early Watch Report

    Hi All, I have certain queries regarding the Early Watch Report. Our platform in Oracle 10g and OS is HP-UX.Please sombody help me with the following. 1.What is Early Watch report and why we use it? 2.How to configure Early watch report from Solution

  • Step by step advice on this update PLEASE!!

    I updated itunes and when I went to synchronize I was asked if I wanted to upgrade. I could just download or download and install. I choose the later. Itunes said that it had to do some special back up so I could restore my computer later. I said OK