prepopulate IDs

Discussions about CSEntry
Forum rules
New release: CSPro 8.0
Post Reply
mmhill
Posts: 18
Joined: August 5th, 2014, 3:26 pm

prepopulate IDs

Post by mmhill »

Possible to display a listing of IDs on the screen's left side, choose one ID and have it inserted into the active form's ID field?
If not, any other way to prefill IDs on blank forms?
Thank you.
-mjh
aaronw
Posts: 561
Joined: June 9th, 2016, 9:38 am
Location: Washington, DC

Re: prepopulate IDs

Post by aaronw »

Typically we use a menu to do this. If we know the households in advance we'll create a dynamic value set to select them. Then using the PFF object and set the key property. As long as the key property is set the household application's ID items will be pre-filled when the PFF is executed.

I recommend taking a look at the CAPI census example in your documents folder. First, run it and just get a feel for how it works. Then take a look at the logic. In particular, take a look at the user-defined function LaunchHouseholdProgram and where it is called from.

dynamic value set blog post: https://www.csprousers.org/posts/2019-0 ... bject.html
pff object helps: https://www.csprousers.org/help/CSPro/pff.html
mmhill
Posts: 18
Joined: August 5th, 2014, 3:26 pm

Re: prepopulate IDs

Post by mmhill »

Thank you!
-MJH
mmhill
Posts: 18
Joined: August 5th, 2014, 3:26 pm

Re: prepopulate IDs

Post by mmhill »

Using v7.1, don't have an Examples folder. Will v6.2 Examples work as a stand-in? Thanks.
Gregory Martin
Posts: 1777
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: prepopulate IDs

Post by Gregory Martin »

Have you tried selecting Help -> Examples Folder in the CSPro Designer? We moved the examples to the Documents folder a few years ago (because the CSPro installation folder was read-only, which made it hard to work with the examples).

If you don't actually have it on your machine, we can send you a zip file of the contents of the examples.
mmhill
Posts: 18
Joined: August 5th, 2014, 3:26 pm

Re: prepopulate IDs

Post by mmhill »

A zip file of the examples would be great. Please send. How do I find guidance for creating a menu for an existing program? Thanks. -MJ
sherrell
Posts: 397
Joined: April 2nd, 2014, 9:16 pm
Location: Washington, DC

Re: prepopulate IDs

Post by sherrell »

Unfortunately a zip file of the entire examples folder is too large to attach here. Installing 7.7 would be the easiest way. You can then find the examples in this folder: %homePath%\Documents\CSPro\Examples 7.7

Sherrell
Gregory Martin
Posts: 1777
Joined: December 5th, 2011, 11:27 pm
Location: Washington, DC

Re: prepopulate IDs

Post by Gregory Martin »

The CSPro helps and examples are actually public repositories on GitHub, so you can download them there. The CSPro 7.7.1 examples are here:

https://github.com/CSProDevelopment/exa ... ease/7.7.1

Click the green "Code" button and then select "Download ZIP."
Post Reply