Page 1 of 1
any ideas
Posted: Fri Aug 07, 2009 12:26 pm
by ConvertFromOldNGs
by James >> Sat, 25 Oct 2003 19:02:02 GMT
in my CustomerList form load method i have this -
its straight out of the book, However DisplayCollection_Foward comes
up as an error unknown type or constant in both the methods below? any ideas what i should use instead?
load() updating;
begin
table.setCellText (1,1, "Customer ID" & Tab & "First Name" & Tab & "Last Name");
table.displayCollection (app.myBookshop.allCustomers, true, Table.DisplayCollection_Foward, null);
end;
and my Btn_List for my customer list is as such -
btnList_click(btn: Button input) updating;
vars
begin
table.displayCollection (app.myBookshop, true,
Table.DisplayCollection_Foward, null);
end;
Re: any ideas
Posted: Fri Aug 07, 2009 12:26 pm
by ConvertFromOldNGs
by
allistar >> Sat, 25 Oct 2003 19:46:50 GMT
Replace Table.DisplayCollection_Forward with a 0 and see if that fixes it. (I have never used table.displayCollection before).
Allistar.
------------------------------------------------------------------
Allistar Melville
Software Developer, Analyst
allistar@silvermoon.co.nz
Auckland, NEW ZEALAND
Silvermoon Software
Specialising in JADE development and consulting
Visit us at:
http://www.silvermoon.co.nz
*NEW* Simple web access to Jade at:
www.silvermoon.co.nz/jhp.html ------------------------------------------------------------------
Re: any ideas
Posted: Fri Aug 07, 2009 12:26 pm
by ConvertFromOldNGs
by James >> Sun, 26 Oct 2003 2:23:56 GMT
when i do this -
table.displayCollection (app.myBookshop.allCustomers, true, 0, null);
it compiles with no errors, but when i load the form an Unhandled exception comes up saying,
SystemException 1090
Continuable: No
Attempted access via null object reference
Caused by
Reciever Type: CustomerList
Recieved OID: 2070.7.0.0.0 (transient)
Method: CustomerList: load
Source:
table.displayCollection (app.myBookshop.allCustomers, true, 0, null);
Re: any ideas
Posted: Fri Aug 07, 2009 12:26 pm
by ConvertFromOldNGs
by
allistar >> Sun, 26 Oct 2003 21:24:46 GMT
Is app.myBookshop set? (You need to put code in the application initialise method to do this, it won't happen automatically).
Allistar.
------------------------------------------------------------------
Allistar Melville
Software Developer, Analyst
allistar@silvermoon.co.nz
Auckland, NEW ZEALAND
Silvermoon Software
Specialising in JADE development and consulting
Visit us at:
http://www.silvermoon.co.nz
*NEW* Simple web access to Jade at:
www.silvermoon.co.nz/jhp.html ------------------------------------------------------------------
Re: any ideas
Posted: Fri Aug 07, 2009 12:26 pm
by ConvertFromOldNGs
by
Patwos >> Mon, 27 Oct 2003 7:05:48 GMT
I'm not sure why this would not be compiling for you as it works perfectly for me - and it's much better to use meaningfully named constants rather than their numeric equivalent as per Allistar's suggestion.
What happens if you type Table. and then press the Ctrl+F3 combination after the period. You should now get a list of the Contants defined for the Table class and DisplayCollection_Forward should be one of the listed entries?
Hope that helps,
Pat.
Re: any ideas
Posted: Fri Aug 07, 2009 12:26 pm
by ConvertFromOldNGs
by Patwos >> Mon, 27 Oct 2003 7:07:13 GMT
errrrr...... that was meant to be Ctrl+3 key combination, not Ctrl+F3......
Pat.