CFDocument and CFC arguments

It seems that in CF8, the CFDocument tag has no access to the
arguments scope in a CFC. I'm really hoping this is not the case,
but I can't see any other explanation. I'd really rather not go in
and modify 100 reports that have been working well for years under
CF7.
This code errors with "Element REPORTMONTH is undefined in
ARGUMENTS." in line 106. The cfdump in line 102 works fine as does
the cfif in line 104.
Please tell me I don't have to modify, run and test 100 or
more reports.

I should point out that if the arguments scope is removed,
the function works correctly. That is, if line 106 is changed to
the following, it works fine. It's just that this is
everywhere.

Similar Messages

  • Ora-00600 problem with the kodpunp1 and kope2upic954 arguments

    hi everybody,
    i have a problem with ora-00600 error on a oracle 8.1.7.0.0 database on winxp.
    i've read about many ora-00600 problems but only few were with kodpunp1 and kope2upic954 arguments.
    In my trc files i found something like this:
    *** SESSION ID:(29.2808) 2006-02-08 11:05:33.177
    *** 2006-02-08 11:05:33.177
    ksedmp: internal or fatal error
    ORA-00600: internal error code, arguments: [kope2upic954], [], [], [], [], [], [], []
    Current SQL statement for this session:
    call p$insert_rules_details(:1 , :2 , :3, :4)
    *** 2006-02-08 11:06:48.400
    ksedmp: internal or fatal error
    ORA-00600: internal error code, arguments: [kodpunp1], [], [], [], [], [], [], []
    ORA-00600: internal error code, arguments: [kope2upic954], [], [], [], [], [], [], []
    Current SQL statement for this session:
    call p$insert_rules_details(:1 , :2 , :3, :4)
    " so this is happenning when calling this procedure (p$insert_rules_details ...this is my procedure, not some procedure owned by sys).
    if anyone can help me, pls reply. i've heard replies like: call oracle support, put a tar on metalink ..... i don't have metalink support so i appreciate real help ;)
    what to do for avoiding/fixing this error?
    tx

    in addtion, this procedure p$insert_rules_details does some inserts into 3 tables from my schema. The problem might be from the usage of an num_array in this procedure declared as table of number. When number of elements from this num_array excels 4096, then the procedure generates errors.....i believe, not very sure about that. Can that be true?
    by

  • Clear definition+examples- type variable, type parameter and type argument

    I am trying to fully understand the terms like type variable, type parameter and type argument as they apply to generics. Can anyone please give the exact definition and example of each of these terms. Also how these terms relate to the classes/interfaces in language model APIs of Java 6.

    http://java.sun.com/docs/books/jls/third_edition/html/j3TOC.html

  • I need to call a batch file from java and pass arguments to that Batch file

    Hi,
    I need to call a batch file from java and pass arguments to that Batch file.
    For example say: The batch file(test.bat) contains this command: mkdir
    I need to pass the name of the directory to the batch file as an argument from My Java program.
    Runtime.getRuntime().exec("cmd /c start test.bat");
    How to pass argument to the .bat file from Java now ?
    regards,
    Krish
    Edited by: Krish4Java on Oct 17, 2007 2:47 PM

    Hi Turing,
    I am able to pass the argument directly but unable to pass as a String.
    For example:
    Runtime.getRuntime().exec("cmd /c start test.bat sample ");
    When I pass it as a value sample, I am able to receive this value sample in the batch file. Do you know how to pass a String ?
    String s1="sample";
    Runtime.getRuntime().exec("cmd /c start test.bat s1 ");
    s1 gets passed here instead of value sample to the batch file.
    Pls let me know if you have a solution.
    Thanks,
    Krish

  • Cannot find an overload for "PeopleManager" and the argument count: "1".

    Every time getting following error
    Cannot find an overload for “PeopleManager” and the argument count: “1”.
    at following line
    $people = New-Object Microsoft.SharePoint.Client.UserProfiles.PeopleManager($context)
    I am referring userprofile dll from 16 hive...

    Hi,
    Can you provide the complete script in use for a further research? It would make others easier to find out the root cause of this issue.
    Here is a working demo which works in my environment, you can take it for a try:
    #Specify tenant admin and URL
    $User = "[email protected]"
    #Configure Site URL and User
    $SiteURL = "https://tenant.sharepoint.com/sites/mysite"
    #Add references to SharePoint client assemblies and authenticate to Office 365 site - required for CSOM
    Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.dll"
    Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.Runtime.dll"
    Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.UserProfiles.dll"
    $Password = Read-Host -Prompt "Please enter your password" -AsSecureString
    $Creds = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($User,$Password)
    #Bind to Site Collection
    $Context = New-Object Microsoft.SharePoint.Client.ClientContext($SiteURL)
    $Context.Credentials = $Creds
    #Identify users in the Site Collection
    $Users = $Context.Web.SiteUsers
    $Context.Load($Users)
    $Context.ExecuteQuery()
    #Create People Manager object to retrieve profile data
    $PeopleManager = New-Object Microsoft.SharePoint.Client.UserProfiles.PeopleManager($Context)
    Foreach ($User in $Users)
    $UserProfile = $PeopleManager.GetPropertiesFor($User.LoginName)
    $Context.Load($UserProfile)
    $Context.ExecuteQuery()
    If ($UserProfile.Email -ne $null)
    Write-Host "User:" $User.LoginName -ForegroundColor Green
    $UserProfile.UserProfileProperties
    Write-Host ""
    Thanks 
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Query Reference Data and CFCs

    I would to run a  query once that returns a record set and pass that as reference data to functions in a ColdFusion component. Inside those functions, I'd take the query and run a query of queries for aggregate results among other things. Can this be done? I am getting an error basically saying the passed-in query is not a simple value where I use it in the FROM clause of the query.
    It works fine when both queries are within the same function, but it's needless overhead to continually get the same ref data.
    Example:
    template.cfm
    <cfobject name="lib" component="mycfc">
    <cfinvoke component="#lib#" method="getQueryRefData" returnvariable="refData" />
    <cfinvoke component="#lib#" method="getSum" returnvariable="sum" refdata="#refData#" />
    mycfc.cfc
    <cffunction name="getQueryRefData" access="public" returntype="query">
            <cfquery name="allData" datasource="myDatasource">
                SELECT * FROM answer
            </cfquery>
            <cfreturn allData>
    </cffunction>
    <cffunction name="getSum" access="public" returntype="numeric">
         <cfargument name="refData" type="query" required="yes">
         <cfquery name="deptSum" dbtype="query">
                SELECT COUNT(*) AS total, department
                FROM ARGUMENTS.refData <--- ERROR occurs here --->
                GROUP BY department
          </cfquery>
          <cfreturn Val(deptSum.total)>
    </cffunction>

    This works when I run it.
    <cffunction name="q_of_q" returntype="query">
    <cfargument name="QueryIn" type="query">
    <cfquery name="QueryOut" dbtype="query">
    select count(*) thecount
    from arguments.queryin
    </cfquery>
    <cfreturn QueryOut>
    </cffunction>
    <cfquery name="x" datasource="burns">
    select 1 f1 from dual
    </cfquery>
    <cfset abc = q_of_q(Queryin = x)>
    <cfdump var="#abc#" label="abc">
    Try it and if it works, start modifying it until it either does what you want it to do, or crashes.

  • Cfdocument and coldfusion 8

    cfdocument is working fine when i use "flashpaper".
    Then i've been trying to create a "PDF", and I just cannot
    get it to work.
    Nothing to display in browser.
    <cfdocument format="pdf">
    <h1>PDF Generation</h1>
    <hr />This is an example of PDF generation using
    ColdFusion 7.
    </cfdocument>
    1) My pc have acrobate 7.0 professional.

    Your arguments require more specifications try:
    <cfdocument fontembed="true" format="pdf"
    backgroundvisible="true" filename="#expandPath('.')#\test.pdf"
    pagetype="letter" >
    <h1>PDF Generation</h1>
    <hr />This is an example of PDF generation using
    ColdFusion 7.
    </cfdocument>

  • Application.cfm and CFC's

    for some reason my cfc is not seeing any of the variables set
    in application.cfm. Furthermore it does not see them when I use
    application.cfc. I am running 6.1MX on iis5. Any info would be
    helpful.
    Thanks

    Duke Snyder wrote:
    > for some reason my cfc is not seeing any of the
    variables set in
    > application.cfm. Furthermore it does not see them when I
    use application.cfc. I
    > am running 6.1MX on iis5. Any info would be helpful.
    >
    > Thanks
    >
    In deference to Adam, I'm going to go ahead an make a guess.
    Directory structure is very important here. Application.cfm
    will only
    apply to code that is run in the same directory or any sub
    directory
    there under. This applies to CFC's as well. A common idea is
    to place
    a CFC in some type of common folder that is outside the
    normal
    application structure, thus the CFC is not in the directory
    structure
    under which the Application.cfm file has dominion. So it will
    not apply
    in such a case.
    If this is so, the fix is to either move the CFC so that it
    is under the
    Application.cfm dominion. Or to provide it it's own
    <cfapplication...>
    tag with the desired application name to be able to access
    the desired
    application scope. This can be done directly in the CFC file
    or an
    Application.cfm file in the CFC folder hierarchy.
    Of course doing so really complicates the usefulness of
    having CFCs in a
    common place where they can be used by multiple applications
    equally.
    Thus providing a strong argument to the OOP concept of
    encapsulation.
    That an object (component) should not be aware of anything
    outside of
    itself and everything it needs to do its job should be passed
    into it.
    I.E. Pass the required application data into the component as
    arguments
    and make use of it that way.

  • Custom Tag and CFC : Nate Weiss

    Hi,
    being a beginner I'm trying with some marginal degree of
    success to understand CFC's and Custome Tags.
    In the CFMX7 W.A.C.K. There is an example shopping cart. This
    start off as a basic affair then expands into more object based
    principles using a custom tag add products to the cart
    (ShoppingCart.cfc) and later on the same page uses a custome Tag to
    display the cart items, calling it once for each item to display.
    I am using the MVC structure under Fusebox 4, so this method
    of using the same template, (reloading etc) is alien to me as with
    MVC you usually have the data type intructions in different files
    (anyway, I digress)
    Now that I have the thing adding products and generally
    working with my "shop", I thought about having a "special offer"
    facility. With these "Hot Deals" being stored in another database
    table, with their productID and new price.
    However, obviously the shopping cart needs to be made aware
    of this. With I would have thought an extra variable in the array
    telling the custom tag to retrieve the special price and the
    product information using a diufferent inner join query to normal.
    I have attemtped this by adding an additional URL parameter
    thus /..../HSOP/Y ("Has Special Offer Price" being set to "Y")
    When this reloads the page the CFC invoke is set thus
    <CFIF IsDefined("URL.HSOP") AND #URL.HSOP# EQ "Y">
    <CFINVOKE
    COMPONENT="#SESSION.MyShoppingCart#"
    METHOD="Add"
    MERCHID="#URL.AddMerchID#"
    SOPH="Y">
    <cfelse>
    This successfully passes
    Add(SOPH = Y, MERCHID = xxxx)
    to the CFC. However I get this error......,
    ..................Element SOPH is undefined in ARGUMENTS.
    the CFC simpley isnt adding the new variable to the array...
    I think... it wont do a CFDump so there is no way of telling
    <CFFUNCTION
    NAME="Add"
    HINT="Adds an item to the shopping cart">
    <!--- Three Arguments: MerchID, Quantity and SOPH (flag
    to state if there is a special price) --->
    <CFARGUMENT NAME="MerchID" TYPE="numeric"
    REQUIRED="Yes">
    <CFARGUMENT NAME="Quantity" TYPE="numeric" REQUIRED="No"
    DEFAULT="1">
    <CFARGUMENT NAME="SOPH" type="string">
    <!--- Get structure that represents this item in cart,
    --->
    <!--- then set its quantity to the specified quantity
    --->
    <CFSET CartItem = GetCartItem(MerchID)>
    <CFSET CartItem.Quantity = CartItem.Quantity +
    Arguments.Quantity>
    <CFSET CartItem.SOPH = Arguments.SOPH>
    </CFFUNCTION>
    I cant see why this wouldn't create the variable
    "CartItem.SOPH" and set it to "Y" as passed to it.
    I notice the CFC performs an iteration of sorts to put the
    cart items into an array. But I'm afraid I cant fathom what this
    problem might be.
    Any ideas. I have attached the whole CFC code (post editing
    by me)
    MAny thanks and Happy new Year

    Hi,
    As for me, I am testing the related pdf-417 barcode scanner these days. Do you have any ideas about it? Or any good suggestion? I am totally a green hand on barcode field. Any suggestion will be appreciated. Thanks in advance.
    Best regards,
    Arron

  • CF FDS and passing argument

    I need to pass an argument with the dataservice fill to the
    CFC (assembler to dao) so I can build the query correctly.
    I could not find the document on Adobe site for the CF. Can
    some one give me the url for the document or help me out.
    So, the examples is :
    ds.fill(myDS, 'argument')?
    and what is CFC looking on the other hand.
    Thx

    Have you read this article or looked at the associated code
    (made available as a zip file)?
    http://www.adobe.com/devnet/flex/articles/coldfusionflex_part1.html

  • Httpservice and CFC's? Possible?

    I only see posts to CFM's, but is it possible to straight
    access a cfc from httpservice? Thanks

    quote:
    Originally posted by:
    Bob Saggot
    I only see posts to CFM's, but is it possible to straight
    access a cfc from httpservice? Thanks
    Yes you can, but I'm not a big fan of XML so I stick with
    RemoteObject calls to the CFCs.
    So the source of the RemoteObject is the CFC and the
    mx:method's name is the name of a method in my CFC.
    The arguments of the mx:method are the same as the arguments
    for the CFC method, and they are currently bound to two TextInputs.
    Hope all this helps!

  • Problem with cfdocument and background colors with table borders

    i am having a great deal of difficulty with cfdocument
    rendering my tables with cells that have background colors. the
    background colors seem to bleed through the table border. a picture
    at 100% magnification can be seen at
    http://www.vitad.com/cfdoc.jpg
    and at 1600% magnification at:
    http://www.vitad.com/cfdoc2.jpg.
    i am attaching sample code of the what generated the pdf in the
    pictures. btw, i am running cfmx 7 with hot fix 2.

    Hi fresher4flex,
    Since you are using the item Renderer for the DataGrid Column try to apply the styles dynamically to the background of your itemRenderer by making using of the rollOver and rollOut events.
    Thanks,
    Bhasker

  • CFDocument and trouble converting to pdf

    Hello,
    I'm simply trying to convert a word doc to .pdf using CF9.  But when I try it, I get the following error...
    500 - Internal server error.
    There is a problem with the resource you are looking for, and it cannot be displayed.
    Also, coldfusion services seem to go down for a few moments (i can't render any coldfusion pages on the server) and then after a few moments the CF services are back.
    What could be causing this???
    Here is the simple code I am using...
    <cfdocument format="pdf" srcfile="\\srvTestServer\wwwroot\officetopdf\worddocs\Infograms Inventory.doc" filename="\\srvTestServer\wwwroot\officetopdf\pdfdocs\test.pdf"></cfdocument>
    Now if I take out the srcfile section of the tag and hard code text into the cfdocument, it works with no problem???
    example
    <cfdocument format="pdf" filename="\\srvTestServer\wwwroot\officetopdf\pdfdocs\test.pdf">This is a test message for my pdf file</cfdocument>
    I hope someone can shead some light on this?
    Thanks In Advance,
    Cedric Gaines

    Is OpenOffice installed on your machine?  I believe this is a requirement to work with Word files in CF9.
    Office file interoperability
    http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WS56EA2935-FBD2-4089-8402-FDDA2BAF55 FB.html
    Configuring OpenOffice
    http://help.adobe.com/en_US/ColdFusion/9.0/Installing/WS899EE911-747B-45cf-8550-DC91238233 64.html

  • CFDocument and PDF Named Destinations

    In essence I am building a single merged document (PDF)
    combining a single HTML document and n number of names from a SQL
    database. My plan is to use CFDocument to create a complete page
    set for each individual in the database and tack it on to the end
    of the PDF.
    As I process each individual I would like to insert a Named
    Destination in the PDF for that person at the beginning of their
    Page Set. Does anyone know how this can be done? Your help is
    greatly appreciated.
    Would it be better to use CFReport for this merge process?
    Can you add a Named Destination in CFReport generated PDF?

    Functionally, it appears that processing the allowed PDF parameters after opening a PDF involves (1) open the PDF then (2) process the parameter or parameters.
    Once the target PDF is "open" a second pass that attempts to process a parameter or parameters, on the now open PDF seem to not "take".
    So, typically, after open-process parameter(s) happens the PDF has to be backed out of. Then the same PDF can be "opened" again followed by processing of the parameter(s).
    If not already in hand, here's the reference document.
    Parameters for Opening PDF Files
    http://www.adobe.com/devnet/acrobat/pdfs/pdf_open_parameters_v9.pdf
    Be well...

  • Creating pocess intance of a different process and passing arguments

    Creating Process instance of a different process:
    I have two different process: Main_Flow (id: MainFlow) and Second_Flow (id: SecondFlow). In the first process I am reading a csv file. Each line of the file has four columns. After reading each line I have to initiate Second_Flow and pass the read data from the file. (Pls find the code below for the whole process):
         fileReader = FileReader(arg1 : fullFileName);//filename is of file type and have file name and path
         Java.Io.BufferedReader reader = BufferedReader(arg1 : fileReader);
         String str;
         int countLines = 0;
         while ((str = reader.readLine()) != null)
              strColumn = str.split(delim : ",");
                   int ColumnCnt = 0;
                   while (ColumnCnt < 4)
                        //defining variables
                        String appNo;
                        String custNo;
                        String loanAmm;
                        String loanDate;
                        //logMessage("Value at Column: " + ColumnCnt + " is " + strColumn[ColumnCnt]);
                        if (ColumnCnt == 0)
                             arrLoanData["appNo"] = strColumn[ColumnCnt];
                        else if (ColumnCnt == 1)
                             arrLoanData["custNo"] = strColumn[ColumnCnt];
                        else if (ColumnCnt == 2)
                             arrLoanData["loanAmm"] = strColumn[ColumnCnt];
                        else if (ColumnCnt == 3)
                             arrLoanData["loanDate"] = strColumn[ColumnCnt];
                        arrLoanData["descriptionArg"] = "AutoInstance: " + formatTime('now', timeStyle : Time.SHORT);
                        arrLoanData["genByArg"] = "Automatic";
                        ProcessInstance.create(processId : "/SecondFlow", arguments : arrLoanData, argumentsSetName : "BeginIn");
                        ColumnCnt = ColumnCnt + 1;
              countLines = countLines + 1;     
    (“The code is in Java and not in PBL”)
    I have to pass appNo, custNo, loanAmm and loanDate as the arguments. The Argument will be of Any[String] type. The argument set name of Second_Flow is “BeginIn”. But I am not getting anything in Second_Flow.
    What can I do in the argument mapping of begin of Second_Flow to get the passed argument (array)?

    the argument 'arguments' for the method ProcessInstance.create receives a map of the arguments that the 'argumentSetName' argument set will receive.
    so for example if your second flow has 2 arguments, String name, Decimal value and String[] content your method invocation would be:
    ProcessInstance.create(processId : "/SecondFlow", arguments : {"name": strNameFromCsv, "value": valueFromCsv, "content": ["a","b","c","d"]}, argumentsSetName : "BeginIn");

Maybe you are looking for

  • Skipping request for user policy assignments due to agent configuration for authority

    Hello all, Symptoms: The Configuration Manager only shows the following actions: Application Deployment Evaluation Cycle Machine Policy Retrieval & Evaluation Cycle Software Updates Deployment Evaluation Cycle User Policy Retrieval & Evaluation Cycle

  • PDF Hyperlinks

    RH7 WebHelp Pro I have some PDF files in ../../../Images/PDFs/. The hyperlinks I have created work in View Selected Item but not when I View Primary Layout in Internet Explorer. I moved these files (within the project) from the top level folder to a

  • Making video stop on page turn

    If I am creating a folio, which will be viewable on the iPad, what is the best way to make a video automatically stop when the user turns the page. For instance, each page has a few different videos on it. I know the iPad can only play one video at a

  • Reduce File Size causes images to be blurry

    I created a document in Pages '09 that contains several masked images, resulting in a really large file size. I clicked Reduce File Size to get rid of the cropped parts of the images. Unfortunately, the images are now blurry. Any way to mask or crop

  • HT1933 Not happy with iTunes app purchase

    Not happy with iTunes app purchase