Passing querystring parameters to InfoPath Filler form

This is NOT relating to a browser enabled form.  I don't have any problem passing the querystring when browser enabled.  I have the requirement to pass a record ID (listitemID) to a filler form via a link on a SharePoint page.  The form has
been published to the site as a content type using the XSN as the content type template.  It is attached to a SharePoint form library as the only content type.  If I select the default 'New Document' control from the library it opens a new form just
fine.  However, using the URL....
<a href="/sites/Group/_layouts/FormServer.aspx?XsnLocation=http://sharepoint2010/sites/Group/TestForm.xsn&amp;SaveLocation=http%3A%2F%2Fsharepoint2010%2Fsites%2FGroup%2TestLib&amp;ClientInstalled=true&amp;Source=http%3A%2F%2Fsharepoint2010%2Fsites%2FGroup%2FTestLib%2FForms%2FAllItems%2Easpx&amp;DefaultItemOpen=1&amp;InstanceID=(Need
to add parameter here)">Add document</a>
The form opens but  when i pass a known InstanceID I only get the data populated for the 1st record in the sharepoint list.  This form can not be converted to a browser enabled form becuase there are some print/save requirements that browser forms
can't accomodate. I know that the form event load code works fine as it will work if done as a browser enabled form.

Two ideas come to mind, I have tested neither:
1. Try adding the NoRedirect=true parameter and see if that can prevent the InstanceID
from being dropped.
2. Try using editDocumentWithProgID2 javascript function to force open the InfoPath form directly in client application, there might be a way to pass the initial parameter through the javascript-ActiveX
wrapper.  This will require some javascript crawling to figure out.
Check opening the form using the Filler with a command line switch, and the form load works as expected.
http://office.microsoft.com/en-us/infopath-help/command-line-switches-for-infopath-HP010148328.aspx
jliu - johnliu.net - sharepointgurus.net

