dddw's on html dw's

I'm having an 'irrating' problem in creating an html dw that contains 2
dddw's.  Whats supposed to happen is that when the html dw is invoked, it is
passed 2 arguments that are used to specify who the user is - company number
and user number.  Based upon these arguments, the first dddw is supposed to
populate a list of available selections based upon entries in a secondary
table - company # and user # are contained in the secondary table that the
dddw accesses. Based upon the user's selection from the primary dddw, the
second dddw is supposed to be populated with the 'detail' elements relative
to the selection elements in the primary dddw. The secondary dddw accesses
another table that contains the same fields - company # and user # on each
record plus the selection # from the primary dddw.

I can't seem to figure out a way to pass these arguments based upon the
client-side event back so that the dddw's are populated correctly.  Any
ideas would be welcome!-)

We are running NT 4.0 (SP6), EA Server 3.5 C3, EA Studio 3.5 C3 .

TIA

Brad


0
Brad
1/9/2001 7:39:04 PM
sybase.powerbuilder.datawindow 28057 articles. 5 followers. Follow

8 Replies
734 Views

Similar Articles

[PageSpeed] 57

Hi Brad

On the client side, you can modify the dwcomn.js to add this function

// 08/18/2000 : Add-on from Rodney Kempler
function HTDW_itemChangedFar (row, columnName, newValue)
{
    if (row != null && columnName != null && newValue != null)
       {
        this.actionField.value  = "ItemChanged";
        this.contextField.value = "Row=" + row + ", columnName=" +
columnName + ", newValue=" + newValue;
        this.submitForm.submit();
       }
    else
       {return 2;}
}

Don't forget to add this function to the class...

function HTDW_DataWindowClass(name, submitForm, actionField, contextField)
{
....
  // 08/18/2000 : Add-on from Rodney Kempler
  this.itemChangedFar = HTDW_itemChangedFar;
....
}

and in your page you can code this
    <SCRIPT language=JavaScript>function HTML_DW_ItemChanged (row,
columnName, newValue)
{
 var nReturn
 nReturn = HTML_DW.itemChangedFar (row, columnName, newValue);

 if (nReturn != null)
    {return nReturn;}
};
    </SCRIPT>


On the server side :
    For the Page Server, you have to adapt the object model ObjMod.SSC,
    In Jagar you have to customise a component to handle the "ItemChanged"
Event.



Brad Mitchell <brad@kinekted.com> a �crit dans le message :
m1OfM5neAHA.267@forums.sybase.com...
> I'm having an 'irrating' problem in creating an html dw that contains 2
> dddw's.  Whats supposed to happen is that when the html dw is invoked, it
is
> passed 2 arguments that are used to specify who the user is - company
number
> and user number.  Based upon these arguments, the first dddw is supposed
to
> populate a list of available selections based upon entries in a secondary
> table - company # and user # are contained in the secondary table that the
> dddw accesses. Based upon the user's selection from the primary dddw, the
> second dddw is supposed to be populated with the 'detail' elements
relative
> to the selection elements in the primary dddw. The secondary dddw accesses
> another table that contains the same fields - company # and user # on each
> record plus the selection # from the primary dddw.
>
> I can't seem to figure out a way to pass these arguments based upon the
> client-side event back so that the dddw's are populated correctly.  Any
> ideas would be welcome!-)
>
> We are running NT 4.0 (SP6), EA Server 3.5 C3, EA Studio 3.5 C3 .
>
> TIA
>
> Brad
>
>


0
Rodney
1/10/2001 8:09:40 AM
Rodney -

Thanks for the reply but I'm a little confused with your suggestion.  Where
is dwcomm.js?

TIA,

Brad

"Rodney KEMPLER" <p.ansar@oriam.com> wrote in message
news:xKH8h9teAHA.216@forums.sybase.com...
> Hi Brad
>
> On the client side, you can modify the dwcomn.js to add this function
>
> // 08/18/2000 : Add-on from Rodney Kempler
> function HTDW_itemChangedFar (row, columnName, newValue)
> {
>     if (row != null && columnName != null && newValue != null)
>        {
>         this.actionField.value  = "ItemChanged";
>         this.contextField.value = "Row=" + row + ", columnName=" +
> columnName + ", newValue=" + newValue;
>         this.submitForm.submit();
>        }
>     else
>        {return 2;}
> }
>
> Don't forget to add this function to the class...
>
> function HTDW_DataWindowClass(name, submitForm, actionField, contextField)
> {
> ...
>   // 08/18/2000 : Add-on from Rodney Kempler
>   this.itemChangedFar = HTDW_itemChangedFar;
> ...
> }
>
> and in your page you can code this
>     <SCRIPT language=JavaScript>function HTML_DW_ItemChanged (row,
> columnName, newValue)
> {
>  var nReturn
>  nReturn = HTML_DW.itemChangedFar (row, columnName, newValue);
>
>  if (nReturn != null)
>     {return nReturn;}
> };
>     </SCRIPT>
>
>
> On the server side :
>     For the Page Server, you have to adapt the object model ObjMod.SSC,
>     In Jagar you have to customise a component to handle the "ItemChanged"
> Event.
>
>
>
> Brad Mitchell <brad@kinekted.com> a �crit dans le message :
> m1OfM5neAHA.267@forums.sybase.com...
> > I'm having an 'irrating' problem in creating an html dw that contains 2
> > dddw's.  Whats supposed to happen is that when the html dw is invoked,
it
> is
> > passed 2 arguments that are used to specify who the user is - company
> number
> > and user number.  Based upon these arguments, the first dddw is supposed
> to
> > populate a list of available selections based upon entries in a
secondary
> > table - company # and user # are contained in the secondary table that
the
> > dddw accesses. Based upon the user's selection from the primary dddw,
the
> > second dddw is supposed to be populated with the 'detail' elements
> relative
> > to the selection elements in the primary dddw. The secondary dddw
accesses
> > another table that contains the same fields - company # and user # on
each
> > record plus the selection # from the primary dddw.
> >
> > I can't seem to figure out a way to pass these arguments based upon the
> > client-side event back so that the dddw's are populated correctly.  Any
> > ideas would be welcome!-)
> >
> > We are running NT 4.0 (SP6), EA Server 3.5 C3, EA Studio 3.5 C3 .
> >
> > TIA
> >
> > Brad
> >
> >
>
>


