2 Questions

  • Thread starter Gabriele Fabbri
  • Start date
G

Gabriele Fabbri

Hi, hope you can help me again.
I have two question:
1) Why when I start the form to compile it, it start in QUERY mode? I
would like it start directly in compile mode... is this possible?
2) I have a script that fill automatically a data field with the "today
date" (date() function...) and it works fine, but this field is in a
repeated section and I want, when I create a new section, also the new
data field is filled... How can I do this? Hope you understand the
question :-\
What happen with the field names when I repeat a section? How can I
target the right field?

Many thanks,
Gabriele.
 
A

Andrew Watt [MVP - InfoPath]

1) Why when I start the form to compile it, it start in QUERY mode? I
would like it start directly in compile mode... is this possible?

On the Tools menu, select Form Options, select the Open and Save tab
and click the Rules button.

Add a rule, name it, add an action. From the dropdown select Switch
Views. Specify which view you want to open when the form template is
opened.

Andrew Watt
MVP - InfoPath
 
A

Andrew Watt [MVP - InfoPath]

2) I have a script that fill automatically a data field with the "today
date" (date() function...) and it works fine, but this field is in a
repeated section and I want, when I create a new section, also the new
data field is filled... How can I do this? Hope you understand the
question :-\
What happen with the field names when I repeat a section? How can I
target the right field?

Gabrielle,

It's easier to do this without script.

I will assume that you want the date displayed in a text box.

Add the text box in the repeating section. Right click and open the
Text Box Properties.

Change the Format to date.

In the default value section click on the fx button. Click on Insert
Function, select Date and Time, select Day().

Click OK.

If you want to make the text box read-only then on the Display tab
make the appropriate selection.

Then, I think, you should be good to go. If the default date format
isn't what you want then simply go back to the Text Box Properties
click the Format button and choose the format that's best for you.

Andrew Watt
MVP - InfoPath
 
A

Andrew Watt [MVP - InfoPath]

Mh, I have a problem here: I can't find the "default value section", is
it in the Text Box Properties? I attach a shot of the properties panel
with the Default Value (Valore Predefinito) field, but I can't find the
"fx button"... (I'm using the italian verion of InfoPath 2003).

Gabriele,

You are, I think, using the original release of InfoPath 2003.

Is the SP1 available in Italian? If so, I would suggest you download
it. It has lots of new features, including the date handling functions
I mentioned earlier.

Andrew Watt
MVP - InfoPath
 
G

Gabriele Fabbri

Andrew said:
Gabriele,

You are, I think, using the original release of InfoPath 2003.

Is the SP1 available in Italian? If so, I would suggest you download
it. It has lots of new features, including the date handling functions
I mentioned earlier.

Andrew Watt
MVP - InfoPath

Ah! Yes, you are totally right! I have installed the SP1 and now is all ok!
Many thanks for your help man :)

G.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top