Similar Messages

  • OpenDocuments.ViewDocument Method fails if document is an InfoPath Filler form (xsn)

    Hi,
    I have a custom webpart with links to different documents.
    When the link is clicked I run the following JavaScript to open the document in the users client application:
    function ViewDoc(docpath) {
    NewDocumentButton = new ActiveXObject("SharePoint.OpenDocuments.3");
    if (!NewDocumentButton.ViewDocument(docpath)) {
    alert('Opening document failed.\n' + docpath);
    This is working for Word files and Excel files but not if the document is an xsn file.
    Any ideas why it don't work with InfoPath forms and have a solution?
    Environment is SharePoint Server Standard.

    Hi,
    According to your post, my understanding is that you had an issue about opening the xsn file.
    To open the InfoPath form, we should use the SharePoint.OpenXMLDocuments
    method.
    You can refer to the following code snippets, it worked well in my environment.
    function openDoc(){
    var NewDocumentButton = new ActiveXObject("SharePoint.OpenXMLDocuments");
    var docpath="http://sp/LIbA/Form.xsn";
    if (!NewDocumentButton.EditDocument2(window , docpath , "InfoPath.Document")) {
    alert('Opening document failed.\n' + docpath);
    Thanks,
    Jason
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jason Guo
    TechNet Community Support

  • Passing Page Parameters back to a Form

    Hi,
    I was thinking how I could retain a value that I choose from a Combobox that comes from an LOV.
    When I press on my button it refreshes the page (tabs) but the field with the LOV populated COMBOBOX keeps resetting itself back to the original value found there when you first get to the page.
    Is there anyone that might be familiar with this sort of value passing from page to form?
    I would really appreciate this,
    Thank you in advance :-)
    Ken

    I don't know how do you create this hyperlink, but you should try to remove '&' before "reportsID=8", so the url will be:
    http://<servername>/folder/report_select.asp?reportID=8
    Thanks,
    -Shaun

  • InfoPath Filler 2010 will not open a form in SharePoint 2013

    I'm having a problem with the coexistence of SharePoint 2013 and Office 2010, specifically InfoPath.
    We are running SharePoint 2013 Standard, so we do not have access to web-enabled InfoPath forms, which is okay since all of our client machines have InfoPath Filler as part of their Office 2010 install.
    The problem is I have created a form and published it to a SharePoint 2013 library but when I try to create a new document in the library I get a page cannot be displayed error or the page just hangs. 
    However, as a troubleshooting step, I installed InfoPath 2013 on my client machine and when I access the library and create a new document it opens the form successfully. 
    I've changed the settings of the library so it uses the client application instead of trying to open in the browser, I've changed the trust settings to every possible configuration I can think of but I cannot get InfoPath 2010 to open a form published to
    SharePoint 2013.
    Is this a known compatibility issue, a bug, or am I missing something?
    Thanks,
    Kevin

    I encountered this issue recently. Some of our suers have upgraded to Office 2013 but a lot still are on office 2010. I did not want a solution that relied heavily on the users to do something, like upgrade to 2013 or modify 2010. That's not ideal.
    I realized the solution was very simple. I edited the InfoPath template within the document library in sharepoint > Form Options > Compatibility, change it to InfoPath filler form 2010. It still works for me and I have version 2013, so now it allows
    users with older versions to use it as well. I confirmed with the affected users that they can now access the form.

  • Pass Checkbox Parameters from HTML Form to a stored procedure

    I'm still looking for a solution to my forms problem. FYI, I'm not using Applications Express to build my application--I'm using straight PL/SQL. I need to know how to pass checkbox parameters from my Web form. I'm allowing folks to select one or more checkboxes on a form that will call a delete function to delete the selected records. What I read in Oracle's "Database Application Developer's Guide - Fundamentals" isn't helpful to me. If someone would point me to some examples, maybe I could see what I'm doing wrong. Here's what was written in "Database Application Developer's Guide - Fundamentals":
    All the checkboxes with the same NAME attribute make up a checkbox group. If none of the checkboxes in a group is checked, the stored procedure receives a null value for the corresponding parameter.
    If one checkbox in a group is checked, the stored procedure receives a single VARCHAR2 parameter.
    If more than one checkbox in a group is checked, the stored procedure receives a parameter with the PL/SQL type TABLE OF VARCHAR2. You must declare a type like this, or use a predefined one like OWA_UTIL.IDENT_ARR. To retrieve the values, use a loop:
    CREATE OR REPLACE PROCEDURE handle_checkboxes ( checkboxes owa_util.ident_arr )
    AS
    BEGIN
    FOR i IN 1..checkboxes.count
    LOOP
    htp.print('&lt;p&gt;Checkbox value: ' || checkboxes(i));
    END LOOP;
    END;
    SHOW ERRORS;

    I'm not sure I understand what your issue is.
    If your web form has the following checkboxes defined all with the same name:
    <input type="checkbox" name="attrib" value="1">one</input>
    <input type="checkbox" name="attrib" value="2">two</input>
    <input type="checkbox" name="attrib" value="3">three</input>Then you would create and register a procedure to handle the form submission that has a parameter with the name attrib of type owa_util.ident_arr e.g.:
    create or replace procedure handle_form(attrib owa_util.ident_arr) as
      iter number;
    begin
      for iter in attrib.first .. attrib.last loop
        -- do something with attrib(iter)
      end loop;
    end;
    /Now the one problem with this handler (or any form handler for that matter) is that if the user selects none of the check boxes, or no value for any of the expected parameters, the handler would be called with some parameters missing or with out any parameters passed to it, and the call will error out.
    To get around that you need to provide default values for all the parameters passed to your handler including the ident_arr parameters, however with ident_arr parameters that's difficult to do with standalone procedures. If you place your procedure in a package you can define package level variables of the appropriate types that can be used as default values:
    create or replace package my_web as
      empty_arr owa_util.ident_arr;
      procedure handle_form(attrib owa_util.ident_arr := empty_arr);
    end my_web;
    create or replace package body my_web as
      procedure handle_form(attrib owa_util.ident_arr := empty_arr) as
        iter number;
      begin
        for iter in attrib.first .. attrib.last loop
          -- do something with attrib(iter)
        end loop;
      end;
    end my_web;
    /now when you hit the situation where the user doesn't select any check boxes, the call to handle_form won't err out due to missing parameters, and the empty_arr won't have any elements to iterate over so the loop in the procedure body will be fine and you will be able to retrieve each selected check box value from the attrib array when you iterate over it.

  • Passing application parameters to 9i forms

    We recently converted our Forms 6 forms to 9i, on Solaris. We recompiled them on AIX and got them running, except that I have trouble figuring out how to pass application parameters. We passed the parameters on the run-form command line in our olf forms.
    In 9i, I tried passing the parameter through the URL; I also tried assigning the the parameter values in formsweb.cfg. Does baseHTML need to be involved in this?
    Also Oracle does not certify that forms 9i for AIX. Does anyone know of any problem running on AIX.

    Clayton,
    do you mean custom parameters when saying application parameters?
    if you application contains custom parameters that are passed when starting the Forms, then this can be added using the otherparams parameter.
    E.g.
    otherparams=usesdi=yes myparam1=foo myparam2=foo2
    The other params parameter can be set in the formsweb.cfg file (forms90/server) globally for all applications or individual for a single application. If you need to pass custom parameters in the URL then it could be done more nicely if you specify the following in the formsweb.cfg file
    otherparams=usesdi=%usesdi% myparam1=%myparam1% myparam2=%myparam2%
    In the request URL you would request the application by
    .../forms90/f90servlet?config=myApp&usesdi=yes&myparam1=12&myparam2=hello
    "myApp" would be a named configuration in the formsweb.cfg file like:
    [myApp]
    form=myEmp
    userid=scott/tiger@orcl
    lookandfeel=oracle
    otherparams=usesdi=%usesdi% myparam1=%myparam1% myparam2=%myparam2%
    You don't need to change the baseHTML file for this. The Forms system commands are pre-defined in formsweb.cfg and don't need to be added to the URL
    Haven't heard about Forms not running on AIX, so I cannot help you with this question
    Fran

  • InfoPath form opens in the browser instead of InfoPath Filler when a link is clicked from the Approval Task email

    I have an admin approved InfoPath 2010 form that is web enabled. It is published to a SharePoint 2010 Forms library and an Approval Workflow is attached to it.
    The form needs to open up in the InfoPath Filler with the Workflow Task bar at the top so users can approve the task from within the form and not go to Tasks list to do so.
    Here's a problem I am experiencing: sometimes the form opens in InfoPath Filler and sometiems it opens in the browser when the link to approve the form is clicked form the email that is sent by the workflow.
    Windows 7, IE 9, MS Office 2010:
    The form opens up in InfoPath filler like it supposed to. The Workflow task bar is there for users to approve the form.
    Surface Pro with Windows 8.1, IE 11 and MS Office 2013
    The form opens up in the browser and there is no Workflow task bar at the top.
    Things that I've already looked at and tried which didn't solve the issue:
    - The forms library is exclusivly set to open documents/forms in the Client Application
    - Set the browser compatibility mode in IE 11, that doesn't work too well, because you have to do it every time you open the browser.
    - Setting browser compatility in IE 11 reintroduced another issue, of multiple login promts, which was fixed by entering the SharePoint site in question into the Trusted sites by a group policy. Adding the site to trusted sites made the forms open up in the
    browser.
    - Researched compatibility issues with InfoPath and Windows 8.1, cannot find anything.
    - Researched compatibility issues with InfoPath 2010, Windows 8.1 and SharePoint 2010, also didn't find anything.
    Can someone offer a suggestion on how to fix this problem, preferably with no code, because we are not allowed to put custom code on the server?
    I need to force InfoPath form to open in InfoPath Filler when the link to the form is clicked from the Workflow email. Also the login prompts should not pop up. Need it to work on all the platforms: Windows 7, and Surface Pro Windows 8.1.
    Thank you.

    Hi,
    Thank you for your response.
    [Steps about how to capture the capture the fiddler log]
    ===========================================
    1. Download fiddler from
    http://fiddler2.com/
    2. Install fiddler and launch fiddler.
    3. When the fiddler be launched, the log will be enabled automatically.
    4. You can click “X” to remove all the records before you reproduce the issue.
    5. If the web site has been configured to https. Please enable https option:
                 Click “Tools” -> “Fiddler Options”            
    Switch to HTTPS tab, then check “Capture HTTPS CONNECTs” and “Decrypt HTTPS traffic”.
    6. Then repro the issue.
    7. Click “File”->”Capture Traffic”, uncheck the Option “Capture Traffic” to make sure the “
    ” is not shown, that mean the logs has been stopped.
    8. Click “File”->”Save” ->”All sessions”, save the file.
    Any quesitons, please let me know.
    Best Regards,
    Dats Luo

  • Passing parameters to reports from forms.

    Hi
    we are using developer suite 10g and developed some applications.Our reports are working from report buider and also from the forms when we are not passing any parameter.
    But when we add the clause to pass the parameter from forms fields it does not show any values and we get a blank report.
    when we use this code it works with default value set in the report
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=no');
    But when we use code to pass the parameter like this it does not work
    SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'EMPLOYEE_TICKET_NO='||lpad(ltrim(:hris_employee.em_ticket_no),5,' ')||'paramform=no');
    Please suggest how to pass parameter values from forms.
    Thanks in advance

    Hi Ansu
    In your code set paramform ='Yes' .Then run report ,it will show you the values that are passing through parameters.SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,'paramform=yes');
    If it doesnt work for you.
    Try this code
    declare
         pi_id paramlist;
    begin
         pi_id := get_parameter_list('item_param');
    if not Id_null(pi_id) then
         destroy_parameter_list(pi_id);
         end if;
    pi_id := create_parameter_list('item_param');
    add_parameter(pi_id,'PARAMFORM',TEXT_PARAMETER,'no');
    /**********Add here your parameters***************/
    add_parameter(pi_id,*'report parameter name'*,TEXT_PARAMETER,*value from form*);
    RUN_PRODUCT(REPORTS,'c:\MAKESS\INVENT\REPORTS\add_mat_req.RDF',SYNCHRONOUS,RUNTIME,FILESYSTEM,
    pi_id,NULL);
    --Ajay Sharma                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Pass User Parameters between Forms and Reports...?

    Hi,
    I have been trying to pass user parameters from forms to reports using
    RUN_REPORT_OBJECT. I am able to run the report from the form, but still don't know how to pass user_parameters. Does anyone know how to do this?
    Thanks,
    AB

    You can use SET_REPORT_OBJECT_PROPERTY with the "REPORT_OTHER" parameter
    The following example passes 3 parameters to the report:
    SET_REPORT_OBJECT_PROPERTY(pt_report_object_id, REPORT_OTHER, 'paramform=no p_param_1='||pc_param_1||' p_param_2='||pc_param_2);

  • Passing parameters into the Oracle form

    I want to pass some paramaters into the .fmx file which i invoke through the applet. like say, in the following line
    serverArgs="module=abc001.fmx userid=user/pwd@dbuser useSDI=no"
    i want to pass parameters in the following manner:
    serverArgs="module=abc001.fmx(param1,param2) userid=user/pwd@dbuser useSDI=no"
    since one cannot pass parameters to a .fmx file before invoking it, it does not seem possible.
    But is there a sort of a workaround? A java wrapper for oracle forms?? so that i pass parametrs to the java class and it passes this info to the form.
    i need to pass these parameters because these param1,param2 are the username/password for my oracle forms-based application which implements its own in-house user validation logic and i need to display the menu in the applet based on the user without prompting him for this application username/password
    thanks
    Any help will be highly appreciated.

    In the form FNDRSRUN which is the Standard Request Submission form there are parameters CHAR1-CHAR5, NUMBER1-NUMBER5, and DATE1-DATE5. I was wondering if i populate the parameter NUMBER1 with my value how can I access this parameter when the form is brought up. This is more of an applications setup issue I will be creating a function that calls the FNDRSRUN form this function will force this form to use a single request not a request group. In the request setups there is a parameter. When I set up the request parameter I have to select a value set and then for Default Type I can select Constant, Profile, SQL Statement, or Segment and then I have to give a default value. Can I default this parameter to use NUMBER1 or another parameter in the FNDRSRUN form.

  • Passing parameters from REPORTS to FORMS.

    Hi,
    Could anyone help my on this, I'm trying to pass parameters from reports to forms is it possible? could anyone give me an idea how do I have to proceed.
    thank youk,
    bino

    http://technet.oracle.com:89/ubb/Forum4/HTML/009647.html

  • Passing Multiple Parameters to Web Forms

    I need to run a form through an URL (say by clicking on a link) and I need to pass more than one parameters to the called form , can anybody help me to know how to separate the two parameters , say p1 and p2 , in the URL address . I tried like this :
    http:\\197.45.3.89./dev60cgi/ifcgi60.exe?form=login&userid=&otherparams=p2=ppx40001.fmx&p1=RMA&lookAndFeel=generic&colorScheme=teal
    But the problem is with the syntax for separating the two parameters
    &otherparams=p2=ppx40001.fmx&p1=RMA
    does not work as I separate them with '&'.
    What is the actual syntax ?
    Thanks in advance folks .
    Have a great new Year !!

    Hey first of all turn your http:\\ to be http:\\ and the only thing I can think of is to use ? instead of &. I apologize in advance if this is totally useless :-)
    Keith

  • Passing Parameter to Stored Procedure from Form

    Hello All,
    I have been stuck while passing a form parameter to a database Procedure.In the query data source arguments I have provided the parameter Value as :parameter.parameter_1...Is it right...
    Can somebody throw some more light on this...
    Regards,
    Kaps

    You can pass the parameters from Forms through the Query Data Source Arguments of this block.
    There are a little example on http://www.Friedhold-Matz.de/appl_plan.htm.
    I used in block B the Query Data Source Arguments property to fill the
    procedure input arguments with the :PARAMTER.P_name of this Form.
    Hope it helps
    Friedhold

  • SharePoint Foundation 2013 and InfoPath Filler 2010

    Hello, I am having an issue in which when I click to add a new document created in InfoPatht, I am taken to a page that says the following:
    The webpage cannot be displayed
     Most likely cause:
    •Some content or files on this webpage require a program that you don't have installed.
    What you can try:
      Search online for a program you can use to view this web content.  
      Retype the address. 
      Go back to the previous page. 
    I confirmed that Office SP2 is installed on the machine. If I click on new document, on a machine that has InfoPath Filler 2013, it works fine. However, the users have InfoPath Filler 2010. The site has been added to the Local intranet and the trust on the
    form is set to Domain trust.
    Any Ideas as to what might be causing this???

    Hello, if I remember correctly the issue was that I created the form with InfoPath 2013 and was trying to test using InfoPath 2010. This does not work.
    Did you create the form using InfoPath 2013?

  • What is the better way to pass input parameters between components?

    Hi all,
    I had a dispute with a colleague about passing data between different WDP Development Components. The situation is like this:
    Colleague has a SearchWDP (parent) und I have a BrowseWDP (child). After searching for some objects and clicking a hit in the SearchWDP, the corresponding details should be shown in BrowseWDP, via passing a bunch of parameters such as selected item's id, etc.
    Now which of the following is the better practice:
    - Defining a node in BrowseWDP (child) with isInputParameter set to TRUE, creating a similar node from the same type (simply via ModelBinding, both WDPs are using the same model) in SearchWDP, and defining a mapping between them so that SearchWDP fills the input nodes. From BrowserWDPs perspective, I'd call this Pull method.
    or...
    - Defining a node in BrowseWDP (child) with isInputParameter set to FALSE, creating a setter method in BrowseWDP Interface Controller for the collection (to be passed as parameters) and calling a wdContext.nodeBlaBla().bind(pInputParameterFromModelType). From BrowserWDPs perspective, I'd call this Push method.
    The colleague's argumentation in favor of Push has not convinced me at all and I'd like to ask your opinions. Is there a best practice or recommendation for this scenario? TIA
    ps: Any answer will be rewarded.

    Hi Cuneyt,
    Refer the links below, they are very informative!
    http://help.sap.com/saphelp_nw04s/helpdata/en/22/15a441cd47a209e10000000a155106/content.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/67/cc744176cb127de10000000a155106/content.htm
    These links are a part of the WebDynpro ABAP documentation, but the concepts are same for WDA and WDJ.
    Considering your scenario, I would recommend the first alternative you have mentioned (if you refer the second link its called External Context Mapping), where component controller context node of component A (SearchWDP) is the source for Interface controller context (same name) of component B (BrowseWDP).
    Thanks.
    Chitrali