0
Brad
1/10/2001 3:42:12 PM
Hi Brad,

"dwcomn.js" is part of the "JavaScript Caching" of the Web DataWindow,
you will find all the infos you need, either in the "PB703ent_readme.txt" or
on
the "Jaguar CTS Documents" of your <Programs><Sybase><Jaguar CTS> group.

Regards,
                Rodney

Brad Mitchell <brad@kinekted.com> a �crit dans le message :
SE6PhZyeAHA.294@forums.sybase.com...
> Rodney -
>
> Thanks for the reply but I'm a little confused with your suggestion.
Where
> is dwcomm.js?
>
> TIA,
>
> Brad
>
> "Rodney KEMPLER" <p.ansar@oriam.com> wrote in message
> news:xKH8h9teAHA.216@forums.sybase.com...
> > Hi Brad
> >
> > On the client side, you can modify the dwcomn.js to add this function
> >
> > // 08/18/2000 : Add-on from Rodney Kempler
> > function HTDW_itemChangedFar (row, columnName, newValue)
> > {
> >     if (row != null && columnName != null && newValue != null)
> >        {
> >         this.actionField.value  = "ItemChanged";
> >         this.contextField.value = "Row=" + row + ", columnName=" +
> > columnName + ", newValue=" + newValue;
> >         this.submitForm.submit();
> >        }
> >     else
> >        {return 2;}
> > }
> >
> > Don't forget to add this function to the class...
> >
> > function HTDW_DataWindowClass(name, submitForm, actionField,
contextField)
> > {
> > ...
> >   // 08/18/2000 : Add-on from Rodney Kempler
> >   this.itemChangedFar = HTDW_itemChangedFar;
> > ...
> > }
> >
> > and in your page you can code this
> >     <SCRIPT language=JavaScript>function HTML_DW_ItemChanged (row,
> > columnName, newValue)
> > {
> >  var nReturn
> >  nReturn = HTML_DW.itemChangedFar (row, columnName, newValue);
> >
> >  if (nReturn != null)
> >     {return nReturn;}
> > };
> >     </SCRIPT>
> >
> >
> > On the server side :
> >     For the Page Server, you have to adapt the object model ObjMod.SSC,
> >     In Jagar you have to customise a component to handle the
"ItemChanged"
> > Event.
> >
> >
> >
> > Brad Mitchell <brad@kinekted.com> a �crit dans le message :
> > m1OfM5neAHA.267@forums.sybase.com...
> > > I'm having an 'irrating' problem in creating an html dw that contains
2
> > > dddw's.  Whats supposed to happen is that when the html dw is invoked,
> it
> > is
> > > passed 2 arguments that are used to specify who the user is - company
> > number
> > > and user number.  Based upon these arguments, the first dddw is
supposed
> > to
> > > populate a list of available selections based upon entries in a
> secondary
> > > table - company # and user # are contained in the secondary table that
> the
> > > dddw accesses. Based upon the user's selection from the primary dddw,
> the
> > > second dddw is supposed to be populated with the 'detail' elements
> > relative
> > > to the selection elements in the primary dddw. The secondary dddw
> accesses
> > > another table that contains the same fields - company # and user # on
> each
> > > record plus the selection # from the primary dddw.
> > >
> > > I can't seem to figure out a way to pass these arguments based upon
the
> > > client-side event back so that the dddw's are populated correctly.
Any
> > > ideas would be welcome!-)
> > >
> > > We are running NT 4.0 (SP6), EA Server 3.5 C3, EA Studio 3.5 C3 .
> > >
> > > TIA
> > >
> > > Brad
> > >
> > >
> >
> >
>
>


0
Rodney
1/10/2001 4:48:40 PM
Oups,

I didn't fount the infos in the Jaguar CTS doc..

Rodney


