Regarding Layout PCELL

R

Rajeswaran M

Guest
Andrew,

I am not sure whether this is already addressed in the forum.

It is when my pcell needs the following flow,

Pcell Query Form
|
V
Command Button Comes from CDF
|
V
Callback of Command Button
|
V
Callback opens a Skill Form
|
V
The form calls its "Apply" Callback, once "OK"/"Apply"-ed
|
V
Form "Apply" Callback need to update the pcell
pareameters, only in the query form not actual update.
|
V
User Clicks OK/APPLY to update the actual Pcell.


I stuck at the last two steps :|

Regards
Rajeswaran
 
On Mon, 21 Nov 2005 14:27:41 +0530, Rajeswaran M
<m_rajeswaran@DELETETHISyahoo.com> wrote:

Andrew,

I am not sure whether this is already addressed in the forum.

It is when my pcell needs the following flow,

Pcell Query Form
|
V
Command Button Comes from CDF
|
V
Callback of Command Button
|
V
Callback opens a Skill Form
|
V
The form calls its "Apply" Callback, once "OK"/"Apply"-ed
|
V
Form "Apply" Callback need to update the pcell
pareameters, only in the query form not actual update.
|
V
User Clicks OK/APPLY to update the actual Pcell.


I stuck at the last two steps :|

Regards
Rajeswaran
I think this should work if you update the effective CDF that is being dealt
with in the form via the cdfgData variable, in the same way as you would do
with other CDF callbacks (if people insist on using CDF callbacks to derive data
- see my views on this in previous postings). So you could do:

cdfgData->myParam->value=newValue

for example - in your form's callback code. You probably need to make the popup
form modal so that you can't change the edit properties form whilst the other
form is still open?

Regards,

Andrew.
 
Thanks for your reply. Sorry I think I did not frame the question
properly. The problem is not updating the pcell/cdf directly, but only
updating the edit properties form's readonly fields.

Andrew Beckett wrote:
On Mon, 21 Nov 2005 14:27:41 +0530, Rajeswaran M
m_rajeswaran@DELETETHISyahoo.com> wrote:


Andrew,

I am not sure whether this is already addressed in the forum.

It is when my pcell needs the following flow,

Pcell Query Form
|
V
Command Button Comes from CDF
|
V
Callback of Command Button
|
V
Callback opens a Skill Form
|
V
The form calls its "Apply" Callback, once "OK"/"Apply"-ed
|
V
Form "Apply" Callback need to update the pcell
pareameters, only in the query form not actual update.
|
V
User Clicks OK/APPLY to update the actual Pcell.


I stuck at the last two steps :|

Regards
Rajeswaran


I think this should work if you update the effective CDF that is being dealt
with in the form via the cdfgData variable, in the same way as you would do
with other CDF callbacks (if people insist on using CDF callbacks to derive data
- see my views on this in previous postings). So you could do:

cdfgData->myParam->value=newValue

for example - in your form's callback code. You probably need to make the popup
form modal so that you can't change the edit properties form whilst the other
form is still open?

Regards,

Andrew.
 
On Mon, 28 Nov 2005 10:47:08 +0530, Rajeswaran M
<m_rajeswaran@DELETETHISyahoo.com> wrote:

Thanks for your reply. Sorry I think I did not frame the question
properly. The problem is not updating the pcell/cdf directly, but only
updating the edit properties form's readonly fields.

Accessing cdfgData is altering the effective CDF for the form, before
it gets applied to the actual instance. So I think this should do what you
want...

Andrew.
 

Welcome to EDABoard.com

Sponsor

Back
Top