Why is the "Customize Commands..." button is disabled?

H

Hersh

I'd like to prevent users from removing rows from a repeating table as well
as change the text of the "Insert Before/After" commands. It's my
understanding that these can be accomplished via the "Customize Commands..."
button, bit it's disabled on the "Data" tab of the "Repeating Table
Properties" dialogue.
Note that I'm using InfoPath 2007 and an external (Web Service) data source.

Thanks in advance.

- Hersh
 
G

Greg Collins [InfoPath MVP]

Secondary data sources do not have all the same functionality that the main data source does. So certain commands are not available for repeating tables/sections.
 
G

Greg Collins [InfoPath MVP]

Secondary data sources do not have all the same functionality that the main data source does. So certain commands are not available for repeating tables/sections.
 
H

Hersh

Thanks for your response Greg.
Please note that my situation involves the Main data source -- not a
Secondary data source. I'd like to prevent users from removing (but not from
inserting) rows in the Main data source via a repeating table. However, the
"Customizing Commands..." button is disabled on the repeating table bound to
the Main data source. This main data source is based on a Web Service.
Thanks,
Hersh
 
H

Hersh

Followup:
I don't know why the "Customize Commands..." button is disabled when using a
Web Service as the main data source, but I discovered a work-around to
prevent users from removing rows from the repeating table bound to this data
source: Manually adjust the manifest.xsf file. In my case this involved
commenting out the following line in this file:

<xsf:button action="xCollection::remove" xmlToEdit="Benchmark_7"
caption="Remove Benchmark" showIf="immediate"></xsf:button>

This solution is less than ideal because the xsf file gets updated each time
the template is updated via InfoPath. But it works.
 
G

Greg Collins [InfoPath MVP]

Although it is the main data source, it is based off of a Web service (which is a secondary data source) -- thus your issue.

Don't know if it would be helpful, but perhaps changing the showIf value would make a difference...

Look in the help for more info about showIf... but the allowed values are: always, enabled, and immediate. The only one that seems like a possible change for you would be to go to enabled--though I don't know that it will help.
 

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