Brad Mitchell <brad@kinekted.com> a �crit dans le message :
SE6PhZyeAHA.294@forums.sybase.com...
> Rodney -
>
> Thanks for the reply but I'm a little confused with your suggestion.
Where
> is dwcomm.js?
>
> TIA,
>
> Brad
>
> "Rodney KEMPLER" <p.ansar@oriam.com> wrote in message
> news:xKH8h9teAHA.216@forums.sybase.com...
> > Hi Brad
> >
> > On the client side, you can modify the dwcomn.js to add this function
> >
> > // 08/18/2000 : Add-on from Rodney Kempler
> > function HTDW_itemChangedFar (row, columnName, newValue)
> > {
> >     if (row != null && columnName != null && newValue != null)
> >        {
> >         this.actionField.value  = "ItemChanged";
> >         this.contextField.value = "Row=" + row + ", columnName=" +
> > columnName + ", newValue=" + newValue;
> >         this.submitForm.submit();
> >        }
> >     else
> >        {return 2;}
> > }
> >
> > Don't forget to add this function to the class...
> >
> > function HTDW_DataWindowClass(name, submitForm, actionField,
contextField)
> > {
> > ...
> >   // 08/18/2000 : Add-on from Rodney Kempler
> >   this.itemChangedFar = HTDW_itemChangedFar;
> > ...
> > }
> >
> > and in your page you can code this
> >     <SCRIPT language=JavaScript>function HTML_DW_ItemChanged (row,
> > columnName, newValue)
> > {
> >  var nReturn
> >  nReturn = HTML_DW.itemChangedFar (row, columnName, newValue);
> >
> >  if (nReturn != null)
> >     {return nReturn;}
> > };
> >     </SCRIPT>
> >
> >
> > On the server side :
> >     For the Page Server, you have to adapt the object model ObjMod.SSC,
> >     In Jagar you have to customise a component to handle the
"ItemChanged"
> > Event.
> >
> >
> >
> > Brad Mitchell <brad@kinekted.com> a �crit dans le message :
> > m1OfM5neAHA.267@forums.sybase.com...
> > > I'm having an 'irrating' problem in creating an html dw that contains
2
> > > dddw's.  Whats supposed to happen is that when the html dw is invoked,
> it
> > is
> > > passed 2 arguments that are used to specify who the user is - company
> > number
> > > and user number.  Based upon these arguments, the first dddw is
supposed
> > to
> > > populate a list of available selections based upon entries in a
> secondary
> > > table - company # and user # are contained in the secondary table that
> the
> > > dddw accesses. Based upon the user's selection from the primary dddw,
> the
> > > second dddw is supposed to be populated with the 'detail' elements
> > relative
> > > to the selection elements in the primary dddw. The secondary dddw
> accesses
> > > another table that contains the same fields - company # and user # on
> each
> > > record plus the selection # from the primary dddw.
> > >
> > > I can't seem to figure out a way to pass these arguments based upon
the
> > > client-side event back so that the dddw's are populated correctly.
Any
> > > ideas would be welcome!-)
> > >
> > > We are running NT 4.0 (SP6), EA Server 3.5 C3, EA Studio 3.5 C3 .
> > >
> > > TIA
> > >
> > > Brad
> > >
> > >
> >
> >
>
>


0
Rodney
1/10/2001 4:55:40 PM
Rodney -

I've modified the dwcomn.js file to include the new function and the updated
class.  You mentioned in your previous thread that I would need to:

" On the server side :
For the Page Server, you have to adapt the object model ObjMod.SSC, In Jagar
you have to customise a component to handle the "ItemChanged"  Event."

Do you mean that I need to modify the ObjMod.SSC file in PowerDynamo in the
datawindow_generate method? And what specifically needs to be modified in
Jaguar?

Sorry for the questions...I do not consider myself the expert:-)

TIA

Brad



"Rodney KEMPLER" <p.ansar@oriam.com> wrote in message
news:F2ipdjyeAHA.216@forums.sybase.com...
> Oups,
>
> I didn't fount the infos in the Jaguar CTS doc..
>
> Rodney
>
>
> Brad Mitchell <brad@kinekted.com> a �crit dans le message :
> SE6PhZyeAHA.294@forums.sybase.com...
> > Rodney -
> >
> > Thanks for the reply but I'm a little confused with your suggestion.
> Where
> > is dwcomm.js?
> >
> > TIA,
> >
> > Brad
> >
> > "Rodney KEMPLER" <p.ansar@oriam.com> wrote in message
> > news:xKH8h9teAHA.216@forums.sybase.com...
> > > Hi Brad
> > >
> > > On the client side, you can modify the dwcomn.js to add this function
> > >
> > > // 08/18/2000 : Add-on from Rodney Kempler
> > > function HTDW_itemChangedFar (row, columnName, newValue)
> > > {
> > >     if (row != null && columnName != null && newValue != null)
> > >        {
> > >         this.actionField.value  = "ItemChanged";
> > >         this.contextField.value = "Row=" + row + ", columnName=" +
> > > columnName + ", newValue=" + newValue;
> > >         this.submitForm.submit();
> > >        }
> > >     else
> > >        {return 2;}
> > > }
> > >
> > > Don't forget to add this function to the class...
> > >
> > > function HTDW_DataWindowClass(name, submitForm, actionField,
> contextField)
> > > {
> > > ...
> > >   // 08/18/2000 : Add-on from Rodney Kempler
> > >   this.itemChangedFar = HTDW_itemChangedFar;
> > > ...
> > > }
> > >
> > > and in your page you can code this
> > >     <SCRIPT language=JavaScript>function HTML_DW_ItemChanged (row,
> > > columnName, newValue)
> > > {
> > >  var nReturn
> > >  nReturn = HTML_DW.itemChangedFar (row, columnName, newValue);
> > >
> > >  if (nReturn != null)
> > >     {return nReturn;}
> > > };
> > >     </SCRIPT>
> > >
> > >
> > > On the server side :
> > >     For the Page Server, you have to adapt the object model
ObjMod.SSC,
> > >     In Jagar you have to customise a component to handle the
> "ItemChanged"
> > > Event.
> > >
> > >
> > >
> > > Brad Mitchell <brad@kinekted.com> a �crit dans le message :
> > > m1OfM5neAHA.267@forums.sybase.com...
> > > > I'm having an 'irrating' problem in creating an html dw that
contains
> 2
> > > > dddw's.  Whats supposed to happen is that when the html dw is
invoked,
> > it
> > > is
> > > > passed 2 arguments that are used to specify who the user is -
company
> > > number
> > > > and user number.  Based upon these arguments, the first dddw is
> supposed
> > > to
> > > > populate a list of available selections based upon entries in a
> > secondary
> > > > table - company # and user # are contained in the secondary table
that
> > the
> > > > dddw accesses. Based upon the user's selection from the primary
dddw,
> > the
> > > > second dddw is supposed to be populated with the 'detail' elements
> > > relative
> > > > to the selection elements in the primary dddw. The secondary dddw
> > accesses
> > > > another table that contains the same fields - company # and user #
on
> > each
> > > > record plus the selection # from the primary dddw.
> > > >
> > > > I can't seem to figure out a way to pass these arguments based upon
> the
> > > > client-side event back so that the dddw's are populated correctly.
> Any
> > > > ideas would be welcome!-)
> > > >
> > > > We are running NT 4.0 (SP6), EA Server 3.5 C3, EA Studio 3.5 C3 .
> > > >
> > > > TIA
> > > >
> > > > Brad
> > > >
> > > >
> > >
> > >
> >
> >
>
>


