RE: [development-axapta] Strange records in table CustInvoiceJour

2004-08-26 Thread lho
Perhaps from free text journal. // Lars -Original Message- From: Jens Strandberg [mailto:[EMAIL PROTECTED] Sent: 26. august 2004 08:47 To: [EMAIL PROTECTED] Com (E-mail) Subject: [development-axapta] Strange records in table CustInvoiceJour Hello there, I have come across

RE: [development-axapta] the order of payments to be settled

2004-08-25 Thread lho
Hi, Try to have a look at OffsetVoucher.updateNow(). In std. Axapta, the CustTransOpen / VendTransOpen is sorted by DueDate. Try to change the sorting there. Regards, Lars -Original Message- From: awei_at_ws [mailto:[EMAIL PROTECTED] Sent: 25. august 2004 07:55 To: [EMAIL

RE: [development-axapta] Creating LedgerJournalTrans in code

2004-08-25 Thread lho
Hi Christian, You can create ledgerJournalTrans records without using the engine - but you can't be sure that all the right fields have been filled out. The engine takes care of this for you. Therefore, I suggest you to modify the engine. It's not too hard. Here are the steps: 1. Make

RE: [development-axapta] Re: (urgent) visibility methods

2004-08-19 Thread lho
Dough.. didn't see that - esveni - thought you asked the question... :o) -Original Message- From: Sergey Siroklin [mailto:[EMAIL PROTECTED] Sent: 19. august 2004 14:29 To: [EMAIL PROTECTED] Subject: RE: [development-axapta] Re: (urgent) visibility methods I wrote example exactly

RE: [development-axapta] De-active the Document Handling icon thr ough coding

2004-08-13 Thread lho
Hi Akash, You can either use the DocuTableEnabled setup (found here: Basic, Setup, Document management, Active document tables) (remember to check the checkfield here: Basic, Setup, Document management, Parameters, Use Active document tables) or perhaps to add some code in the

RE: [development-axapta] Lock of TreeNode

2004-08-12 Thread lho
Hi Don, It seems as the AOT element is still displayed as locked in the AOT when it is deleted in the UtilLocks table (found here: menu Tools, Dev. tools, Appl. objects, Locked appl. objects). But if you restart Axapta, the AOT is updated with the correct information. The job below sets

RE: [development-axapta] Is Record Modified

2004-08-12 Thread lho
How about: if (bufCmp(table, table.orig()) info(Changed!); else info(Not changed!); //Lars -Original Message- From: real_ikilicarslan [mailto:[EMAIL PROTECTED] Sent: 12. august 2004 16:49 To: [EMAIL PROTECTED] Subject: [development-axapta] Is Record Modified Hi, How can i

RE: [development-axapta] file writing and reading

2004-08-11 Thread lho
asciiIo.finalize() closes the file. However, Microsoft thought it was a nice idea to make this method protected, so you can't call it from your code. Instead, you need to make a new class which inherits AsciiIo. //Lars -Original Message- From: jasonm [mailto:[EMAIL PROTECTED]

RE: [development-axapta] Re: validate xml string

2004-08-10 Thread lho
Looks like a bug to me.. Ever thought of using char2num instead? :o) //Lars -Original Message- From: byteway_so [mailto:[EMAIL PROTECTED] Sent: 10. august 2004 14:50 To: [EMAIL PROTECTED] Subject: [development-axapta] Re: validate xml string Another strange thing is when I do

AW: [development-axapta] how print file from code?

2004-08-06 Thread lho
What kind of file are we talking about here? -Ursprüngliche Nachricht- Von: mat_bin [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 6. August 2004 11:48 An: [EMAIL PROTECTED] Betreff: [development-axapta] how print file from code? Hi, I would print a file from a class, how can I do

RE: [development-axapta] Form sort used for what?

2004-08-05 Thread lho
Hello James, It's being used here (an example) \Classes\PurchFormLetter_Invoice\newJournalList And here. \Classes\PurchFormLetter\run (line 38 and 57). Finally, it's being used here: \Classes\PurchFormLetter_Invoice\printJournal The explained purpose is to sort the printouts. E.g.,

RE: [development-axapta] Thread programming in Axapta

2004-08-05 Thread lho
Hi Jens and Helmut, Be careful with the Thread class - it works extremely unstable (tried on SP3 and earlier service packs). It might crash your system, so be aware of this. I just tried the tutorial called tutorial_thread (it's a form) and quit Axapta. Then I've got a nice greeting from

RE: [development-axapta] Run a class in batch

2004-08-03 Thread lho
I guess something like this: TestBatch testBatch; Batch batch; ; testBatch = new TestBatch(); if (testBatch.batchInfo()) { testBatch.batchInfo().parmBatchExecute(NoYes::Yes); testBatch.batchInfo().parmGroupId('MyGroup'); testBatch.batchInfo().doBatch(); } testBatch.run();

RE: [development-axapta] Maximize form

2004-08-02 Thread lho
Bonjour Mat, Type this in run after super() WinAPI::forceMaximizeWindow(this.hWnd()); //Lars -Original Message- From: mat_bin [mailto:[EMAIL PROTECTED] Sent: 2. august 2004 16:11 To: [EMAIL PROTECTED] Subject: [development-axapta] Maximize form How can I maximize a form

RE: [development-axapta] Disabling all dataset fields except a sp ecific one.

2004-08-02 Thread lho
Create a loop that traverses the fields and set the desired rights, e.g something like this (example done on CustTable). The method is the init of the datasource public void init() { int x; DictField dictField; FieldId fieldIdExt; FieldId fieldId; DictTable dictTable = new

RE: [development-axapta] Tree-control and columns

2004-08-01 Thread lho
Hi Erik, Perhaps you can combine it with some ordinary fields, like in the tutorial_Form_TreeDatasource? I don't think it's possible to add a grid to a tree control as a node (or similar), at least not in Axapta. In Java, yes.. but.. :o) //Lars -Original Message- From: Erik

RE: [development-axapta] Validation on insert and update

2004-07-30 Thread lho
Use validateWrite or validateField on the table. //Lrs -Original Message- From: Matt Benic [mailto:[EMAIL PROTECTED] Sent: 30. juli 2004 10:33 To: Axapta Dev Subject: [development-axapta] Validation on insert and update Hi All, I have a requirement that users may assign certain

RE: [development-axapta] Edit method problem in grid...

2004-07-30 Thread lho
The reason is, that you need to store the value of _MarkTrans somewhere, e.g. in a Map. You need to instantiate the map variable: map = new Map(Types::Integer, Types::boolean); and to declare it in ClassDeclaration of the form. edit NoYes markTrans(boolean set, CommissionTrans

RE: [development-axapta] DSN

2004-07-27 Thread lho
Hi Jim, You only need one DSN per database server. E.g., if those two Axapta 2.5 installations is on the same PC and they use the same db server, then you only need one dsn. You specify the database used in the axconfig. //Lars -Original Message- From: Chwaszczewski, Jim

RE: [development-axapta] Re: Passing Args

2004-07-27 Thread lho
Hi Byteway, In e.g. Java, it's important to keep a low coupling and high cohesion - to assign responsibilities. That's correct. However, in Axapta RunBase classes, the dialog is programmed in the same class as where the application is, unless you use a form in the dialog method. In Java

RE: [development-axapta] Re: Passing Args

2004-07-27 Thread lho
Hi Byteway, I don't think it's possible to find out which field is selected using a RunBase / RunBaseBatch inherited class. It is possible to some extend in a form though... But what do you need it for anyway? :o) The method called dialogSelectCtrl is called every time a control is

RE: [development-axapta] Re: insert records SQL table outside ax apta

2004-07-26 Thread lho
Hi Girish, Try this: ODBCConnection oDBCConnection; LoginProperty loginProperty; Statement statement; ; // Initialize Connection loginProperty = new LoginProperty(); loginProperty.setDSN('SQLBucket'); // DSN Name - CHANGE THIS! loginProperty.setUsername(sa); // user name

RE: [development-axapta] Relations between QueryBuildDatasource a nd FormDatasource

2004-07-23 Thread lho
Hi Manfred, Can't you just use a tmp table or a Table control? A table control is a bit hard to work with though but you can display almost anything in it. Even different datatypes in the same row / column. But to make a long explanation short: I don't think you will have much success

RE: [development-axapta] How to print 3 copies of a report ?

2004-07-23 Thread lho
Hi Fabien, If you can live with the copies in the same report - then it's quite easy: Try to call super three times in run of the inherited RunbaseReport class. You might want to pass some parameters to the report in between each call to super, e.g. Object r = this.reportRun(); ;

RE: [development-axapta] I would like interact with user in a tts begin commit

2004-07-22 Thread lho
Bonjour Mathieu, You cannot and you should not. The reason is (among others) that the lock can stand forever or until the user interacts with the dialog. Instead you should interact with the user before or possibly after the transactions are done. //Lars -Original Message-

RE: [development-axapta] Re: Dialog

2004-07-22 Thread lho
Hi Byteway, There's a good example of what I think you need here: Master planning, Periodic, Master scheduling. Try to fill in a master plan and and see what happens. The corresponding class is ReqCalcScheduleItemTable. Have a look in the dialog method, line 11 and the method called

RE: [development-axapta] customize iconbar

2004-07-20 Thread lho
Hallo Thomas, It's not directly possible but you can e.g. make your own form, add some icons to it and change the property WindowType to Popup and the property Frame to None and make a fixed position on the screen. This is the closest you get to it. //Lars -Original Message- From:

RE: [development-axapta] insertion to an axapta table from a non- axapta application

2004-07-12 Thread lho
Hi, You can try to use either COM integration or a table from where an Axapta batch class reads and replicates to it's own table. Thereby you will get recid's generated by Axapta. Regards, Lars -Original Message- From: utku tatlidede [mailto:[EMAIL PROTECTED] Sent: 12. juli 2004

RE: [development-axapta] QueryRange expressions

2004-07-12 Thread lho
Another solution could be to build a temp table record set containing a representation of the ranges and then to join your table on this temp table. The sql query becomes very quickly too large for the db to handle it. Therefore, it can be an idea to do it this way. temp table (containing