Called program's subfile contents corrupted

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
Bryan641
Profound User
Posts: 72
Joined: Fri Oct 01, 2010 5:07 pm
First Name: Bryan
Last Name: Leaman
Company Name: InVue Security
Phone: 704-752-6513 x221
Address 1: 15015 Lancaster Hwy
City: Charlotte
State / Province: North Carolina
Zip / Postal Code: 28277
Contact:

Called program's subfile contents corrupted

Post by Bryan641 »

I created a basic version of our sales inquiry screen in ProfoundUI and now I'm adding prompt capabilities to the selection criteria. When the prompt button is clicked and the RPG calls another profoundUI program that allows selection from a list, the contents of the subfile in the called program appears to be initialized to what was already in the calling program's subfile.

See attached screenshots.

--Bryan

(Sorry, the sequence of the screen-shots got reversed when I uploaded them.)
Attachments
The prompt screen called from a stand-alone CL with the same parameters.
The prompt screen called from a stand-alone CL with the same parameters.
promptscreen3.jpg (47.52 KiB) Viewed 1524 times
The display when the prompt button was pressed.
The display when the prompt button was pressed.
promptscreen2.jpg (71.92 KiB) Viewed 1532 times
Sales inquiry screen before prompt program is called.
Sales inquiry screen before prompt program is called.
promptscreen1.jpg (85.34 KiB) Viewed 1533 times
User avatar
David
Profound Logic Staff Member
Posts: 690
Joined: Fri Jan 04, 2008 12:11 pm
First Name: David
Last Name: Russo
Company Name: Profound Logic Software
Contact:

Re: Called program's subfile contents corrupted

Post by David »

It looks like the problem here may be duplicate grid ids. It is required that any grids displayed at the same time have ids which are different from one another.

The designer is smart enough to assign unique ids when you add multiple grid widgets to 1 control record (you can do that in Profound UI), but it will not handle it when you have mulitple control/subfile format combinations within a single file or across multiple display files, so you can get duplicates pretty easily if you're not aware to watch out for it.

Rather than going into every subfile grid and adding a unique id, it's usually sufficient just to give unique ids to the ones that are to be used in windows like this.

Is that the problem?

If not, can you attach the DDS source code? With that, we can try to recreate the problem.

Also, I noticed you are getting the "error processing directive" message on your screens. This is fixed in the latest version of Profound UI.
Bryan641
Profound User
Posts: 72
Joined: Fri Oct 01, 2010 5:07 pm
First Name: Bryan
Last Name: Leaman
Company Name: InVue Security
Phone: 704-752-6513 x221
Address 1: 15015 Lancaster Hwy
City: Charlotte
State / Province: North Carolina
Zip / Postal Code: 28277
Contact:

Re: Called program's subfile contents corrupted

Post by Bryan641 »

That was the issue. Thanks!
Post Reply

Who is online

Users browsing this forum: No registered users and 8 guests