0
Brad
1/10/2001 7:19:42 PM
Drad,

Yes I do you mean that you need to modify the ObjMod.SSC file in PowerDynamo
in the
datawindow_generate method near the line 981 where you have

if (this.bServerSideState) {
                                           res =
component.SetServerSideState(true);
                                           HTDW_TestCompError
("SetServerSideState");
                                            if (res != "") {
                                            HTDW_DocWrite("ERROR:
SetServerSideState(true) Failed " + res + " *****<BR>\n");
                                        }

insert in this bloc this code

            if (sAction == "ItemChanged")
               {this.bDidRetrieve = true;}

then the SetAction function of the componant will be called few lines away

On your customized PowerBuilder nv_remote_datawindow, in the SetAction
method you can code such a thing :
Long  ll_Return, ll_Pos1, ll_Pos2, ll_RowNum
String ls_Context, ls_ColName, ls_NewValue

IF as_Action = "ItemChanged" THEN
    ls_Context = as_Context

    // Extract the Row
    ll_Pos1 = Pos (ls_Context, "=") + 1
    ll_Pos2 = Pos (ls_Context, ",")

    ll_RowNum  = Long (Trim (Mid (ls_Context, ll_Pos1, ll_Pos2 - ll_Pos1)))
    ls_Context = Mid (ls_Context, ll_Pos2 + 1)

    // Extract column name
   ll_Pos1 = Pos (ls_Context, "=") + 1
   ll_Pos2 = Pos (ls_Context, ",")

   ls_ColName = Trim (Mid (ls_Context, ll_Pos1, ll_Pos2 - ll_Pos1))
   ls_Context = Mid (ls_Context, ll_Pos2 + 1)

   // Get the new column value
   ll_Pos1 = Pos (ls_Context, "=")
   ls_NewValue = Trim (Mid (ls_Context, ll_Pos1 + 1))

   // Call your Custom Function
   ll_Return = ItemChanged (ll_RowNum, ls_ColName, ls_NewValue)
ELSE
  usual processing
END IF

// check if we are doing and update and the SetAction() failed
ib_updateFailed = ib_didUpdate and (li_result <> 1)

// if update failed, we can't commit the transaction
of_continueWork (not ib_updateFailed)

That's all I can tell you, this works fine in my library, I don't think to
have more specific coding for this topic,

;-)
        Rodney


Brad Mitchell <brad@kinekted.com> a �crit dans le message :
znA8CT0eAHA.216@forums.sybase.com...
> Rodney -
>
> I've modified the dwcomn.js file to include the new function and the
updated
> class.  You mentioned in your previous thread that I would need to:
>
> " On the server side :
> For the Page Server, you have to adapt the object model ObjMod.SSC, In
Jagar
> you have to customise a component to handle the "ItemChanged"  Event."
>
> Do you mean that I need to modify the ObjMod.SSC file in PowerDynamo in
the
> datawindow_generate method? And what specifically needs to be modified in
> Jaguar?
>
> Sorry for the questions...I do not consider myself the expert:-)
>
> TIA
>
> Brad
>
>
>
> "Rodney KEMPLER" <p.ansar@oriam.com> wrote in message
> news:F2ipdjyeAHA.216@forums.sybase.com...
> > Oups,
> >
> > I didn't fount the infos in the Jaguar CTS doc..
> >
> > Rodney
> >
> >
> > Brad Mitchell <brad@kinekted.com> a �crit dans le message :
> > SE6PhZyeAHA.294@forums.sybase.com...
> > > Rodney -
> > >
> > > Thanks for the reply but I'm a little confused with your suggestion.
> > Where
> > > is dwcomm.js?
> > >
> > > TIA,
> > >
> > > Brad
> > >
> > > "Rodney KEMPLER" <p.ansar@oriam.com> wrote in message
> > > news:xKH8h9teAHA.216@forums.sybase.com...
> > > > Hi Brad
> > > >
> > > > On the client side, you can modify the dwcomn.js to add this
function
> > > >
> > > > // 08/18/2000 : Add-on from Rodney Kempler
> > > > function HTDW_itemChangedFar (row, columnName, newValue)
> > > > {
> > > >     if (row != null && columnName != null && newValue != null)
> > > >        {
> > > >         this.actionField.value  = "ItemChanged";
> > > >         this.contextField.value = "Row=" + row + ", columnName=" +
> > > > columnName + ", newValue=" + newValue;
> > > >         this.submitForm.submit();
> > > >        }
> > > >     else
> > > >        {return 2;}
> > > > }
> > > >
> > > > Don't forget to add this function to the class...
> > > >
> > > > function HTDW_DataWindowClass(name, submitForm, actionField,
> > contextField)
> > > > {
> > > > ...
> > > >   // 08/18/2000 : Add-on from Rodney Kempler
> > > >   this.itemChangedFar = HTDW_itemChangedFar;
> > > > ...
> > > > }
> > > >
> > > > and in your page you can code this
> > > >     <SCRIPT language=JavaScript>function HTML_DW_ItemChanged (row,
> > > > columnName, newValue)
> > > > {
> > > >  var nReturn
> > > >  nReturn = HTML_DW.itemChangedFar (row, columnName, newValue);
> > > >
> > > >  if (nReturn != null)
> > > >     {return nReturn;}
> > > > };
> > > >     </SCRIPT>
> > > >
> > > >
> > > > On the server side :
> > > >     For the Page Server, you have to adapt the object model
> ObjMod.SSC,
> > > >     In Jagar you have to customise a component to handle the
> > "ItemChanged"
> > > > Event.
> > > >
> > > >
> > > >
> > > > Brad Mitchell <brad@kinekted.com> a �crit dans le message :
> > > > m1OfM5neAHA.267@forums.sybase.com...
> > > > > I'm having an 'irrating' problem in creating an html dw that
> contains
> > 2
> > > > > dddw's.  Whats supposed to happen is that when the html dw is
> invoked,
> > > it
> > > > is
> > > > > passed 2 arguments that are used to specify who the user is -
> company
> > > > number
> > > > > and user number.  Based upon these arguments, the first dddw is
> > supposed
> > > > to
> > > > > populate a list of available selections based upon entries in a
> > > secondary
> > > > > table - company # and user # are contained in the secondary table
> that
> > > the
> > > > > dddw accesses. Based upon the user's selection from the primary
> dddw,
> > > the
> > > > > second dddw is supposed to be populated with the 'detail' elements
> > > > relative
> > > > > to the selection elements in the primary dddw. The secondary dddw
> > > accesses
> > > > > another table that contains the same fields - company # and user #
> on
> > > each
> > > > > record plus the selection # from the primary dddw.
> > > > >
> > > > > I can't seem to figure out a way to pass these arguments based
upon
> > the
> > > > > client-side event back so that the dddw's are populated correctly.
> > Any
> > > > > ideas would be welcome!-)
> > > > >
> > > > > We are running NT 4.0 (SP6), EA Server 3.5 C3, EA Studio 3.5 C3 .
> > > > >
> > > > > TIA
> > > > >
> > > > > Brad
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>


