Pointer to structure in parameter list of DLL

I want to use the CALL_LIBRARY_FUNCTION to access a function in a DLL
which returns a pointer to a structure in its parameter list. How can I
access this structure under LabVIEW 6.02? What is the parameter type I
have to select in the CALL_LIBRARY_FUNCTION configuration window - there
is no STRUCTURE or CLUSTER entry?
Any help is very much appreciated. Thanks, Frank

You may select "Adapt to Type" as a type of the parameter of the function, and then connect appropriate cluster to the output of the "Call Library" node.
Oleg Chutko.

Similar Messages

  • Question on the parameter type of DLL functions

    Question on the parameter type of DLL functions
    I am trying to develop an interface to control a laser with LV8.2  I am planing to use the VI “Call Library Function Node” to call the DLL and set the exact same parameters of functions in the DLL.
    According to the DLL manual of the laser, there are six functions.  One of the prototypes is:  function getstatuspointer : pointer. I don't know how to set this parameter for the function. Is there anyone who can give some hints? Thanks!
    BTW :The following is a description of the function:
    This function returns a 32 bit pointer to the STATUS data structure (Tstatusrec). In the 32 bit DLL, every application is using its own copy of the data structure (local
    memory). The data structure is a packed structure. "packed" means that the fields in the structure are not aligned on word or double-word boundaries.
    Tstatusrec = packed record
                            size : word;
                            initstat : byte;
                            queuefill : byte;
                            anzapp16 : word; (not used)
                            anzapp32 : word;
                            anzdock16 : word; (not used)
                            anzdock32 : word;
                            dll16ver : tchararray; (not used)
                            dll32ver : tchararray;
                            excimerver : tchararray;
                            excimer : TExcimerStatus;
                      end;

    Hi Jack,
    This is a good starting point when using Call Library Function node. Check out this Help Page
    Van L
    NI Applications Engineer

  • Blotted method parameter list

    As part of a class, I have a method of this form:
    static void superVisor( double ZC, double thetaX, double thetaY)
    The program runs fine but now I need to pass multiple values of ZC, thetaX and thetaY. The only way I can think of is to declare them as arrays - I'm looking at arrays sizes of 10,000+. This will really blot the parameter list! The list could be read from memory or from a file. I'm looking for ideas. Thanks

    Using a specific data structure needs considering these points -
    Would the underlying data need to be sorted?
    Would you need Random Access?
    Would the data change dynamically? etc.
    So if you read the values from memory, think about a structure that would optize your requirement, for a file scenario, a Random Access file probably would suit you best.
    Hope it's not too abstract!

  • WB 11.2.0.3 - No parameter list for FTP

    Hi, I'm new to the WB. I've imported a working application to a new server and tried to configure it. The problem is I cannot figure out where the parameter list (command, parameter_list, script, etc.) is. When I right click on the FTP icon and select "Edit details" there is only Name and Outgoing transactions options. Please, point me in the right direction.
    Thanks,
    Art

    In 11gR2 of OWB if you edit a process flow, the parameters for tasks can be found in the 'Structure' panel. So if you do not see this panel, whilst editing a process flow, use the menu bar View->Structure to enable it. This structure panel had all the contents of the process flow, so it has a tree containing all of the tasks, and for the tasks you can expand further and see the parameters. If you click on a parameter then the parameter details can be found in the Property Inspector.
    Cheers
    David

  • How to get key name  from parameter list

    hi..
    i want string from parameter list.. i hv already created parameter list like
    ADD_PARAMETER (param_list_id, 'EMPID', TEXT_PARAMETER,'123');
    ADD_PARAMETER (param_list_id, 'EMPNM', TEXT_PARAMETER, 'ABC');
    ADD_PARAMETER (param_list_id, 'EMPADD', TEXT_PARAMETER, 'XXX');
    i got value like '123' ,'ABC', 'XXX' using
    eg. get_parameter_attr(param_list_id,'EMPID',aprmlist,avalue)
    but i want key name like 'EMPID' , 'EMPNM', 'EMPADD' from param_list_id
    is it possible to get this key name from parameter list ???
    Thanks...

    I cannot think of a way to do that. The code that reads the list is supposed to know the key names. That is sort of the point with parameter lists. If you need to have parameter lists that can be interepreted by some code that doesn't know about a specific list but knows how to interpret it by inspecting the key names, perhaps you can specify a separate parameter list with the key names as values and call the keys of that list something generic?

  • Pointer to structure ActiveX Interface

    Hi,
    My Application is a ActiveX COM Server which exposes various methods. In one of the methods I need to pass a pointer to structure.
    My develope env is Microsoft Visual C++ .NET 6
    In the context of C programming, it would be something similar to this
    typedef _MyStruct_s
        BOOL blFlag1;
        BOOL blFlag2;
    }MyStruct_s;
    BOOL MyAPI(MyStruct_s *pstMyStrcut)
        BOOL RetVal;
        RetVal = (pstMyStrcut->blFlag1 && pstMyStrcut->blFlag2);
        result RetVal;

    Hi Brandon,
    Looks like this limitation is from TestStand ActiveX adapter, and not from ActiveX/COM itself.
    My application is an ActiveX/COM automation server. The same API (which is having issue through TestStand), does not have any issue if it is called from another UI based Standalone application.
    (This Standalone application basically implements similar features with GUI by calling the exposed APIs of ActiveX/COM automation server)
    Is any setting is missing (e.g. Custom Data Type etc) which is causing this problem?
    I am aware that TestStand does not have any issue with passing a pointer to structure for C DLL.
    Please let me know your inputs.
    Setup:
    TestStand 4.0
    OS- WindowsXP
    Thanks and Regards,
    Subhash
    Attachments:
    NI_structure_Issue.JPG ‏41 KB

  • Passing Select-Option to OO method via parameter list

    Is it possible to pass a reference to a select-option through the parameter list of a method such that the parameter can be used in a "where clause" using the conventional "IN" operator?  If so, how should the parameter be typed? 
    Thanks in advance,
    Philip Smith

    Sure, here's how.
    report zrich_0002 no standard page heading.
    tables: mara.
    *       CLASS lcl_app DEFINITION
    class lcl_app definition.
      public section.
        types: t_matnr type range of mara-matnr.
        data: imara type table of mara.
        methods: constructor importing im_matnr type t_matnr.
    endclass.
    *       CLASS lcl_app IMPLEMENTATION
    class lcl_app implementation.
      method constructor.
        select * into table imara from mara up to  100 rows
                     where matnr in im_matnr.
        check sy-subrc = 0.
      endmethod.
    endclass.
    data: myapp type ref to lcl_app.
    select-options: s_matnr for mara-matnr.
    start-of-selection.
      create object myapp
            exporting
                 im_matnr = s_matnr[].
    Welcome to SDN!.  Be sure to award points for helpful answers and mark your post as solved when solved completely.  Thanks.
    REgards,
    Rich Heilman

  • Alternatives to long parameter lists when calling methods

    I've heard you shouldn't have more than 3 parameters when calling methods. What are the alternatives to long parameter lists when calling methods? Compounding parameters into new inner classes, declaring them as member fields? Which one is preferable?

    Okay, I get it. But since it's late in the day, I'll share my additional wandering thoughts. And I'll just go ahead and preemptively slap myself for doing so. Ouch! There. So the rules are more like this:
    1) Only use setters if the values in question are meant to be part of the state of an object.
    2) In general, don't let external entities directly set the state of an object.
    Which can be combined into:
    1) In general, never use setters.
    Which could be reworded to:
    1) Only use setters in non-general situations.
    Or:
    1) Only use setters when setters are a good solution...which isn't very often...generally speaking...
    Or if I were to infer when it's a good solution:
    1) Only use a setter when it is useful to the caller and has no significant negative effects on the operation of the object nor the maintainability, size, or performance of the class...generally speaking...
    Actually, you might just infer from here forward that the "generally speaking" is implicit to every rule, and is essentially the "There is an exception to every rule" rule. Which is an interesting rule because it can be applied to itself, resulting in a paradox...generally speaking...but I digress.
    And then translated back to the original topic:
    1) You can use a setter instead of a constructor argument so long as the value isn't needed at time of construction (or a default value will suffice) and it is useful for the caller to be able to use the setter and using the setter has no significant negative effects on the operation of the object nor the maintainability, size, or performance of the class.
    But this won't quite cut it either. With the input of others, we could eventually devise a very concise rule, but it will end up being so long that on one will ever read it...making it an ideal candidate to be included in a legal document. Which will eventually find it's way into a very long scroll pane with a check box at the end exclaiming that you read the document, at which you will not be able to continue unless you check the check box...at which point, what do you do? After all, you are not a liar...generally speaking...
    In summary, you could potentially use setters in some limited cases, but in the general sense, that's more of an option than a recommendation. :-)

  • FRM-47013 error: Cannot add parameter P LEVEL to Parameter List REPDATA: pa

    Hello! I am using Forms 6i and get the above error-FRM-47013 error: Cannot add parameter P LEVEL to Parameter List REPDATA: parameter with this name exists. when clicking on the Run Report button on a parameter form. I have googled and I'm doing everything I know to do, but cannot get rid of the error. Any help is greatly appreciated! I only have 3 months Oracle experience coming from a VB/C# background.
    Here's my code that is on the Run Report Program Unit on the parameter form:
    PROCEDURE run_report IS
    pl_id ParamList;
    pl_name VARCHAR2(10) := 'repdata';
    v_rep_num number;
    hold_where_clause varchar2(2000);
    charFY                                                  varchar2(4);
    the_connect varchar2(10);
    CharAlertText          varchar2(300); --Alert message text
         NumAlertVal      number; --Alert prompt 
    begin
         if :CONTROL.BEGINNING_FISCAL_YEAR is null or :CONTROL.ENDING_FISCAL_YEAR is null then
                        CharAlertText := 'You must enter Beginning and Ending Fiscal Years before running this report!';
                        set_alert_button_property('ALERT_1',ALERT_BUTTON1,LABEL,'Ok'); --alert value equals 88
                        set_alert_property('ALERT_1',title,'No Year');
                        set_alert_property('ALERT_1',alert_message_text,CharAlertText);
                        NumAlertVal :=show_alert('ALERT_1');
                        raise form_trigger_failure;
         end if;
         if :CONTROL.BEGINNING_FISCAL_YEAR > :CONTROL.ENDING_FISCAL_YEAR then
                        CharAlertText := 'You must enter an Ending Year Fiscal Year greater than or equal to Beginning Year!';
                        set_alert_button_property('ALERT_1',ALERT_BUTTON1,LABEL,'Ok'); --alert value equals 88
                        set_alert_property('ALERT_1',title,'Invalid Year');
                        set_alert_property('ALERT_1',alert_message_text,CharAlertText);
                        NumAlertVal :=show_alert('ALERT_1');
                        raise form_trigger_failure;
         end if;
    --This section creates system identified parameter list.      
    BEGIN
    pl_id := Get_Parameter_List(pl_name);
    IF Not Id_Null(pl_id) THEN
    Destroy_Parameter_List(pl_name);
    --pl_id := Create_Parameter_List(pl_name);
    --IF Id_Null(pl_id) THEN
    --Message('Error creating parameter list '||pl_name);
    --RAISE Form_Trigger_Failure;
    --END IF;
    END IF;
    pl_id := Create_Parameter_List(pl_name);
    Add_parameter(pl_id,'P_LEVEL',text_parameter,:control.hierarchy);
    IF Id_Null(pl_id) THEN
    Message('Error creating parameter list '||pl_name);
    RAISE Form_Trigger_Failure;
    END IF;
    END;
    --End section that creates parameter list.
    BEGIN
    -- This will get the next sequence number from the database to make the
    -- report file name unique
    select ombil.report_seq.nextval
    into v_rep_num
    from dual;
    exception when no_data_found then
    display_error_text(203,'S','N');
    raise form_trigger_failure;
    END;
    If :control.hierarchy = 1 then
    hold_where_clause := ' ';
    elsif :control.hierarchy = 2 then
         hold_where_clause := ' AND DIV.ID = ' || :control.division_poplist ||' ';
    elsif :control.hierarchy = 3 then
    hold_where_clause := ' AND DIST.ID = ' || :control.district_poplist ||' ';
    elsif :control.hierarchy = 4 then
              hold_where_clause := ' AND PS.ID = ' || :control.psite_poplist ||' ';
    elsif :control.hierarchy = 5 then
    hold_where_clause := ' AND PS.ID IN ' || :CONTROL.MULTI_PROJECT_SITES ||' ';
    end if;
    --charFY := 'where to_char(MP.fiscal_year, ''RRRR'') = to_char(:CONTROL.FISCAL_YEAR, ''RRRR'')';
    Add_Parameter(pl_id,'PARAMFORM',TEXT_PARAMETER,'NO');
    Add_Parameter(pl_id,'DESTYPE',TEXT_PARAMETER,'FILE');
    Add_Parameter(pl_id,'DESNAME',TEXT_PARAMETER,:global.cur_reports_path||to_char(v_rep_num)||'.'||:control.format);
    Add_parameter(pl_id,'P_WHERE',text_parameter,hold_where_clause);
    Add_parameter(pl_id,'P_FY_BEGIN',text_parameter, to_char(:CONTROL.BEGINNING_FISCAL_YEAR, 'DD-MON-YYYY'));
    Add_parameter(pl_id,'P_FY_END',text_parameter, to_char(:CONTROL.ENDING_FISCAL_YEAR, 'DD-MON-YYYY'));
    --Add_parameter(pl_id,'P_LEVEL',text_parameter,:control.hierarchy); 
    /*if :control.format = 'CSV' then
    Add_Parameter(pl_id,'DESFORMAT',TEXT_PARAMETER,'DELIMITED');
              Add_Parameter(pl_id,'DELIMITER',TEXT_PARAMETER,',');
                        run_product(REPORTS,'es_adm_mit_percent_csv.rep',SYNCHRONOUS,RUNTIME,FILESYSTEM,pl_id,NULL);
    else */
              --Add_parameter(pl_id,'P_LEVEL',text_parameter,:control.hierarchy);
    Add_Parameter(pl_id,'DESFORMAT',TEXT_PARAMETER,:control.format);
         --end if;
    run_product(REPORTS,'es_fish_mit_reqs.rep',SYNCHRONOUS,RUNTIME,FILESYSTEM,pl_id,NULL);
    --Destroy_Parameter_List(pl_id);
    web.show_document(:global.cur_reports_url||to_char(v_rep_num)||'.'||:control.format,'_SELF');
    exception when others then
    display_error_text(202,'S','N');
    end;
    Edited by: [email protected] on Feb 27, 2009 6:35 AM

    A coworker figured out that the switchboard data input form was pointed at the wrong executable file. I knew there wasn't anything wrong with my code! I'll remember this one next time!
    Edited by: [email protected] on Feb 27, 2009 12:24 PM

  • Parameter list not showing all in BIP Report

    Hi Expert,
    I created a parameter list in BI Publisher, type is menu. I can only select on org, if I use "ALL",actually is the default, I want show all the orgs, but it won't show anything. How do I make it work?
    Thank you!

    Just type this in your where clause:
    where org =nvl(:p_org, org)This is because when you select "All" as parameter value the actual value being passed to the query is "null".
    Therefore when the where clause is evaluated the nvl function will return org making redundant the condition
    and thus will run your query for all org values :)
    It is explained here:
    http://download.oracle.com/docs/cd/E12844_01/doc/bip.1013/e12187/T518230T518233.htm#4511631
    Hope this helps
    Cheers
    Jorge
    p.s. If this answers your question then please grant the points and close the thread

  • When sharing iMovie11 project  with iDVD inmediately message 'the project could not be prepared for publishing because an error occurred (Error in user parameter list).  Finalize issue?

    When sharing my 60 minutes iMovie project with iDVD inmediately message 'The project could not be prepared for publishing because an error  occurred (Error in user parameter list)' appears. Could not find the user parameter list, so I've no more info about this error.
    Option File - Finalize Project gives inmediately the same errormessage.
    Also option Share - Media Browser - Large/Medium/Mobile give the same errormessage.
    Please advise, thank you!

    Additional info: trying to write to internal disk (268 GB Free out of 499 GB)
    Please advise, alko80

  • Build XML for Custom Nested Accordian (like Tree View Structure) for SharePoint List Data

    Expected output in Xml:
    <?xml version="1.0" encoding="utf-8" ?>
    - <TopRoot>
    - <Root id="1" Name="Department">
    - <Type id="2" Name="IT">
    - <SubType id="3" Name="Technology">
      <SubSubType id="4" Name="Sharepoint" />
      <SubSubType id="5" Name="ASP.NET" />
      <SubSubType id="6" Name="HTML 5" />
      </SubType>
      </Type>
    </Root>
    </TopRoot>
    List Details:
    list details for storing category / sub category data and code to build tree structure for the same.
    1.Create Custom List named “CategoryDetails”:
    2.Create Column “Category Name” of type single line of text. Make it as required field and check Yes for Enforce Unique values.
    3.Create column “Parent Category” of type lookup. under Additional Column Settings.
    Get information dropdown, select “CategoryDetails”.
    4.Choice column ["SRTypeName"] 1.Root,2.SRTYPE,3.SubSRTYPE, 4.SUBSUBSRTYPE
    In this column dropdown, select “Category Name”:  
    Referance:
    http://www.codeproject.com/Tips/627580/Build-Tree-View-Structure-for-SharePoint-List-Data    -fine but don't want tree view just generate xml string
    i just follwed above link it work perferfectly fine for building tree view but i don't want server control.
    Expected Result:
    My ultimate goal is to generate xml string like above format without building tree view.
    I want to generate xml using web service and using xml i could convert into nested Tree View Accordian in html.
    I developed some code but its not working to generate xml /string.
    My modified Code:
    public const string DYNAMIC_CAML_QUERY =
            "<Where><IsNull><FieldRef Name='{0}' /></IsNull></Where>";
            public const string DYNAMIC_CAML_QUERY_GET_CHILD_NODE =
            "<Where><Eq><FieldRef Name='{0}' /><Value Type='LookupMulti'>{1}</Value></Eq></Where>";
            protected void Page_Load(object sender, EventArgs e)
                if (!Page.IsPostBack)
                 string TreeViewStr= BuildTree();
                 Literal1.Text = TreeViewStr;
            StringBuilder sbRoot= new StringBuilder();
            protected string BuildTree()
                SPList TasksList;
                SPQuery objSPQuery;
                StringBuilder Query = new StringBuilder();
                SPListItemCollection objItems;
                string DisplayColumn = string.Empty;
                string Title = string.Empty;
                string[] valueArray = null;
                try
                    using (SPSite site = new SPSite(SPContext.Current.Web.Url))
                        using (SPWeb web = site.OpenWeb())
                            TasksList = SPContext.Current.Web.Lists["Service"];
                            if (TasksList != null)
                                objSPQuery = new SPQuery();
                                Query.Append(String.Format(DYNAMIC_CAML_QUERY, "Parent_x0020_Service_x0020_Id"));
                                objSPQuery.Query = Query.ToString();
                                objItems = TasksList.GetItems(objSPQuery);
                                if (objItems != null && objItems.Count > 0)
                                    foreach (SPListItem objItem in objItems)
                                        DisplayColumn = Convert.ToString(objItem["Title"]);
                                        Title = Convert.ToString(objItem["Title"]);
                                        int rootId=objItem["ID"].ToString();
                                        sbRoot.Append("<Root id="+rootId+"
    Name="+Title+">");
                                        string SRAndSUBSRTpe = CreateTree(Title, valueArray,
    null, DisplayColumn, objItem["ID"].ToString());
                                        sbRoot.Append(SRAndSUBSRTpe);
                                        SRType.Clear();//make SRType Empty
                                        strhtml.Clear();
                                    SRType.Append("</Root>");
                catch (Exception ex)
                    throw ex;
                return SRType.ToString();
             StringBuilder strhtml = new StringBuilder();
            private string CreateTree(string RootNode, string[] valueArray,
          List<SPListItem> objNodeCollection, string DisplayValue, string KeyValue)
                try
                    strhtml.Appends(GetSRType(KeyValue, valueArray, objNodeCollection);
                catch (Exception ex)
                    throw ex;
                return strhtml;
            StringBuilder SRType = new StringBuilder();
            private string GetSRType(string RootNode,
            string[] valueArray, List<SPListItem> objListItemColn)
                SPQuery objSPQuery;
                SPListItemCollection objItems = null;
                List<SPListItem> objNodeListItems = new List<SPListItem>();
                objSPQuery = new SPQuery();
                string objNodeTitle = string.Empty;
                string objLookupColumn = string.Empty;
                StringBuilder Query = new StringBuilder();
                SPList objTaskList;
                SPField spField;
                string objKeyColumn;
                string SrTypeCategory;
                try
                    objTaskList = SPContext.Current.Web.Lists["Service"];
                    objLookupColumn = "Parent_x0020_Service_x0020_Id";//objTreeViewControlField.ParentLookup;
                    Query.Append(String.Format
                    (DYNAMIC_CAML_QUERY_GET_CHILD_NODE, objLookupColumn, RootNode));
                    objSPQuery.Query = Query.ToString();
                    objItems = objTaskList.GetItems(objSPQuery);
                    foreach (SPListItem objItem in objItems)
                        objNodeListItems.Add(objItem);
                    if (objNodeListItems != null && objNodeListItems.Count > 0)
                        foreach (SPListItem objItem in objNodeListItems)
                            RootNode = Convert.ToString(objItem["Title"]);
                            objKeyColumn = Convert.ToString(objItem["ID"]);
                            objNodeTitle = Convert.ToString(objItem["Title"]);
                            SrTypeCategory= Convert.ToString(objItem["SRTypeName"]);
                           if(SrTypeCategory =="SRtYpe")
                              SRType.Append("<Type  id="+objKeyColumn+" Name="+RootNode+ ">");
                             if (!String.IsNullOrEmpty(objNodeTitle))
                              SRType.Append(GetSRType(objKeyColumn, valueArray, objListItemColn));
                          if(SrTypeCategory =="SRSubTYpe")
                              SRType.Append("<SRSubType  id="+objKeyColumn+" Name="+RootNode+
    ">");  
                             if (!String.IsNullOrEmpty(objNodeTitle))
                              SRType.Append(GetSRType(objKeyColumn, valueArray, objListItemColn));
                          if(SrTypeCategory =="SubSubTYpe")
                              SRType.Append("<SubSubType  id="+objKeyColumn+" Name="+RootNode +"
    ></SubSubType");  
                        SRType.Append("</SubType>");
                        SRType.Append("</Type>");
                catch (Exception ex)
                    throw ex;
                return SRType.ToString();
                // Call method again (recursion) to get the child items

    Hi,
    According to your post, my understanding is that you want to custom action for context menu in "Site Content and Structure" in SharePoint 2010.
    In "SiteManager.aspx", SharePoint use MenuItemTemplate class which represent a control that creates an item in a drop-down menu.
    For example, to create or delete the ECB menu for a list item in
    "Site Content and Structure", we can follow the steps below:
    To add the “My Like” menu, we can add the code below:      
    <SharePoint:MenuItemTemplate
    UseShortId=false
    id="OLListItemLike"
    runat="server"
    Text="My Like"
    ImageUrl="/_layouts/images/DelItem.gif"
    ClientOnClickNavigateUrl="https://www.google.com.hk/"
    />
    To remove the “Delete” menu, we can comment the code below:
    <SharePoint:MenuItemTemplate
    UseShortId=false
    id="OLListItemDelete"
    runat="server"
    Text="<%$Resources:cms,SmtDelete%>"
    ImageUrl="/_layouts/images/DelItem.gif"
    ClientOnClickScript="%SmtObjectDeleteScript%"
    />            
    The result is as below:
    More information:
    MenuItemTemplate Class (Microsoft.SharePoint.WebControls)
    MenuItemTemplate.ClientOnClickScript property (Microsoft.SharePoint.WebControls)
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Reports 6.0 and Parameter Lists and Generate to File

    I am using the run_product built in from Forms 6.0 and opening
    up a report passing it several parameters via a parameter list.
    Everything works great when previewing the report.
    There is the option in the report preview under File -> Generate
    to File. When I generate a report to file using any type of
    format it appears that the report does not use the parameters
    that I passed in originally from the form. It appears that it
    looses all the parameters I passed in. This is most concerning
    to me. Am I doing something wrong or is this a "feature" I
    didn't know about? I really would like users to have this
    ability.
    null

    Yes I guess this will work, but the option to generate to file
    is extremely misleading if you ask me. This option should
    generate the current report with the current parameters. This
    is unacceptable as far as I am concerned and should be
    considered a bug. Oracle needs to give us more control over
    FORMS and REPORTS into all too many situations I have been
    frustrated because I am not able to do something that I want to
    do.
    I feel in general REPORTS object is very limited compared to
    crystal reports....
    Dan Paulsen (guest) wrote:
    : Give the user the option on the calling form whether to save
    the
    : report to file or just view it. If they want to save to file,
    : pass the parameter to save to file when you call the report
    and
    : suppress the parameter form, this will eliminate the problem.
    : Spencer Tabbert (guest) wrote:
    : : I am using the run_product built in from Forms 6.0 and
    opening
    : : up a report passing it several parameters via a parameter
    : list.
    : : Everything works great when previewing the report.
    : : There is the option in the report preview under File ->
    : Generate
    : : to File. When I generate a report to file using any type of
    : : format it appears that the report does not use the
    parameters
    : : that I passed in originally from the form. It appears that
    it
    : : looses all the parameters I passed in. This is most
    : concerning
    : : to me. Am I doing something wrong or is this a "feature" I
    : : didn't know about? I really would like users to have this
    : : ability.
    null

  • How and where should I create a parameter list

    Hi, I4m trying to create a parameter lists but I don4t know where and how.
    I guess as a program unit but as function or procedure, sorry I4m new on this for that I4m finding this a bit difficult. Please, someone could help me to understand this:
    PROCEDURE Run_Emp_Report IS
    pl_id ParamList;
    BEGIN
    ** Check to see if the 'tmpdata' parameter list exists.
    pl_id := Get_Parameter_List('tmpdata');
    ** If it does, then delete it.
    IF NOT Id_Null(pl_id) THEN
    Destroy_Parameter_List( pl_id );
    END IF;
    ** Create the 'tmpdata' parameter list afresh.
    pl_id := Create_Parameter_List('tmpdata');
    ** Add a data parameter to this parameter list that will
    ** establish the relationship between the named query
    ** 'EMP_QUERY' in the report, and the record group named
    ** 'EMP_RECS' in the form.
    Add_Parameter(pl_id,'EMP_QUERY',DATA_PARAMETER,'EMP_RECS');
    **Pass a Parameter into PARAMFORM so that a parameter dialog
    will not appear
    **for the parameters being passing in.
    Add_Parameter(pl_id, 'PARAMFORM', TEXT_PARAMETER, 'NO');
    ** Run the report synchronously, passing the parameter list
    Run_Product(REPORTS, 'empreport', SYNCHRONOUS, RUNTIME,
    FILESYSTEM, pl_id, NULL);
    END;

    Hi,
    What you've pasted the code here is absolutely correct.
    You'll have to write the code in Forms builder.
    You can either paste the same code in a procedure & call that procedure
    from button's When-Button-Pressed trigger or paste the code in
    your button's When-Button-Pressed trigger like this :
    DECLARE
    pl_id ParamList;
    BEGIN
    ** Check to see if the 'tmpdata' parameter list exists.
    pl_id := Get_Parameter_List('tmpdata');
    Run_Product(REPORTS, 'empreport', SYNCHRONOUS, RUNTIME,
    FILESYSTEM, pl_id, NULL);
    END;
    However, don't write the code in a function as you will need to return some value from the function.
    Thanks,
    Mayur Shah
    [email protected]

  • CR 2008, all values in parameter list not showing up

    The parameter is not optional, the parameter value exists in the view on SQL server, but at report run-time, only get 5 pages of possible values to select from and user needs to go back farther to get the required report.
    I can get the report to run in full CR version by passing the value into the select expert, but users only get prompt window from the runtime version of CR.
    How can I get ALL the values of the field in the view to show up in parameter list?
    Thanks for any pointers.
    Robert

    Not sure if the help you metion is equivalnet to KB [1218588 - How to increase the number of values in a dynamic parameter list?|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313338333533383338%7D.do], but have a look.
    Also, make sure you are on SP3:
    https://smpdl.sap-ag.de/~sapidp/012002523100007123572010E/cr2008_sp3.exe
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

Maybe you are looking for

  • Get open and close items

    Hello All, I need to get Open and Close items for customer based on company code....i mean to say user don't want to give customer number he want to get Open and Close item for all customer under that company code. It would be great if some one sugge

  • How to restore photos after i tried to delete them, they are still there

    I tried to delete some photos to give me room on my start up disc. First I tried saving them to a thumb drive then tried deleting the pix. The photos come up blank but I still see them sometimes. how do I restore them completely. part 2 what is the b

  • How to set White Balance details in Metadata Bridge Cs6 shooting with MarkIII 5D ?

    Is there any way to get detailed info of White Balance setting in Bridge Metadata ?  I'm getting only "custom" ; my instructor in College needs more detailed data in my contact sheets. Thanks for any imput

  • IPhone Reservation and New ATT Account

    I was waiting to see reception of iPhone 4 before picking mine up later today. I am willing to take a chance and pick it up. However, I had an iPhone 3GS which I sold but had reserved the new phone with my original account. In the meantime I had port

  • Using DV deck

    Hi guys, Any pro video guys around? Are DV decks (sonyDSR45, JVC....) acceptable for iChat? I want to try multi-source via DVdeck interface. Please advice... thanks