At 03:52 AM 4/9/99 -0800, [EMAIL PROTECTED] wrote:
>Hello there,
>
>I just started programming with NetDynamics Applicaiton Server 4.1 and ran
into a interesting problem. 
>as described below:
>
>I designed a page for user register themselves to our system. Inside this
page user enter his name, 
>email address, etc. After he press Insert button, a userID is created for
him and inserted into a
>database table together with other information he provided, and another
page is returned to mainly
>show him the userID.
>
>To do this, first in the onBeforeDataObjectExecuteEvent() I create the
userID and set it for 
>the corresponding DataObject. Then in insert_onWebEvent() I load another
page to show this 
>userID.  But I got a null. The source is as follows:
               ^^^^^^^^^^^^^^^^^
Need more info.  Is your next page loading, or are you getting a null
pointer exception on the first page.  If your next page is loading, are you
getting a null pointer exception, or is it that the field that is supposed
to display the value is empty.  And have you turned on terse (I think)
debugging in the rdbms service to see what actual SQL is being generated to
retrieve the row that contains the value.

-- Curt Springer, Team ND


>
>public class CustomerRegisterPage extends spider.visual.CSpPage 
>{
>    CSpValue userID;
>
>    public int
this_onBeforeDataObjectExecuteEvent(CSpDataDrivenVisualEvent event)
>    {
>        userID = create a userID ;
>        ....
>     }
>
>     public int Insert_onWebEvent(CSpWebEvent event) 
>     {
>          CSpPage nextPage = (CSpPage)CSpider.getConnonPage("AcknowPage");
>          nextPage.setDisplayFieldValue("dbo_user_userID", userID);
>          nextPage.setDisplayFieldValue("other_fields",
getDisplayFieldValue("other_field"));
>          .....
>          return (nextPage.load(false));
>     }
>}
>
>I checked the database found the created userID is there. But it becomes
null in the nextPage.
>
>Can anybody give me an explaination?
>
>Thanks,
>-Fujian
>
>_________________________________________________________________________
>
>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