0
Rodney
1/11/2001 11:24:46 AM
Hi Brad,

I forgot to tell you more about ...

=> The custom Powerbuilder "nv_remote_datawindow "component who need a new
function "Deactivate"
TransactionServer  serverContext
Long ll_Return

this.GetContextService("TransactionServer", serverContext)

IF serverContext.IsInTransaction () THEN
 ll_Return = -1
ELSE
 ll_Return = serverContext.SetComplete ()
END IF

Return ll_Return

=> The adaptation of ObjMod.ssc to use this new component function

function oriam_datawindow_deactivate ()
{
if (this.Component != null)
   {
    result = this.Component.deactivate ();
    TestComponentError ("deactivate");
    this.Component = null;
    this.bDidRetrieve = false;
    this.bSetObject = false;
    session [this.sObjectName] = null;
   }
else
   {result = 1;}

return result;
};

Don't forget to declare it for the class...

function PSDataWindowClass(sObjectName, bServerSideState, jaguarConnection,
sourceLocation, dbParms, pageSize)
{
....
this.Deactivate = datawindow_deactivate;
....
}

= > the coding  off the HTML Page...

You should have :

    - A) a server PD Script with something like

<%
// Create the DataWindow => !!!!! with "bServerSideState" = True !!!!!
dwMine = new PSDataWindowClass (...);

// Check the page parameter
var ppSelection = psDocument.GetParam ("USER_Selection");

if (ppSelection != "OK")
   {
    dwMine.SetWeight (true, true, true, true, true);
    dwMine.OpenArgs[0] = Param1;
    ...
    dwMine.Generate ();
   }
else
   {dwMine.bServerSideState = false;
    dwMine.Deactivate ();

   psDocument.Redirect (...);
   }

%>

    - B) a button for validation like

         <FORM id=FORM1 name="FORM_VALIDATE" action="Selection.htm"
method=post>
                  <INPUT value=OK id=INPUT1 name="USER_Selection"
type=hidden>
                   <INPUT value=Validate id=INPUT3 name=btValidate
type=submit>
         </FORM>

Rodney


