Function and rules. - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Function and rules.

Last post 06-21-2007 08:37 AM by pitinda. 4 replies.
Page 1 of 1 (5 items)
Sort Posts: Previous Next
  • 06-20-2007 01:49 PM

    • pitinda
    • Not Ranked
    • Joined on 05-14-2007
    • Brasil
    • Posts 5

    Function and rules.

    Hi,

     I have this problem, when i want to insert any function to a textbox i got this error "The formula contains one or more errors. Duplicate attribute" and my rule that execute when open the form show this error "Some rules were not applied.Unspecified error".

    Does any one know how to resolve?

    thank you!!

  • 06-21-2007 06:38 AM In reply to

    Obviously InfoPath does not like your formula.

    Please post the text and what you are trying to calculate - we might be able to find the issue for you.

  • 06-21-2007 07:13 AM In reply to

    • pitinda
    • Not Ranked
    • Joined on 05-14-2007
    • Brasil
    • Posts 5

    Thanks for your reply!

    I want use today() function to show the date and other textbox with userName() function, when i insert one of this functions on the default value of the controls i got this error "The formula contains one or more errors. Duplicate attribute".

    About rule problem, i have webService that want some parameters and return one object. When the form opens the rule pass this parameters, query the dataConnection and supose to return the object but show this message when i debug the project "Some rules were not applied.Unspecified error".

     

     

  • 06-21-2007 07:24 AM In reply to

    When troubleshooting start simple and work your way up trying it at each step.

    One thing that may be getting you is where you are entering the formula.  If you just type today() into the default box it will treat it as text. Haxe you used the FX button and gone in and added a function and selected Today from the list?  This should be pretty straightforward. Going through these steps I added a text field, opened properties, selected the FX next to default value, Insert Function, selected username. These would need to be seperate fields or you would need to use concat to join them together in one field.

    For the web service may be a bit trickier to debug.  I would create a test form with just your webservice data connection and instead of onload put all the fields on the form and query it manually to make sure it is performing properly and setup properly.  Sometimes onload the data to use with it is not available yet due to timings unless it is a default value.

  • 06-21-2007 08:37 AM In reply to

    • pitinda
    • Not Ranked
    • Joined on 05-14-2007
    • Brasil
    • Posts 5
    yes, i used the FX button and both userName and today are separate fields. I cant understand what happens, because if i create new infopath project with visual studio 2005 and try to use this functions, it works, but if i add new control and try to use stop work in this new control.
Page 1 of 1 (5 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.