Maybe you are looking for

  • Help Plz--I get an error message when I try and open iTunes

    My PC crashed and I had to reboot to factory start ups. Luckily, it kept all my files including my iTunes library. The problem is that everytime I try to open iTunes I get a message saying iTunes had encountered a problem and needs to close. I tried

  • Plain J2SE Adapter Engine

    Sap Guru's I'm trying to configure an adapter to recieve text files out of a specified directory and integrate and convert them into a single xml file, with no further processing. I get the following log: Mon Oct 24 01:02:22 GMT-08:00 2005 ***** 01:0

  • Session control with multiple web servers in IE

    to understand my problem do the following: make a page with this code: <% out.println("sessionID = "+session.getId()); %> Run two (2) instance of web servers (can be a tomcat) in different ports... open IE and access the URL: http://localhost:8080/te

  • ITunes suddenly not showing all my content, even though the folder does

    All of the sudden, iTunes stopped showing all of my content. I have over a hundred movies and several TV shows and all of the sudden, some of the newer stuff that I recently ripped or bought from the iTunes store is no longer showing up in iTunes. It

  • Extendscript debugging with photoshop? is this possible?

    Just starting to use ExtendScript (v3.8.0.12) to write a script for Photoshop CS6.  When I run the script in ExtendScript I can an error "Result:undefined" when I hit the first line of code that references the current opened file in Photoshop.  e.g.