Brad Mitchell <brad@kinekted.com> a �crit dans le message :
znA8CT0eAHA.216@forums.sybase.com...
> Rodney -
>
> I've modified the dwcomn.js file to include the new function and the
updated
> class.  You mentioned in your previous thread that I would need to:
>
> " On the server side :
> For the Page Server, you have to adapt the object model ObjMod.SSC, In
Jagar
> you have to customise a component to handle the "ItemChanged"  Event."
>
> Do you mean that I need to modify the ObjMod.SSC file in PowerDynamo in
the
> datawindow_generate method? And what specifically needs to be modified in
> Jaguar?
>
> Sorry for the questions...I do not consider myself the expert:-)
>
> TIA
>
> Brad
>
>
>
> "Rodney KEMPLER" <p.ansar@oriam.com> wrote in message
> news:F2ipdjyeAHA.216@forums.sybase.com...
> > Oups,
> >
> > I didn't fount the infos in the Jaguar CTS doc..
> >
> > Rodney
> >
> >
> > Brad Mitchell <brad@kinekted.com> a �crit dans le message :
> > SE6PhZyeAHA.294@forums.sybase.com...
> > > Rodney -
> > >
> > > Thanks for the reply but I'm a little confused with your suggestion.
> > Where
> > > is dwcomm.js?
> > >
> > > TIA,
> > >
> > > Brad
> > >
> > > "Rodney KEMPLER" <p.ansar@oriam.com> wrote in message
> > > news:xKH8h9teAHA.216@forums.sybase.com...
> > > > Hi Brad
> > > >
> > > > On the client side, you can modify the dwcomn.js to add this
function
> > > >
> > > > // 08/18/2000 : Add-on from Rodney Kempler
> > > > function HTDW_itemChangedFar (row, columnName, newValue)
> > > > {
> > > >     if (row != null && columnName != null && newValue != null)
> > > >        {
> > > >         this.actionField.value  = "ItemChanged";
> > > >         this.contextField.value = "Row=" + row + ", columnName=" +
> > > > columnName + ", newValue=" + newValue;
> > > >         this.submitForm.submit();
> > > >        }
> > > >     else
> > > >        {return 2;}
> > > > }
> > > >
> > > > Don't forget to add this function to the class...
> > > >
> > > > function HTDW_DataWindowClass(name, submitForm, actionField,
> > contextField)
> > > > {
> > > > ...
> > > >   // 08/18/2000 : Add-on from Rodney Kempler
> > > >   this.itemChangedFar = HTDW_itemChangedFar;
> > > > ...
> > > > }
> > > >
> > > > and in your page you can code this
> > > >     <SCRIPT language=JavaScript>function HTML_DW_ItemChanged (row,
> > > > columnName, newValue)
> > > > {
> > > >  var nReturn
> > > >  nReturn = HTML_DW.itemChangedFar (row, columnName, newValue);
> > > >
> > > >  if (nReturn != null)
> > > >     {return nReturn;}
> > > > };
> > > >     </SCRIPT>
> > > >
> > > >
> > > > On the server side :
> > > >     For the Page Server, you have to adapt the object model
> ObjMod.SSC,
> > > >     In Jagar you have to customise a component to handle the
> > "ItemChanged"
> > > > Event.
> > > >
> > > >
> > > >
> > > > Brad Mitchell <brad@kinekted.com> a �crit dans le message :
> > > > m1OfM5neAHA.267@forums.sybase.com...
> > > > > I'm having an 'irrating' problem in creating an html dw that
> contains
> > 2
> > > > > dddw's.  Whats supposed to happen is that when the html dw is
> invoked,
> > > it
> > > > is
> > > > > passed 2 arguments that are used to specify who the user is -
> company
> > > > number
> > > > > and user number.  Based upon these arguments, the first dddw is
> > supposed
> > > > to
> > > > > populate a list of available selections based upon entries in a
> > > secondary
> > > > > table - company # and user # are contained in the secondary table
> that
> > > the
> > > > > dddw accesses. Based upon the user's selection from the primary
> dddw,
> > > the
> > > > > second dddw is supposed to be populated with the 'detail' elements
> > > > relative
> > > > > to the selection elements in the primary dddw. The secondary dddw
> > > accesses
> > > > > another table that contains the same fields - company # and user #
> on
> > > each
> > > > > record plus the selection # from the primary dddw.
> > > > >
> > > > > I can't seem to figure out a way to pass these arguments based
upon
> > the
> > > > > client-side event back so that the dddw's are populated correctly.
> > Any
> > > > > ideas would be welcome!-)
> > > > >
> > > > > We are running NT 4.0 (SP6), EA Server 3.5 C3, EA Studio 3.5 C3 .
> > > > >
> > > > > TIA
> > > > >
> > > > > Brad
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>


0
Rodney
1/11/2001 2:13:05 PM
Hi Brad

ERRATA :
On my last message you should have read "datawindow_deactivate" instead of
"oriam_datawindow_deactivate"

REMEMBER (for the other readers) :

Once you will have add a new function to the custom powerbuilder component
in Jaguar
don't forget to :

   1�) generate the java stubs from the Jaguar Manager

   2�) Compile this stubs that will be in
        - < Jaguar Dir>\html\classes\<Your Package>

       with the instruction "javac *.java" in a DOS window.

    3�)  Copy the previous directory in the PowerDynamo Dir
       - <PowerDynamo Dir>\class03

    4�) Stop and start again PowerDynamo.

Regards

        Rodney


