Questions - dereferenced Function Call, form capitalization

Hey two quick questions.
I'm wondering if I can call a com object function given that
I have the string instead of the function name.
ie. Instead of
MyComObject.fucntionName(parameter);
something like this
stringVariable = functionName
MyComObject.stringVariable(parameter);
I know the syntax is incorrect but does anyone know how to do
this in coldfusion?
QUESTION #2 :
I'm doing something like the following,
for (keyName in FORM) {
if (FORM[keyName] IS NOT "")
WriteOutput("FORM." & Keyname & " has the value: "
& FORM[keyName] &"<br>");
However all the Keynames come out capitalized.

quote:
Originally posted by:
BigRJJJ
Hey two quick questions. ... ...
However all the Keynames come out capitalized.
These are not really quick questions. Suggest you repost
question 1 on another thread and provide details of the COM
function and which CF version you are using.
As for CF uppercasing all the names of form fields, that's a
"feature"! ;-)
If you want the original case, then you need to process the
raw post for that.
See the attached code.

Similar Messages

  • Noob question on function calls

    I just converted a script from VBScript and wrote the function calls to look the same. The problem is the functions don't work as expected.
    Here is my function to delete some characters I don't want from a string, and return the string back to me. I'm sure there is some very simple issue with the variable / object references that is the reason why the input string gets passed back unaltered,
    even if it contains spaces or single quote marks.
    This function is part of a section of code which converts people's names into logon names, by removing spaces and illegal characters from the names.
    function CleanString($InputStr)
        $DirtyChars = "?", "/", "\", ":", "*", '", "<", ">", ",", "&", "#", "~", "%", "{", "}",
    "+", "_", ".", `', " "
        foreach ($char in $DirtyChars)
            $InputStr = $InputStr.Replace($char,"")
        return $InputStr

    Hi there,
    It look like there's a problem with your $DirtyChars variable:
    DirtyChars = "?", "/", "\", ":", "*",
    '", "<", ">", ",", "&", "#", "~", "%", "{", "}", "+", "_",
    ".", `', " "

  • Question regarding Graphics - Print Forms

    Hi,
    This is a print forms question. We are on ECC 5.0, basis release 640
    Currently, for all our SAPscripts, we have our graphics as TIF files stored as text modules.
    For our Smartforms, we loaded BMP files to the BDS using transaction SE78.
    Adobe brings up the exciting possibility of using smaller sized JPG/JPEG files.
    The only place I can think of storing the JPEG files in the SAP system is the MIME Repository. Looks like SE78 does not support JPEG files.
    Here's my requirement and question.
    In the mime repository, I created folder 'LOGOS' in SAP/PUBLIC. So, the path would be /SAP/PUBLIC/LOGOS
    The names of the files in the mime repository are 'LOGO_A' and 'LOGO_B'.
    We need to print the company logo based on company code.
    If company code is 'A' then 'LOGO_A' else, 'LOGO_B'.
    We are reluctant to read the graphic in the ABAP program and pass the whole content through the Interface.
    I cannot embed the graphic in the form since the LOGO will change based on company code.
    Since we can use an url for an image field in Adobe forms, how can I point the url to the mime repository?
    Any help on this is greatly appreciated.
    Thank you.
    Best regards,
    -Ramesh

    Thanks Markus.
    By what you said, I am inferring that you mean access to load the graphic files to the Mime Repository.
    My question is to read the Mime repository since users of bsp applications can still see the LOGOs in their bsp pages (I think. Never did BSP before).
    Here is what I am doing currently.
    Here's my interface:
    LOGO_DATA TYPE XSTRING.
    In my driver program, I am reading the Mime Repository graphic into an XSTRING and passing it through the interface to the LOGO_DATA field.
    I created a Graphic in the Context and set it to 'Graphic Content'.
    I am setting the 'Field' property to LOGO_DATA and MIME Type to 'image/jpeg'
    Now,
    Instead of reading and sending the whole binary content across through the function call, I am looking to see if the following would be possible:
    Interface:
    LOGO_URL TYPE STRING
    In the driver program, assign the URL of the Graphic to field LOGO_URL (Don't know how yet).
    In the context, create a Graphic and set it to 'Graphic Reference'
    In the URL property, set the Graphic URL property to LOGO_URL field and then clear out the delimiter field.
    If it is not possible with the Mime Repository, will it be possible with the Business Document Server (Transaction SE78).
    Thank you.
    Best regards,
    -Ramesh

  • FRM-41045 when returning to calling form

    I'm using Designer 1.3.2 with Headstart 3.4.3 and Forms 4.5.
    The situation is as follows:
    I'm using the call_form functionality to call another form when using a form. This goes well. When I leave the called form to return into the calling form I get the error message 'FRM-41045 Cannot find item: Invalid ID'. The functionality of the form stays in tact, so my question is how can I solve this error or how can I suppress this message?

    Linda,
    My suggestion would be to try to drill down on the cause of the problem in form builder. What causes the FRM message?
    If you cannot track down to the cause and want to suppress this message, you could try to capture the event in the on-error trigger and continue without an error when this error occurs (maybe encapsuled by a helping global variable construction so that the message is not always suppressed)
    In designer/forms 6.0 or 6i you could suppress the message in two ways:
    1. By adding it to the suppress message stack (see hsdapp65.pll for an example).
    2. Add the message to the qms_message_properties table and set the suppr_always_ind to Y.
    The headstart 3.4 qms_messages table does not yet contain this column, but you might take a look at the headstart 2.1.2 procedure qms$forms_errors.add_suppress_message(<message number>); to code your own solution for it in headstart 3.4.
    Regards, Marc

  • How to call a C function calling a Java Method from another C function ?

    Hi everyone,
    I'm just starting to learn JNI and my problem is that I don't know if it is possible to call a C function calling a Java Method (or doing anything else with JNI) from another C function.
    In fact, after receiving datas in a socket made by a C function, I would like to create a class instance (and I don't know how to do it too ; ) ) and init this instance with the strings I received in the socket.
    Is all that possible ?
    Thank you very much for your help !

    Hard to understand the question, but by most interpretations the answer is going to be yes.
    You do of course understand that JNI is the "API" that sits between Java and C and that every call between the two must go through that. You can't call it directly.

  • URGENT: Bug in Adobe Acrobat X /// Acrobat.exe Runtime Error! R6025 - pure virtual function call

    Hello
    I work usually with large PDF documents, and I was trying to convert a PDF document of 1000 pages ONE THOUSAND PAGES, to little PDF documents of 10 MB each one.
    When I tried to convert the PDF file into little ones, craaashhhhhhhhhhhhhhhhhh
    I got this message:
    Acrobat.exe Runtime Error! R6025 - pure virtual function call - Microsoft Visual C++ Runtime Library
    This seems to be a BUG AS BIG A GRAND PIANO... so I would like someone from Adobe tell me how may I solve this problem or if they will release an update soon?
    Thank you

    This is a user to user forum and we don't post information here (or anywhere else public) about what may or may not be in future patch releases.
    If you have a bug with an Adobe product you must report it using the correct form.

  • How to get transaction id of a function called in background

    Hi all,
    does someone know how to retrieve t-id of a function called in background (tRFC) client side? I found
    'ARFC_GET_RECEIVER_TID'
    'ARFC_GET_TID'
    but these works server side (function called knows its t-id .. caller no). Is there some similiar client side so that after calling function I can retrieve its transaction id ? I know it's not the same context, for explaining better, what I need it's something like fork() in C, where process father (the one that forks) receive as return value process id of process forked.
    SEARCHING ON FORUM I see that many people answered on question about transaction id with sy-tcode misunderstanding the question. This transaction id it's not the tcode. This is the char 32 unique transaction code
    thank you
    regards
    Gabriele

    You can have a look at function TRFC_RECEIVER_INFO
    [qRFC API for the Inbound Queue|http://help.sap.com/saphelp_nw04/helpdata/en/21/5c5f3ca0dd9770e10000000a114084/content.htm]

  • Function calling stored procedure that returns a cursor into a LOV

    Hello,
    Is it possible in HTML DB to implement a process that has a function that calls a stored procedure that returns a cursor, used to then populate a select list?
    Or can I do a function call to a stored procedure in the 'List of values definition' box for the item itself that returns a cursor to populate the item's select list?

    Hi Vikas,
    Actually, I just found another posting that shows how to do what I'm looking for:
    Re: Filling a LOV with a cursor
    Check it out. I posted another question in response to that discussion...maybe you could answer that? Thanks!
    Laura

  • How to Automate the Query Search Upon Return to the Calling Form?

    Greetings Ya’ll Gurus,
    Could you please share with me how to make the Query Search executed automatically each time, when database table is updated, upon return to the “Calling Form” (i.e. FormA in this posting) from the “Called Form” (i.e. FormB from here on)?
    I have FormA call_form to FormB. FormB may return to FormA. FormA allows users to enter the Query parameters and perform query Search to the database table with a list of search results afterward; whereas FormB allows users to add or delete the same database table records. Both form images are as follows:
    FormA:
    !http://dot.state.ak.us/nreg/jtomasic/FormA_DWR_SEL.GIF!
    FormA call_form to FormB by clicking PB “Daily Work Report” (see circled PB "Daily Work Report" in the above image.)
    FormB Image (FormB allows users to add and delete database records):
    !http://dot.state.ak.us/nreg/jtomasic/FormB_DWR.GIF!
    FormB EXIT_FORM and returns to FormA (see circled PB "DWR Selection" in above image).
    Currently, our users must press the PB “Search” on FormA each time to refresh the Query “Search” results after returning to FormA, and they request to have the "Search" done automatically/programmatically upon return to FormA each time when the database table is updated.
    If you have programming code on this and are willing to share or if you have any suggestion or thoughts on this, it would be most greatly appreciated.
    Thanks a lot & Happy Holidays!

    Thanks so much Andreas, and yes, your link for calling a form and passing a context is very helpful. I believe, your suggested use of the global variable for the saved database table will work for the automation of the Query Search. I am, however, not sure how to make the code and the trigger to automatically perform Query PB "Search". The code for our current "WHEN-BUTTON-PRESSED" Trigger for the PB-Search of FormA is as following:
    DECLARE
         alert_button     NUMBER;
         alert_id               ALERT;
      MY_WHERE VARCHAR2(2500);
      MY_DIST_ID         DIST.DIST_ID%TYPE     := :BLK_UPDATE.DIST_ID;
      MY_ORG_ID          DWR.ORG_ID%TYPE       := :BLK_UPDATE.ORG_ID;
      MY_ACTY_ID         DWR.ACTY_ID%TYPE      := :BLK_UPDATE.ACTY_ID;
      MY_ACTY_WORK_ID    DWR.ACTY_WORK_ID%TYPE := :BLK_UPDATE.ACTY_WORK_ID;
      MY_CNTY_ID         DWR.CNTY_ID%TYPE      := :BLK_UPDATE.CNTY_ID;
      MY_ASSET_GRP_ID    DWR.ASSET_GRP_ID%TYPE := :BLK_UPDATE.ASSET_GRP_ID;
      MY_ASSET_ID        DWR.ASSET_ID%TYPE     := :BLK_UPDATE.ASSET_ID;
      MY_RTE             DWR.RTE%TYPE          := :BLK_UPDATE.RTE;
      MY_BEG_MP          DWR.BEG_MP%TYPE       := :BLK_UPDATE.BEG_MP;
      MY_END_MP          DWR.END_MP%TYPE       := :BLK_UPDATE.END_MP;
      MY_FROM_DATE       DWR.DWR_DATE%TYPE     := :BLK_CONTROL.FROM_DATE;
      MY_TO_DATE         DWR.DWR_DATE%TYPE     := :BLK_CONTROL.TO_DATE;
      MY_FLAG_OFFSYS     VARCHAR2(11)          := :BLK_UPDATE.FLAG_OFFSYS;
      MY_FLAG_COMMENTS   VARCHAR2(11)          := :BLK_UPDATE.FLAG_COMMENTS;
      MY_SPECIAL_EVENT_SEQ_NO SPECIAL_EVENT.SPECIAL_EVENT_SEQ_NO%TYPE  := :BLK_UPDATE.SPECIAL_EVENT_DESCR;
      MY_FLAG_ACCDT      VARCHAR2(11)          := :BLK_UPDATE.FLAG_ACCDT;
    BEGIN
    :blk_control.dummy_flag := 1 ;
    :BLK_CONTROL.DUMMY_ERR_FLAG := 'N';
    VALIDATION_SELECTION;     -- Program Unit VALIDATES DWR SELECTION PARAMETERS PRIOR TO
                                                    -- PERFORMING THE SEARCH AND POPULATING THE DISPLAY BLOCK
    if :blk_control.dummy_flag = 1 then
      IF :BLK_CONTROL.DUMMY_ERR_FLAG = 'N' THEN
        MY_WHERE := BUILD_WHERE_CLAUSE(MY_DIST_ID,
                                       MY_ORG_ID,
                                       MY_ACTY_ID,
                                       MY_ACTY_WORK_ID,
                                       MY_CNTY_ID,
                                       MY_ASSET_GRP_ID,
                                       MY_ASSET_ID,
                                       MY_RTE,
                                       MY_BEG_MP,
                                       MY_END_MP,
                                       MY_FROM_DATE,
                                       MY_TO_DATE,
                                       MY_FLAG_OFFSYS,
                                       MY_SPECIAL_EVENT_SEQ_NO,
                                       MY_FLAG_ACCDT,
                                       MY_FLAG_COMMENTS);
        SET_BLOCK_PROPERTY('BLK_DISPLAY', DEFAULT_WHERE, MY_WHERE);
        GO_BLOCK('BLK_DISPLAY');
        CLEAR_BLOCK(NO_VALIDATE);
        EXECUTE_QUERY(ALL_RECORDS);
        IF :BLK_DISPLAY.DWR_SEQ_NO IS NOT NULL THEN
                   SET_ITEM_ON_OR_OFF('BLK_CONTROL.PB_PRINT', TRUE);
        ELSE
                   SET_ITEM_ON_OR_OFF('BLK_CONTROL.PB_PRINT', FALSE);
                   alert_id := FIND_ALERT('no_data_query');
                   IF ID_NULL(alert_id) THEN
                        error_msg(1000);
                   ELSE
                        set_alert_message(alert_id, 1040);
                        alert_button := SHOW_ALERT(alert_id);
                   END IF;
              END IF;
              GO_BLOCK('BLK_UPDATE');
              GO_ITEM('BLK_CONTROL.PB_SEARCH');
         END IF;
    end if;
    END;My questions are:
    After initializing, set and/or reset the global variable for the saved database table,
    do I copy the above code (i.e. the "entire" code in the "WHEN-BUTTON-PRESSED" Trigger for the PB-Search) to the WHEN-NEW-FORM-INSTANCE-trigger, or other trigger(s), of FormA to automate the Query Search whenever there is a successful database commit/save? Or
    is there a simple way to activate the code in the "WHEN-BUTTON-PRESSED" Trigger for the PB-Search of FormA? Or
    is there a simple way to activate the EXECUTE_QUERY(ALL_RECORDS) command in the WHEN-NEW-FORM-INSTANCE-trigger or other trigger(s) of FormA ?
    Thanks and always.

  • Intermittent Runtime error - pure virtual function call

    I have an intermittent runtime error - pure virtual function call & don't know what cause it? Since It only occurs & crashes once awhile therefore it's difficult to trap it for debugging.I suspect it come from TestStand ActiveX API which I use in my User Interface Application project but I'm not really sure.
    Does anyone experience this kind of problem when working with TestStand API ? If so any
    suggestion? I have noticed in the TestStand API header file teapi.tlh contain many raw_.... function defined as pure virtual function. What are these raw_... function ? I don't think I use any of these function in my project.
    Many thanks!

    Danh,
    I don't believe that your problem can be solved with the information you have provided unless someone else has experienced the same symtpoms which coincidentally have the same cause as in your case.
    Is there any other information you can provide that can help localize the problem?
    1) What is happening when the error occurs?
    2) Does the error always occur in the same place?
    3) Does it always occur with use of certain resources (e.g. DAQ, GPIB, VISA, printer)?
    4) Does it occur when using the sequence editor?
    5) Does it occur when using one of the shipping operator interfaces?
    6) Does it occur only when using your operator interfaces?
    7)Is it related to a specific sequence or any sequence?
    8) Does it happen when you executed your sequence with/without a process model entr
    y point (i.e. Execute>>Test UUTs, Execute>>Singal Pass or Execute>>Run MainSequence)?
    9) How often does it happen?
    10) What version of TestStand are you using?
    11) With what language (include versions) are you programming your code modules?
    12) With what language (include versions) are you programming your operator interface?
    13) Is there any error code reported with this error message?
    14) Is this error reported in a TS run-time error dialog or is it reported directly 1by the operating system?
    15) Have you searched the web for related errors? For example, the following link describes a particular programming mistake that can lead to this error
    http://support.microsoft.com/support/kb/articles/Q125/7/49.asp
    By investigating answers to the above questions you may be able to narrow the cause of this error, which might allow you or others to help solve the problem.

  • Erreur R6025 "pure virtual function call"

    Bonjour
    Ci-joint un Vi labview, crée par Signal express. Fonctionnent pendant 24h, puis erreur : R6025, Pure virtual function call .
    On clique sur OK, puis fermeture de LABVIEW.
    Ce programme, doit enregistrer 24/24 des mesures qui sont stockées dans des variables partagées.
    Ces variables partagées sont remplies par un autre Vi d'acquisition.
    Attachments:
    Neutronique Harchivage.vi ‏301 KB

    Bonjour,
    L'erreur R6025 est une erreur Windows qui semble liée à des problèmes réseaux ou des paramètres Windows.
    Vous pouvez essayer ces quelques solutions :
    - désactiver le Firewall,
    - désactiver les anciennes version du Run-Time Engine de LabVIEW.
    Pour nous aider à mieux comprendre votre problème, voici quelques questions supplémentaires :
    - Quelle version de LabVIEW et de SignalExpress avez-vous? Quelle version de Windows ?
    - Est-ce qu'une mise à jour de Windows a eu lieu au moment de l'erreur ou dans les jours avant le lancement du programme?
    - Est-ce que le programme a déjà fonctionné ?
    Cordialement,
    Charlotte F. | CLAD
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    >> "Du 11 octobre au 17 novembre, 2 sessions en parallèle : bien démarrer - approfondir vos connais...

  • Data error (invalid data type 17) in a Remote Function Call

    Hi,
    I am passing 2 select-option tables to RFC.
    Tables have structures -
       Table1  SIGN(C1)
                   OPTION(C2)
                   HIGH(C6)
                   LOW(C6)
       Table2  SIGN(C1)
                   OPTION(C2)
                   HIGH(C20)
                   LOW(C20)
    At the destination side, I have created two table types which have same structure.
    But when I call the RFC , program terminates with error - "Data error (invalid data type 17) in a Remote Function Call"
      Not able to understand the reason for this error. Please help.
    Thanks,
    Sujeet

    Hi,
    check out this example
    [LINK|http://abap.googlar.eu/viewtopic.php?f=5&t=28]
    You have several ranges that you can use like RANGE_AUF.
    Function example:
    FUNCTION zexemple.
    *"*"Interface local:
    *"  IMPORTING
    *"     REFERENCE(R_HORA) TYPE  FLAG
    *"     REFERENCE(R_DIA_1) TYPE  FLAG
    *"     REFERENCE(P_IDOC) TYPE  FLAG
    *"  EXPORTING
    *"     REFERENCE(MSG) TYPE  CHAR255
    *"  TABLES
    *"      T_OIFSPBL STRUCTURE  OIFSPBL
    *"      SL_PBLNR STRUCTURE  RANGE_PBLNR
    *"      SL_MATNR STRUCTURE  RANGE_MATNR
    *"      SL_HORA STRUCTURE  RANGE_UZEIT
    *"      T_ERROS STRUCTURE  ZARSTRING
    ENDFUNCTION.
    Report:
    SELECT-OPTIONS: sl_pblnr FOR oirbpblb-pblnr,
                                  sl_matnr FOR a361-matnr.
    ~
    Final question:
    You are passing the values using TABLES and not IMPORTING right?

  • Execute Oracle Package Function call from FORTE

    Has anyone EVER successfully execute an Oracle Package Function call from FORTE
    via " sql execute procedure "?
    Here's my question, I am able to execute a stored procedure but hasn't figured
    out a way to execute a function which defined in a package. The syntax goes
    like this: sql execute procedure <PackageName>.<FunctionName> ( input
    input_parm, output output_parm). If anyone EVER successfully execute a
    function, please let me know, thanks.

    You'll need to provide a column alias for the function call:
    select func(val) as alias from dual

  • Function call in FormCalc

    I am trying to call a function (type4) from within a FormCalc exit event:
    if ($.rawValue <> "2") then
         type4.validate()
    endif
    But when I run the form, I get an error saying that the "script does not have a method 'validate'."
    My function definitely does have a method called 'validate', see below:
    function validate() {
    Can anyone help me identify what I'm doing wrong? Thanks for your help.
    --Bruce

    Hi,
    I beleive validate() is a reserved method, so you should rename your function into validateObj() or so.
    And when calling a function, the syntax looks like:
    if ($.rawValue <> "2") then
         validateObj()
    endif
    In contrast to JavaScript FormCalc can only call functions which have been declared before the function call.
    Just an example.
    This script works, because the function is declared before it's called.
    func alert(msg) do
              $host.messageBox(msg)
    endfunc
    if ($ < 2) then
              alert("value to small")
    else
              alert("value ok")
    endif
    but this script fails, because the function call points to a function which has not be declared yet.
    if ($ < 2) then
              alert("value to small")
    else
              alert("value ok")
    endif
    func alert(msg) do
      $host.messageBox(msg)
    endfunc

  • More function calls in stored procedure

    Hi,
    I would like to know if there are more function calls in a PL/SQL stored procedure, would it affect the performance of this procedure?
    Or will it be more efficient to have the body of those functions inside the procedure itself.
    Of course a method call is always costlier than the monolithic procedure but my question is how much would be difference in performance.
    Rgds
    Varad

    Yes, avoid using UDF  , means especially a scalar udf... See how you can re-write a scalar udf  as table valued udf.
    http://sqlblog.com/blogs/alexander_kuznetsov/archive/2008/05/23/reuse-your-code-with-cross-apply.aspx
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

Maybe you are looking for

  • Drag and drop in webpages

    Hi all. I'm playing a football manager game on the Internet and I need to drag and drop players from one place to another. I was wondering if there was any way of holding my iPhone screen so I can drag and drop. Thank you.

  • Extracting Vistex (Rebate & Commissions) to BW

    We will be implementing Vistex to process rebates and calculate sales commissions as part of our implementation of ECC 5.0 and BW 3.5.  I would welcome comments from any one with experience with Vistex and BW.  Particularly regarding the extractors t

  • Embed same SWF file multiple times in Flash file

    I want to include the same SWF file multiple times in the same flash file. I have a plain box that is clear, that becomes visible when clicked. I want to create a grid of them (about 50+). If I copy the layers and actions, they interfere with each ot

  • Activity allocaiton cost element reposting issue

    Hi Guru, Maintenance cost has been allocated to maintenance order using activity type MAINT1 ( allocation cost element MAINT1_ACT , category 43) , but business wanted to post to a different allocation cost element. So I created a new activity type MA

  • Weak signal lg exalt

    I bought my dad an exalt last month, he lives in apt we built on my house, but  my kitchen is open to his bedroom. I have a network extender a few year  sold. But Verizon told me exalt would get great signal in boonies even. He keeps one to 2 bars. W