Project A - PMR, page: pgPMRResults
Project B - myCareWeb, page: PMRPrefsPage

In the middle of Project A I have a hidden static field called:
hiddenPMRPrefPage
I use this hidden field to display Project B.
I need to access Project B's values, not the Data Object in B.

Once I bring Project B into Project A, my users have the option
to alter B's fields.  But, their changes will not be saved.

Per Aby's suggestion, I added df & df1 to see what I got.
Both fields came up blank in the logger.
Also, I got the following error on df - DisplayField
'includeDemographics' cannot be found under 'pgPMRResults'


//[[SPIDER_EVENT<hiddenPMRPrefPage_onBeforeHtmlOutputEvent>
public int hiddenPMRPrefPage_onBeforeHtmlOutputEvent(CSpHtmlOutputEvent
event)
{
        CSpider.getPage("myCareWeb.PMRPrefsPage").load(false);

        CSpValue df = getDisplayFieldValue("includeDemographics");

        PMRPrefsPage pmrPref = (PMRPrefsPage)
CSpider.getPage("myCareWeb.PMRPrefsPage");
        CSpValue df1 = pmrPref.getDisplayFieldValue("includeDemographics");
                                                        
CSpLog.send(this,CSpLog.USER_DEBUG,"BARBARA,
hiddenPMRPrefPage_onBeforeHtmlOutputEvent, df: "+df+" df1: "+df1);      
                        
        return (PROCEED);
}
//]]SPIDER_EVENT<hiddenPMRPrefPage_onBeforeHtmlOutputEvent>


Thank you,

Barbara Stanny
[EMAIL PROTECTED]






Aby Mathew wrote:
> 
> >> We were
> able to display B in A, but we can't access the fields. <<
> 
> I would be curious to know what fails. How are you trying to access the
> fields? A look at your code may reveal something.
> 
> If you try to CSpider.getPage("projName.PageName") and then do a
> getDisplayField()/ getDisplayFieldValue() on that objet, that should
> work.
> 
> Aby
> 
> -----Original Message-----
> From: Barbara Stanny [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 01, 1999 8:05 AM
> To: [EMAIL PROTECTED]
> Subject: [ND] Loading Project B into Project A and having access to
> Project B's variables within A (Reusable code)
> 
> We have 2 projects.
> 
> Project A gathers input from the user, and acts upon it.
> Project B allows users to enter their report preferences, which we save
> to
> the database.
> 
> Someone thought that it would be nice within Project A to show the users
> their
> preferences, and allow them to alter them 'on the fly'.  So instead of
> re-creating
> Project B's code in Project A, we thought that we could load B within A.
> We were
> able to display B in A, but we can't access the fields.
> 
> Is it possible to access one project within another?  How do we get a
> handle to the
> fields within B with minimal changes to A.
> _________________________________________________________________________
> 
> For help in using, subscribing, and unsubscribing to the discussion
> forums, please go to:
> http://www.netdynamics.com/support/visitdevfor.html
> 
> For dire need help, email: [EMAIL PROTECTED]
_________________________________________________________________________

For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html

For dire need help, email: [EMAIL PROTECTED]

Reply via email to