Brad Mitchell <brad@kinekted.com> a �crit dans le message :
znA8CT0eAHA.216@forums.sybase.com...
> Rodney -
>
> I've modified the dwcomn.js file to include the new function and the
updated
> class.  You mentioned in your previous thread that I would need to:
>
> " On the server side :
> For the Page Server, you have to adapt the object model ObjMod.SSC, In
Jagar
> you have to customise a component to handle the "ItemChanged"  Event."
>
> Do you mean that I need to modify the ObjMod.SSC file in PowerDynamo in
the
> datawindow_generate method? And what specifically needs to be modified in
> Jaguar?
>
> Sorry for the questions...I do not consider myself the expert:-)
>
> TIA
>
> Brad
>
>
>
> "Rodney KEMPLER" <p.ansar@oriam.com> wrote in message
> news:F2ipdjyeAHA.216@forums.sybase.com...
> > Oups,
> >
> > I didn't fount the infos in the Jaguar CTS doc..
> >
> > Rodney
> >
> >
> > Brad Mitchell <brad@kinekted.com> a �crit dans le message :
> > SE6PhZyeAHA.294@forums.sybase.com...
> > > Rodney -
> > >
> > > Thanks for the reply but I'm a little confused with your suggestion.
> > Where
> > > is dwcomm.js?
> > >
> > > TIA,
> > >
> > > Brad
> > >
> > > "Rodney KEMPLER" <p.ansar@oriam.com> wrote in message
> > > news:xKH8h9teAHA.216@forums.sybase.com...
> > > > Hi Brad
> > > >
> > > > On the client side, you can modify the dwcomn.js to add this
function
> > > >
> > > > // 08/18/2000 : Add-on from Rodney Kempler
> > > > function HTDW_itemChangedFar (row, columnName, newValue)
> > > > {
> > > >     if (row != null && columnName != null && newValue != null)
> > > >        {
> > > >         this.actionField.value  = "ItemChanged";
> > > >         this.contextField.value = "Row=" + row + ", columnName=" +
> > > > columnName + ", newValue=" + newValue;
> > > >         this.submitForm.submit();
> > > >        }
> > > >     else
> > > >        {return 2;}
> > > > }
> > > >
> > > > Don't forget to add this function to the class...
> > > >
> > > > function HTDW_DataWindowClass(name, submitForm, actionField,
> > contextField)
> > > > {
> > > > ...
> > > >   // 08/18/2000 : Add-on from Rodney Kempler
> > > >   this.itemChangedFar = HTDW_itemChangedFar;
> > > > ...
> > > > }
> > > >
> > > > and in your page you can code this
> > > >     <SCRIPT language=JavaScript>function HTML_DW_ItemChanged (row,
> > > > columnName, newValue)
> > > > {
> > > >  var nReturn
> > > >  nReturn = HTML_DW.itemChangedFar (row, columnName, newValue);
> > > >
> > > >  if (nReturn != null)
> > > >     {return nReturn;}
> > > > };
> > > >     </SCRIPT>
> > > >
> > > >
> > > > On the server side :
> > > >     For the Page Server, you have to adapt the object model
> ObjMod.SSC,
> > > >     In Jagar you have to customise a component to handle the
> > "ItemChanged"
> > > > Event.
> > > >
> > > >
> > > >
> > > > Brad Mitchell <brad@kinekted.com> a �crit dans le message :
> > > > m1OfM5neAHA.267@forums.sybase.com...
> > > > > I'm having an 'irrating' problem in creating an html dw that
> contains
> > 2
> > > > > dddw's.  Whats supposed to happen is that when the html dw is
> invoked,
> > > it
> > > > is
> > > > > passed 2 arguments that are used to specify who the user is -
> company
> > > > number
> > > > > and user number.  Based upon these arguments, the first dddw is
> > supposed
> > > > to
> > > > > populate a list of available selections based upon entries in a
> > > secondary
> > > > > table - company # and user # are contained in the secondary table
> that
> > > the
> > > > > dddw accesses. Based upon the user's selection from the primary
> dddw,
> > > the
> > > > > second dddw is supposed to be populated with the 'detail' elements
> > > > relative
> > > > > to the selection elements in the primary dddw. The secondary dddw
> > > accesses
> > > > > another table that contains the same fields - company # and user #
> on
> > > each
> > > > > record plus the selection # from the primary dddw.
> > > > >
> > > > > I can't seem to figure out a way to pass these arguments based
upon
> > the
> > > > > client-side event back so that the dddw's are populated correctly.
> > Any
> > > > > ideas would be welcome!-)
> > > > >
> > > > > We are running NT 4.0 (SP6), EA Server 3.5 C3, EA Studio 3.5 C3 .
> > > > >
> > > > > TIA
> > > > >
> > > > > Brad
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>


0
Rodney
1/12/2001 7:41:36 AM
Reply:

Similar Artilces:

Using dddw's on html dw's
I've posted this to the powerbuilder.datawindow forum but was not quite sure if that was the correct forum. Here's the problem: I've created an html dw that uses 2 dddw's. It is invoked by the passing of 2 arguments that are passed when then user signs on to the system. These arguments are captured in the DynaScript of the html page via the session variable. Here are the questions: (1) How do I pass the initial arguments - company # and user # - to the primary dddw so that only those records on the table that the dddw is using are available and (2) when the use...

Using 6.5 DW's in 7's HTML and ActiveX DataWindows
PB 7 has the new HTML DataWindow and the ActiveX DataWindow. Both just read PBD's to extract a specific datawindow to process. Question: Can these new facilites read PB 6.5 datawindows? This would be nice to ease transition. We can still develop DW's in 6.5 until we thing 7.0 is stable and we can distribute to our developers. Don Weimann 1. No, it won't read PB7 datawindows. HTMLDW is implemented by adding properties to the datawindow object. 2. PB7 is, AFAIK, rather stable. I've invested a great deal of time to ensure that it, and in particular, the HTM...

Replace 1's and 0's in a gridview column with Yes's and No's
Is it possible to change the display of a column in a gridview to show a Yes for all 1's and a No for 0's that display in a particular column of a gridview bound to a database?  If so, can someone share the way with me?  I am using ASP.NET 2.0 with VB Code Behind.  Thanks One way you can do is thrrough  CASE in your select statement: Select YesNoColumn= CASE yourColumn WHEN 1 THEN 'Yes' WHEN 0 THEN 'No' ELSE '' END FROM YourtableLimno <Columns>     <asp:TemplateField HeaderText="yourHeader" SortExpression="yourDataField"> ...

