for displaying in the InventTable form along with InventTable you should
also insert record in the tables InventTableModule (3 records one for Sales,
purch and Invent) and InventItemLocation (here you can create a line for the
Item and have the InventdimId as "Axapta" ) .
  -----Original Message-----
  From: smeagul2303 [mailto:[EMAIL PROTECTED]
  Sent: 16 July 2004 14:11
  To: [EMAIL PROTECTED]
  Subject: [development-axapta] Display temporary inventTable in form
InventTable


  Hi,

  I want all changes doing in InventTable to be proved by a supervisor.
  Only proved changes should be written to InventTable.

  Therefore I save the inventTable (and dependent records from
  InventTableModule and InventItemLocation) in a container.
  To change the record I restore it and want to open form InventTable
  to display all informations, also informations
  for InventTableModule and InventItemLocation.

  For displaying I set the records temporary and copy them to the
  datasource in InventTable.
  This I do from the linkActive Method from InventTable:

  inventTableTmp.setTmp();
  inventTableTmp.clear();
  inventTableTmp.overwriteSystemfields(true);
  inventTableTmp.data(_common);
  inventTableTmp.doInsert();

  dataSource = changeForm.dataSource(#INVENTTABLE_DS);
  inventTable = dataSource.cursor();
  inventTable.clear();
  inventTable.setTmp();
  inventTable.data(inventTableTmp);

  the same I do with datasource Invent_ds, Purch_ds, Sales_ds and
  InventItemlocation_ds.

  Although the datasources are filled, the controls are all empty
  (nothing is displayed).
  In the form SalesTableVoided they do it in a similar way, and there
  it works.

  I do the same with InventBatch, there it works also. The difference
  to INventTable is in my opinion only that there is only one
  datasource in the form.

  Questions are:
  If the cursor from datasources are filled and the controls don't
  show the value, what has to be done to make the controls display ?

  Method executeQuery only works with permanent data, because it
  creates a SQL-Statement and send it to database.
  How do I represent complex temporary data which is stretched over
  several tables?


  Regards

  Manfred



        Yahoo! Groups Sponsor
              ADVERTISEMENT





----------------------------------------------------------------------------
--
  Yahoo! Groups Links

    a.. To visit your group on the web, go to:
    http://groups.yahoo.com/group/development-axapta/

    b.. To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

    c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



[Non-text portions of this message have been removed]



Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to