infopath problem with the field name in schema - InfoPath Dev
in

InfoPath Dev

infopath problem with the field name in schema

Last post 07-16-2008 03:30 AM by frikouflios. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 07-15-2008 02:30 AM

    infopath problem with the field name in schema

    Hello to all,  new issue Sad  ........

    scenario.......

    1. create a browsable  InfoPath 2007 form
    2. add a text box and leave the default name ("field1")
    3. publish the form in a SharePoint Form Library (in the step that you have to choose which columns can be availabe in SP List if you choose "field1" then automatically set the field name  to  "field 1",  because i don't want any space i choose a new name for my column "field1")
    4. for every new collumn  check the "Allow user to edit data...." option

    so far so good

    now the problem
     
    if i open the SharePoint database and find the schema of my list (the list that i publish the InfoPath form) a see


    <Field ID="28c78253-8713-4e71-bc85-e1b1c2b2f1c5" Type="Text" Name="_x0032_8c78253_x002d_8713_x002d_4e71_x002d_bc85_x002d_e1b1c2b2f1c5" DisplayName="Filed1" Required="FALSE" SourceID="{fe2386d0-fce4-41b2-8b4d-f533bb256b8a}" StaticName="_x0032_8c78253-8713-4e71-bc85-e1b1c2b2f1c5" ReadOnly="FALSE" Group="Microsoft Office InfoPath" Node="/my:myFields/my:field1" MaxLength="255" Version="1" Hidden="FALSE" Customization="" PITarget="" PrimaryPITarget="" PIAttribute="" PrimaryPIAttribute="" Aggregation="" ColName="nvarchar11" RowOrdinal="0"/>


    as you can see the Name of my field "field1" is been set to "_x0032_8c78253_x002d_8713_x002d_4e71_x002d_bc85_x002d_e1b1c2b2f1c5" and the DisplayName set to "Field1"

    i dont want any field with name like "_x0032_8c78253_x00" because when i have to refference to them i must remember the strange name also i don't know if this can create more problems........

    what i can do to avoid this auto name???
    This is not happens every time. I  tried those steps in another MOSS and is working,  but i can understand the behavior....
     
    thanks for your time, frikouflios 
  • 07-15-2008 11:24 PM In reply to

    Re: infopath problem with the field name in schema

    First I would say that you should name the fields in your form schema better, something more descriptive.  Then ideally it is the same name you want in SharePoint.

     Even if you reference it you can do so by Display name, which appears has a typo and is Filed1 in what you pasted there.

    You could try publishing again to a new library and see if it does the same thing.

  • 07-16-2008 03:30 AM In reply to

    Re: infopath problem with the field name in schema

     Hi Cray, i used the default name "field1" just for simplify my example, also i publish the form in another library but without any result..... Today I discovered that the problem is created when i set the form with Full Trust privilege...... but  i want to use some code into my InfoPath form so i have to set it to Full Trust.... :(

Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.