It's Linux !? No, it's BSD ! No, no, it's...
kFreeBSD http://wiki.debian.org/Debian_GNU/kFreeBSD a Debian distro using the FreeBSD kernel ! ObiWan wrote: > kFreeBSD > > http://wiki.debian.org/Debian_GNU/kFreeBSD > > a Debian distro using the FreeBSD kernel ! Why use a BSD kernel? I hope the reason is more than, just because they can. http://wiki.debian.org/Debian_GNU/kFreeBSD_why It's easy to understand why the would want to use Debian packages. :) -- Jimmy Johnson Registered Linux User #380263 >> kFreeBSD >> >> http://wiki.debian.org/Debian_GNU/kFreeBSD >> ...

Do dddw's work on external source dw's?
I've been trying to put a drop down datawindow on an external datawindow. So far, I can't get it to populate. The dddw's datawindow shows everything fine, and I can define the edit style in the dw OK. But the dddw doesn't populate when I display the datawindow. If I put a default value in the dw column, it displays the data value rather than the display value. Can this work? On Mon, 10 Nov 1997 16:59:09 -0800, Marvin Young <younmhy@dfw.wa.gov> wrote: >I've been trying to put a drop down datawindow on an external >datawindow. So far, I can...

Help! I cannot access the DataGrid's ItemTemplate's LinkButton's Text Atrribute 's Value!!!!!!!!!!!
I write a datagrid's ItemDataBound method as follows:   private void dgTable_ItemDataBound(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e)  {   if(e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)   {    if(!isRole("Manager"))    {     LinkButton tmp = (LinkButton)e.Item.FindControl("lbPassed");     if(tmp.Text == "Passed")     {      ((LinkBu...

Hyperlink's, ImageURL's, and OnError's
I created an ASP:Hyperlink and set the ImageURL attribute so the link will be the image.If the image is missing, I would like it to display a 'missing image' pic that I have.  I know you can use the OnError attribute of the <img> tag to run some javascript to change it.Unfortunately I can't find a way to access the Hyperlink's Image that is inside it, so I can add an Attribute so the resulting <img> tag will have an OnError attribute inside of it.Any help?If my Hyperlink is called 'foo'....would I do...  ((Image) foo.Controls[0]).Attributes.Add(&...

DataSet's DataTable's and TableAdapter's Oh My!
Here is my situation.  I am using VB as my programming language.I am creating a part of a website that will be the admin section.  I want the admin to be able to add/edit data in a set of tables that normal users can't.  There are 20 lookup tables that I use in the website that I want the admin to be able to manage (i.e. add, edit, delete, insert).  I don't want to create 20 separate web pages (one for each table).  I have one page that has links to all the tables.  Each link has a "table" querystring variable associated with it.  When the...

Who's show is SN? Steve's or Leo's?
I don't want to start anything (honestly)! Just want to ask a simple question. Does the Security Now podcast belong to Steve Gibson or Leo Laporte? Maybe I'm in a world all to myself, but when I listen to the excellent SN podcasts, I want to hear STEVE, not Leo. But especially in the past few shows, it seems Leo will repeatedly interrupt Steve in the middle of a sentence that I want to hear the rest of. I consider this very rude of Leo. Steve is making a point that I (we) want to hear, then looses his train of thought after Leo barges in and asks something. It...

Guru's..?? Any do's and/or dont's for Zfd4 and Citrix..?
We've got a nw6/sp5 network with GW 6.5, bm3.7 and zfd 4.01 up'n'running.. Now we're adding a citrix server ( win2003) to the mix, will supply a couple off app's to users over the internal VPN in another city. Probably we'll skip the AD phase since we can not see any app and/or user with the need for AD. So,, any special considorations..? tip's'tricks..? known issues...? t.i.a... On Mon, 16 Aug 2004 15:57:10 GMT, Emerson wrote: > So,, any special considorations..? tip's'tricks..? known issues...? biggest one... zfd4.x d...

411 it's pconsole, 51 it's NWPMW32, 65 it's ???
I like to give some of my users controll over their print jobs. In Netware 3.x to 4.x it was pconsole. In Netware 5.x it was NWPMW32. I don't seem to be able to find the same type of utility for Netware 6.5? We don't like to give user access to nwadmin and the NWPMW32 I copied from my 51 server (TID 10075273) to the 65 server won't display the jobs. Mmccabe, It appears that in the past few days you have not received a response to your posting. That concerns us, and has triggered this automated reply. Has your problem been resolved? If not, you might try o...

Repost: FF won't show gif's nor jpg's Red X's
XP sp2 FF 2.0.0.4 extentions: Adblock Plus Copy plain text Fasterfox Firebug FireFTP McAfee SiteAdvisor NoScript Talkback Video Downloader Pic's show red x's. These pics show just fine in Internet Explorer and Netscape. Anyone have any ideas????? Fasterfox, I guess. See what happens if you disable it (or just disable its pipelining feature). -- �Q� =============== Thank you Q. I disabled all of them, one at a time (restarting each time) and the problem still exists :-( digimomma On 7/12/2007 5:26 PM digimom inquired: > Thank y...

Web resources about - dddw's on html dw's - sybase.powerbuilder.datawindow

Resources last updated: 1/5/2016 2:34:07 AM