Running 2 Rules Upon Form Load

Hello-
We have an InfoPath 2010 form with 2 views.  The default view is what we want staff to see when they fill out the form.  The second view is a more formal form that needs the staff doesn't need to see.  So we want the form to initially load
in the default view and then switch to the second view once the form has been submitted to the Form Library.
We have this set up with 2 rules upon load.  Both of those rules run off of another field.  That field defaults to 1, but then changes to 2 once the form is signed off on.
Rule 1:  We are pulling some info into our for from our directory.  This rule runs when the field is set to 1.
Rule 2:  We have a rule to switch the view.  This rule runs when the field is set to 2.
The issue is, these rules won't run together.  Rule 1 will run just fine, but when the form is re-opened and the field is set to 2, Rule 2 won't run.  We have done some experimenting, if we set Rule 2 to run when the field is set to 1, they both
work.  Same with when they are both set to 2.  But they won't both run when they are set to different numbers.
Does anyone have any ideas?
Thanks a lot!

The form is opened the first time with the field set to 1.  Then I have a rule set up that when the person fills out the form and a field is filled in, it sets the field to 2.  The intent is to have the form open all subsequent times in the
second view.  I don't know if that's the best way to go about doing that, but that's the best way we could come up with.
Do the Form Load rules only run once?

Similar Messages

  • Problem running business rules through forms that are 15+ mins long.

    I just upgraded to 9.3.1 from 9.0.1 and we are having some issues with our business rules. We have business rules that can run up to several hours but the status on the screen ends up timing out with a 'please see planning' log error.
    The error in the log states: Status unknown, calculation context no longer available
    I can tell every second planning is checking on the business rule but after about 15 mins it does not:[9/5/08 19:47:06:810 CDT] 000000c1 SystemOut O state in essMainCalc.getprocessstate = 1
    Even though there is an error I can look at what is running in essbase and see that the business rule is still running. When it finishes it does what it is supposed to do.
    I have tried updating HBRServer.properties to a new timeout but it does not work.
    I am really lost here, can anyone help?

    Hi,
    There are a couple of you have, you can switch business rules to start running in the background after a certain time, the status of the rules can then be checked from planning with the business rules status page
    To set this up :-
    1 Select Administration > Manage Properties.
    2 Select Application Properties to set properties and values for a Planning application.
    3 Add the property by clicking Add, entering the property in the blank row, and entering a value in Property
    Value:
    Enter HBR_MAX_WAIT_FOR_RULE and the interval in milliseconds to wait before running
    business rules in the background. If this property is not set, the feature does not work, and
    business rules do not run in the background.
    Optional: Enter HBR_MONITOR_DELAY and the interval in milliseconds for checking
    business rule status.
    The default and minimum value for both options is 180000 milliseconds (3 minutes). If you
    set a lower value, that value is ignored, and the property is set to the default value.
    4 Click Save and confirm your changes.
    Or you could try installing patch 9.3.1.1.1 or above (it is now at 9.3.1.1.7) from metalink3.
    The patch includes :- (8-665086601) When the Business Rules connection to the relational database is lost, Business Rules does not reconnect to it. To solve this problem, an optional property, HBR_CONNECTION_VALIDATE_TIME, was added to HBRServer.properties. This property specifies a time interval for checking the connection between Business Rules and the relational database. If the connection is not valid, a new connection is established
    I hope this helps
    John
    http://john-goodwin.blogspot.com/

  • Infopath form load rule not working in browser forms but works on Client

    Hi
    I am working on an Infopath form and there are rules on form load. The form load checks for a value in a list, if the username() matches the one in the list, then the form would change its view.
    It works when I open it on client, but on the browser it fails.
    Have anyone encountered such an issue.

    Check below:
    http://stackoverflow.com/questions/16222681/infopath-rule-is-not-running-when-checking-sharepoint-list-field-value
    Ensure that "Include data for the active form only" was checked (I had to separate this field into another data connection because that box could not be checked for another field I was using), and
    Ensure that in the rule I was selecting from the "dataFields" folder under the data connection instead of "queryFields"
    http://sharepoint.stackexchange.com/questions/28554/infopath-form-load-rules-not-working
    if I edit the Infopath form on Infopath 2007, it seems that the rules for the load form will be visible if created.
    This look like a bug. Here are the steps below that will lead you to the bug:
    Step 1: Open the infopath form in Infopath 2010 and create 6 rules for Form Load and Save it as a file.
    Step 2: Open that infopath form that you created in Step 1 in InfoPath 2010 and go to the
    Form Load section. You will only see the first 5 rules. The 6th rules that you created for Step 1 will just "vanish". Now, close that infopath form.
    Step 3: Open that infopath form that you created in step 1 in InfoPath 2007 and select Tools > Form Option. In the
    Open and Save category, click the Rules button and add a new rule in it and save it.
    Step 4: Open that infopath form that you modify as describe in Step 3 in InfoPath 2010. That 6th rule will be visible.
    Therefore, there might be a bug in InfoPath 2010 that restrict Rules to a max of 5 in Form Load and thus if anyone open that form in SharePoint, only the first 5 rules will be executed.
    If this helped you resolve your issue, please mark it Answered

  • Form load rules are not working on display and edit forms

    Hi
    I have customized SharePoint 2013 list form using InfoPath 2013. I want to hide certain fields based on user group. I created rules on form load for that. These rules are working fine on New Form but are not working on display and edit form.
    What can I do?

    It could be because the value might have not changed ie, you might be checking for a particular value, the values might have got overwritten when the new form is saved, see if that value is blank or overwritten in display and edit forms.
    I would first check the form load rules and check those values again in Display form and edit form, if the values are not getting cleared/overwritten.
    It would be better if you could upload the screenprint.
    Hope this helps!
    Ram - SharePoint Architect
    Blog - SharePointDeveloper.in
    Please vote or mark your question answered, if my reply helps you

  • InfoPath form load rule is not checking all the rows in form library

    Hi,
    Requirement:
    We have a form library named "HR Annual Review". In the InfoPath form we have two buttons "Save" and "Submit". User is allowed to Save multiple times and only once using Submit button. The file name of form library "HR
    Annual Review" will be stored in the format “<username>+<mm>+<dd>+<yy>.xml”. Say for example, an user named Mike Walt submitted a form then the file name will be as “MikeWalt012314.xml”. If the same user (Mike Walt)
    submits the form and tries to open the form for subsequent edit, then we need to show a view which has an error info saying “The Appraisal is already submitted for the current appraisal cycle”.
    Solution we tried:
    To achieve the above requirement, we tried using InfoPath Form Load and add a rule to check whether the combination of current user name and the year already exists in the filename column of the form library. But the rule we applied is not checking all the
    rows in the form library. The rule is always checking the first row of the form library.
    What we need:
    We need the validation using InfoPath rule or some other way/solution to check whether the combination of current login username and current year file already exists in the form library.
    Thanks in advance.
    Srivignesh J

    Hi Srivignesh,
    Submit button Uses the Main Data connection to submit the data to the list. This is what you are using and naming the file in the format. You can create secondary data submit that will update the exiting item in the list. With this, you don't have to create
    any rules to check all the rows which is also not possible in OOB InfoPath.
    Once you have the two data connection, hide the toolbar from the form and display these two on the button. For The Submit button, apply the rule to hide the button if created by is not empty. For Save button, apply the rule to hide the button if Created
    By is empty. This way, when a new form is created, you will see the Submit button, and when the user have to update the form, they will see Save button. Hope it help.s
    Regards, Kapil ***Please mark answer as Helpful or Answered after consideration***

  • Running Business Rules on Composite Forms

    Hi,
    I'm using Planning v11.1.2, and I am trying to get a business rule to run from a Composite web form. The version and entity are the only prompts in the business rule, and they are shared globally on the component forms. If I put the business rule on the component forms, it doesn't even make an attempt to run on save. If I put it on the composite form, it attempts to run, but fails ("An error occurred while processing this page. Check the log for details."
    Shouldn't business rules be able to run from composite forms? If not, why is the option to put them in there? If so, does anyone have any insight into this problem?
    Thanks,
    Sabrina

    Thanks John, but unfortunately, neither one of those is my issue. The first says I can't have the business rule on the base form if I have it on the composite form. The rule is not on the base form, and it still won't run on the composite form. The second one I don't understand at all. The symptom "Business Rules are not running with composite data forms when the 'Run on Save' option is checked". The cause "The Business Rule is not running when it is run from a base form." Huh? This is a cause? The solution: "You need to attach the Business Rule to the composite form, not just the base form." This would seem to indicate that I have to have the rule on both the base form and the composite form. It doesn't work no matter which way I set it up.
    Furthermore, in testing to see what's going on, I tried taking off the hide prompt option, and the rule does not appear to be taking the entity from the page member on the form (it just displays the last entity chosen).
    Sabrina

  • Running Business Rules with global Variables in Composite Forms

    Hi,
    I am having trouble running Business Rules, that include Global Variables, in composite forms.
    I have two forms in the composite form, both have entity in Page dimension set to 'local'. one includes entities at level 3 and the other has entities at level 0. I need to pass this level 0 entity to the business rule, from the form.
    When i try to run the rule, it gives me the following error:
    "This rule cannot be launched because it has hidden rtp variables without default values "
    I get this error even when i set the default value for the global variable.
    This rule runs perfectly when run from the individual form (which is part of the composite form).
    Please help.
    Thanks.

    Known Issue: 9900514
    The Use Members on Data Form and Hide Prompt options for business rules attached to composite data forms apply only for runtime prompt values from the globally shared pages and POVs of a composite data form. In other words, this will only use members that are shared across all component data forms. If users want a business rule to take context from a single component data form, they should attach the business rule to that component data form and include the business rules for that component data form at the composite data form level (<Business rules for componentX>).
    Please let me know if this is not what we are talking about.
    Thank you,
    Todd Rebner

  • Form Load rules of InfoPath are executed many times

    By examining the logs I saw that the “Form Load” actions of my InfoPath form in SharePoint are executed twice.
    I made some tests with Fiddler and found out that the page _layouts/15/FormServer.aspx was loaded twice.
    It must be related to the browser because with Chrome the same form is loaded 3 times.
    This behavior is very annoying because my form is initialized using web services which of course take time to execute.
    Is this a bug or am I missing something?
    Additional infos: 
    Occurs with SharePoint 2010 & 2013
    IE 10
    SOAP Web  Services
    Form  published to a content type
    InfoPath executed in browser without code
    Thanks

    Hi,
    Based on your description, my understanding is that the infopath form load rules execute more than one time when form initialized.
    As the data in the form is initialized by SOAP web service, I suggest you check if there are some post back event in the page.
    Here is a detailed article for your reference:
    http://stackoverflow.com/questions/16223324/fiddler-and-monitoring-web-service-traffic  
    Best Regards
    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]
    Zhengyu Guo
    TechNet Community Support

  • Smartview webf run time prompts upon submit are not picking up from the POV

    Hi ,
    I am in Planning 11.1.2.1 and using Smartview 11.1.2.1.103. After connecting to Planning Webform from Smartview, i am saving a composite form which should launch a Business Rule with run time prompts attached to the webform upon submit. The business rules are running with default run time prompts and it is not picking up the members from the POV ... is there a way to make it pick up the members from POV into the run time prompts upon saving it ? so far the workaround is to initiate the business rule from the planning tab in smartview .. any thoughts on this ? cheers

    I found a known issue for smart view in 11.1.2.1 read me doc
    11075506
    When you open a data form in Smart View, if a business rule is directly attached to a composite data form that is set to Use Members on Data Form and Hide Prompt, the runtime prompt values are not picked up. Instead, the Runtime Prompt dialog box is displayed, and the user is prompted to enter a value.
    Good Luck

  • Lines Running Together When Editing Form PDFs

    I created a form/fillable PDF in Acrobat XI Pro.  I want to use it on an iPad app called PDF Expert, where I can fill in the fields and save it.  When I do so and have the form sync back to my MacBook and open it, the lines of text in a fillable text box run together.  How can I prevent this from happening?
    Also, when I try to save my form in Acrobat, and go to Save As Other... -> Reader Extended PDF...  the options are all grayed out. Any reason for for this?
    Thanks!

    The form is opened the first time with the field set to 1.  Then I have a rule set up that when the person fills out the form and a field is filled in, it sets the field to 2.  The intent is to have the form open all subsequent times in the
    second view.  I don't know if that's the best way to go about doing that, but that's the best way we could come up with.
    Do the Form Load rules only run once?

  • An error occurred while trying to connect to a Web service, when InfoPath web enabled form loads.

    Hi Everyone,
    I am getting an error message: An error occurred while trying to connect to a web service, when my InfoPath form tries to load.  The last few days, it only spits this error message in the morning and around 12pm-1pm it resolves itself and the form loads
    fine the rest of the day, oddly enough. 
    A few things about my form:
    1). It is web enabled
    2). The form submits to a form library on the SP server
    3). I use the UserProfileService data connection in the form to auto-populate a few fields
    4). I use a udcx file with correct language stored in the root of the site collection in the data connection library
    5). The form has been working fine until a few days ago
    I noticed while in Central Administration, that the User Profile Service Synchronization is Stopped.  Not sure if this is causing some or all of the problem. If I need to start it I will need to contact my farm administrator to do this, since I do not
    have the service account information.
    Also, I looked thru the log files on the SharePoint server and found the following by searching for the Correlation ID shown when the error comes up, I won't put in everything just the important messages.
    Schema file was already loaded: BuiltInActiveXControls.xsd
    FormServer Partial Trust - Proxy operation invoked in the SHIM process.
    FormServer Partial Trust - Invoking proxy operation for Web service adapter failed with exception Operation is not valid due to the current state of the object. for Url=https://<SP URL>/_vti_bin/UserProfileService.asmx
    Data adapter failed during OnLoad: The custom code in the form cannot be run. This functionality may be deactivated on the server. For more information, contact the server farm administrator.
    The following query failed: GetUserProfileByName (User: , Form Name: Expense Report, IP: , Connection Target: <SP URL>/Data Connections/GetUserProfileByName.udcx, Request: , Form ID: urn:schemas-microsoft-com:office:infopath:Expense-Report:-myXSD-2014-04-11T21-06-32
    Type: DataAdapterException, Exception Message: The custom code in the form cannot be run. This functionality may be deactivated on the server.

    Hi B.,
    You are on the right track. I recommend that you first get the User Profile Synchronization Service started because that itself could be the root cause of the issue.
    If that doesn't fix it then focus your attention on the GetUserprofileByName data connection. I always use my secure store ID for this connection. I add the ID by editing the udcx file and then publishing it again.
    Hope this helps.
    Daniel Christian (MCTS)

  • Some system rules failed to load.

    Hello Every one
    i have a problem with my Monitoring ,the alert which i receive continuously in My SCOM  2012 motoring console is..
    The System Center Management Health Service 123-31234  running on host xxx-xxxx.Root.net and serving management group with id {0407FB6F-896A-7389-EA01-D60C72ABBD5A} is not healthy. Some system rules failed to load.
    I restarted the Service System center Management Service,also delete the folder health service State folder to clear the cache,but still the problem is there.
    and i am getting this message in the Event logs of faulty system
    Faulting application name: MonitoringHost.exe, version: 7.0.8560.0, time stamp: 0x4f210669
    Faulting module name: MSVCR100.dll, version: 10.0.40219.325, time stamp: 0x4df2bcac
    Exception code: 0x40000015
    Fault offset: 0x00000000000761c9
    Faulting process id: 0xc2c
    Faulting application start time: 0x01cfb546b794c320
    Faulting application path: C:\Program Files\System Center Operations Manager\Agent\MonitoringHost.exe
    Faulting module path: C:\Windows\SYSTEM32\MSVCR100.dll
    Report Id: 00042e99-213a-11e4-93f9-f4ce46830654
    Faulting package full name: 
    and the event id is 1000
    Thank You!

    Have you upgraded your SCOM 2012?, please note, manually installed agents will NOT be updated automatically, you need to run the agent roll-up/upgrade by manually logging onto the servers
    plz run the below PS to check the updates on your agents
    Import-Module operationsmanager
    $agents = get-scomagent
    $value = $agents[0].HostedHealthService.GetMonitoringProperties() | ? {$_.Name -eq “PatchList”}
    $agents | select version, Name, PrimaryManagementServerName, ManuallyInstalled, @{Label=”PatchList”; Expression={$_.hostedhealthservice.getmonitoringpropertyvalue($value)}} | sort primarymanagementservername, manuallyinstalled, version | ft -autosize
    Faizan

  • Can't run a Master Detail form generated by Designer2.1

    I can not run a Master Detail form on some of machines if the form is generated through Designer2.1 . Same form if developed in form builder can be run.
    Please Help.
    My Designer version in fo is as follows
    Client side version information:
    Low End Generator DLL Version 2.0.19.3.0 - Production
    High End Generator DLL Version 2.0.19.4.0 - Production
    Module Diagram and Component Editor Version 2.0.19.3.0 - Production
    MS Help Generator Version 2.0.19.3.0 - Production
    Forms Menu Generator Version 5.0.19.3.0 - Production
    Forms Design Capture Version 5.0.19.3.0 - Production
    Forms Generator Version 5.0.19.6.0 - Production
    Oracle Designer/2000 Report Design Capture Version 3.0.19.5.0 - Production
    Oracle Designer/2000 Report Design Capture Version 3.0.19.5.0 - Production
    Oracle Designer/2000 Report Generator Version 3.0.19.4.0 - Production
    Oracle Recover Custom Code Utility for Visual Basic Version 2.0.19.3.0 - Production
    Visual Basic Design Recovery Version 2.0.19.4.0 - Production
    Visual Basic Generator Version 2.0.19.4.0 - Production
    WebServer Generator Version 2.0.19.3.0 - Production
    DWRSG20 DLL Version 2.0.19.4.0 - Production
    Design Editor Guides Version 2.0.19.3.0 - Production
    Dwl Logic Editor Version 2.0.19.4.0 - Production
    Server Modeller (32 bit) Version 2.0.19.4.0 - Production
    Generator Preferences Palette Version 2.0.19.3.0 - Production
    Property Palette Version 2.0.19.3.0 - Production
    Property Dialogs Version 2.0.19.5.0 - Production
    Object Navigator Version 2.0.19.5.0 - Production
    CW NLS Message DLL (English) Version 2.0.19.0.0 - Production
    CW Common Diagrammer Dialogs Version 2.0.19.0.0 - Production ( Language Version 2.0.19.0.0)
    AWRS Language Independent Strings Module Version 3.0.19.0.0 - Production
    AWR Repository Services Version 3.0.19.0.0 - Production
    AWRE Error Handler Version 3.0.19.0.0 - Production ( Language Version 3.0.19.0.0)
    RMDG RM Diagnostics Version 3.0.19.0.0 - Production ( Language Version 3.0.19.0.0)
    Repository Version 3.0.19.0.0 - Production (DLL)
    CORE Version 3.5.4.0.0 - Production
    NLSRTL Version 3.2.4.0.0 - Production
    DBMS Version 7.3.4.0.0 - Production
    Server side version information:
    Oracle8 Enterprise Edition Version 8.0.3.0.0 - Production
    PL/SQL Version 8.0.3.0.0 - Production
    Repository Version 0.1.10.0.0 - Production
    CDAPI Version 2.0.19.0.0 - Production
    Oracle Designer/2000 Repository (TM) Version 7.0.3.0.0 - Production
    Server Side Patches
    CI0217.001
    CI0217.002
    CI0217.003
    CI0217.004
    CI0217.005
    CI0217.006
    CI0217.007
    CI0217.008
    CI0217.009
    CI0217.010
    CI0217.011
    CI0217.012
    CI0217.013
    CI0217.014
    CI0217.015
    CI0217.016
    CI0217.017
    CI0217.018
    CI0217.019
    CI0217.020
    CI0217.021
    CI0217.022
    CI0217.023
    CI0217.024
    CI0217.025
    CI0217.026
    CI0217.027
    CI0217.028
    CI0217.029
    CI0217.030
    CI0217.031
    CI0217.032
    CI0217.033
    CI0217.034
    CI0217.035
    CI0217.036
    CI0217.037
    CI0217.038
    CI0217.039
    CI0217.040
    CI0217.041
    CI0217.042
    CI0217.043
    CI0217.044
    CI0217.045
    CI0217.046
    CI0217.047
    CI0217.048
    CI0217.049
    CI0217.050
    CI0217.051
    CI0217.052
    CI0217.053
    CI0217.054
    CI0217.055
    CI0217.056
    CI0217.057
    CI0217.058
    CI0217.059
    CI0217.060

    Could you go into a little more detail on when you ran into the problem?  Things like:
    is it after you added a rule to the form?
    is it when you first try to bring up the form in an environment where you have not used Web Form Designer previously?
    is it after you added a widget to the form?
    Almost certain this won't help, but here's my blog on some common things you need to be aware of before starting to use the Web Form Designer or Process Player features in 11.1.1.7: Getting Started with Oracle BPM Composer Web Forms and Process Player | AVIO Consulting

  • Infopath Form Load setting values showing blank

    i am using infopath form and filter the employee basic details from a list and setting the infopath column with these values
    for some of the employees these values are showing blank is it due to some browser compatabilty how can we debug the infopath form load where we are setting some fields
    Regards
    MCTS,ITIL

    If all are having same permission then it's surely compatibility issue. Have you tried to run in browser in compatible mode for those users who are facing this issue? Also check if what version of browser they have (32 bit or 64 bit).
    Also verify that webclient service is started in their machine. go to services.msc and start this service.
    Hemendra:Yesterday is just a memory,Tomorrow we may never see<br/> Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Infopath 2013 form load problems connecting to a SharePoint Library.

    I have created an Infopath 2013 form.  I am connecting to a SharePoint 2013 library.  In the infopath form I have multilple views with rules. (Rule is:  if title field is blank use default view). When I first open/create a new form in sharepoint
    (using the web browser option) the default view is there.  After submitting the form, I then try to add a new form and the second view is now the default view.  Is there a setting I need to change.  I have pretty much tried everything I can
    think of to fix this.  Your help would be greatly appreciated!

    Hi,
    According to your description, my understanding is that the second view became the default view when adding a form in SharePoint library.
    By default, the default view will be loaded when opening the form.
    How did you set the rules in the InfoPath form?
    If the form loads with the second view when opening the form, I recommend to check if there is any Form Load rule to load the second view by default.
    Could you please provide more details about the form for reproducing?
    Best regards.
    Thanks
    Victoria Xia
    TechNet Community Support

Maybe you are looking for

  • Sales order Schedule lines

    HI All, I have created two sales order. In first sales order (6001) I have four line items. Each has different scheduled dates: For Eg.: 1st 10th Aug 2nd 13th Aug 3rd 16th Aug 4th 19th Aug For the second sales order (6002) also I have taken the same

  • Photos not showing on iPad

    why won't my photos in Aperture 3 and iCloud on my comp (yosemite)show on my iPad, (OS 8) all sharing options are open.

  • Can't add files to iTunes library - nothing happens

    I used a tool to remove embedded artwork from MP3s (since you can't do this for more than 1 MP3 at a time with iTunes). When this tool was running, it crashed. I've found 3 albums that won't work in iTunes anymore. iTunes acts like it's adding it but

  • IMac G5 (iSight) kernel panics

    I'm having continuous kernel panics with my iMac G5. I unplugged all external drives/accessories. I removed additional RAM. I zapped the PRAM. I rebooted with different disks (all crash sooner or later -- often sooner). I ran Techtool pro (in target

  • How do I solve unsupported formulas from excel?

    If anyone can help me I would greatly appreciate this! I have just purchased latest i-works with the the intention of using Numbers to open and edit excel files and have found so far the purchase to be pointless! When I open an excel file in numbers