RE: [development-axapta] Lookup form closes immediately

2004-12-21 Thread Sebastian Draese






Hello Helmut,

that strange behaviour happens in my cases every time, when in
the lookup-form any outputs occur, something like an info, an debugprint,
or something like that.

are there any changes at this form ??
or is it "standard" ?

bxe,
SebDra




-Original Message-
From: HEW (Helmut Wimmer) [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 20, 2004 1:08 PM
To: development-axapta@yahoogroups.com
Subject: [development-axapta] Lookup form closes immediately



Hi

1. The ItemId field has a "lookup" method that will open the FRM
InventItemIdLookupSimple. When the user clicks on the lookup button, the
form is opened and the user can select an item id.

public void lookup()
{
    Args   args;
    Object formRun;
    FormRun    caller;
    ;

    args = new Args();
    args.name(formStr(InventItemIdLookupSimple));
    args.caller(element);
    formRun = classFactory.formRunClass(args);
    formRun.init();
    this.performFormLookup(formRun);
}

2. The salesunit field has a "modified" method that should simply open the
lookup form again for the item id. When the user changes the unit, the
lookup form is opened and then closed immediately.

public boolean modified()
{
    boolean ret;

    ret = super();
    SalesLine_ItemId.setFocus();
    SalesLine_ItemId.lookup();

    return ret;
}

What should happen? -> Of course the lookup form should stay available so
the user can select something.

There is only those 2 new methods compared to a standard Axapta.

Please Note: depending on which exe version you are running, the above error
occurs or not:

Axapta 2.5 SP1: The error does NOT occur, the lookup form stays open.
Axapta 2.5 SP4: The error occurs, lookup form closes immediately.
Axapta 3.0 SP3: The error occurs, lookup form closes immediately.

My question is:
how can I open the lookup form of a specific field on a form when the lookup
is called from a different field's modified method ???

Best regards
Helmut





 Yahoo! Groups Sponsor ~--> Make
a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/saFolB/TM
~-> 

 
Yahoo! Groups Links



 















Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/development-axapta/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: AW: [development-axapta] strange behaviour of a table in the AOT

2004-12-21 Thread Amit Jain


Hello 
 
Well i have a solution to this problem. This might not be technical one but 
always work. What you can do is create two new tables, one of which is placed 
before the corrupted table and other after. Select first new table and then 
select second new table using shift so that the table in between i.e. corrupted 
table is also selected and then delete the tables. 
 
This will solve your problem and you don't need to delete the VAR layer.
 
Happy deletion of the corrupted table. 
 
Cheers
Amit Jain
Euroinfo systems (EIS) India





Hi Sebastian,
take a look in the system table SQLDictionary (Filter on your table name) Maybe 
the table is registered twice
Otto

-Ursprüngliche Nachricht-
Von: Sebastian Draese [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 20. Dezember 2004 11:08
An: development-axapta@yahoogroups.com
Betreff: [development-axapta] strange behaviour of a table in the AOT




Hello,

i have some trouble with a table in the AOT.

The Table is placed at the VAR-Layer, but the funktion tablename2id
gives me an 50002-Id, but it wasn't imported with "ID", it was
created in the AOT

Sync and compile of the data dictionary works well.
Also the "rebuild index" at the sql-administration-form.

but when i select / click the table at the AOT, Axapta Crashes immediately !
i can't even delete the table !

when i use the sql-administration-form and use the menufunction search, i'll
get the message: not enough rights for this table.

but the user admin has full access on every sec-key exists at the aot !

what can i do ??
how can i remove / delete this table without delete the whole var-layer ?


bxe,
SebDra

-- 
-
Dipl.Ing. (BA) Sebastian Draese
[EMAIL PROTECTED]
[EMAIL PROTECTED]

NEU +++ DSL Komplett von GMX +++ http://www.gmx.net/de/go/dsl
GMX DSL-Netzanschluss + Tarif zum supergünstigen Komplett-Preis!







Yahoo! Groups Links













Yahoo! Groups Links









-
Do you Yahoo!?
 Send holiday email and support a worthy cause. Do good.

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






 Yahoo! Groups Sponsor ~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/saFolB/TM
~-> 

 
Yahoo! Groups Links

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

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 






RE: [development-axapta] setting default value

2004-12-21 Thread Melega Árpád






Hi!

 

Use the initValue method of the table.

 

Best regards,

Arpad Melega

 

 



From: RHODPR [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 20, 2004 2:14 PM
To: development-axapta@yahoogroups.com
Subject: [development-axapta] setting default value

 

*  
  I want to set a default value for a field.  I want to obtain that, 
  whenever a new record is inserted, this field is automaticaly filled 
  in with this default value.  I can't see it in the properties of the 
  field... can anyone tell me where to look for this?
  
  . 



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













Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/development-axapta/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










[development-axapta] accesing information in a buffer

2004-12-21 Thread mrommers









Hello:

I want to know how can to accessing information from a object common 
buffer.
for example I need to access the information salesLine.salesId
storage in a buffer calling from updateReserveMore in a Class 
InventUpd_reservation.


thanks. 
 
Miguel Rommers

















Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/development-axapta/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [development-axapta] strange behaviour of a table in the AOT

2004-12-21 Thread Thomas Turn Jensen






Hi Sebastian,

Assuming you have a fresh backup of the table in question, there's a system 
form - something like SysApplicationObject or similiar. In essence this form 
lists each layer of each AOD-object in the system as one record. From here I 
have been able to remove "bad" objects in the past, when I too had the 
"crash-on-touch" problem.

Have a look for the form - if you can't find it let me know and I'll check.

Btw. What Axapta are we talking? 2.5? 3.0? what Servicepack?

- Original Message - 
From: "Sebastian Draese" <[EMAIL PROTECTED]>
To: 
Sent: Monday, December 20, 2004 11:08 AM
Subject: [development-axapta] strange behaviour of a table in the AOT




Hello,

i have some trouble with a table in the AOT.

The Table is placed at the VAR-Layer, but the funktion tablename2id
gives me an 50002-Id, but it wasn't imported with "ID", it was
created in the AOT

Sync and compile of the data dictionary works well.
Also the "rebuild index" at the sql-administration-form.

but when i select / click the table at the AOT, Axapta Crashes immediately !
i can't even delete the table !

when i use the sql-administration-form and use the menufunction search, i'll
get the message: not enough rights for this table.

but the user admin has full access on every sec-key exists at the aot !

what can i do ??
how can i remove / delete this table without delete the whole var-layer ?


bxe,
SebDra

-- 
-
Dipl.Ing. (BA) Sebastian Draese
[EMAIL PROTECTED]
[EMAIL PROTECTED]

NEU +++ DSL Komplett von GMX +++ http://www.gmx.net/de/go/dsl
GMX DSL-Netzanschluss + Tarif zum supergünstigen Komplett-Preis!







Yahoo! Groups Links



















Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/development-axapta/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [development-axapta] Axapta 3-tier Login Error

2004-12-21 Thread vaibhav pednekar






helloo


apply the same service pack to all clients, and AOS -
Axapta Object Server and application

this error occurs due to mismatch between the service
packs at client and the AOS and / appliaction

regards
vaibhav pednekar
--- mchiat <[EMAIL PROTECTED]> wrote:

> 
> 
> Hi all,
> 
> I've installed the AOS and configured the IIS and
> tried to log in 
> through web using another client PC.  
> 
> The following error message arise and prevent me
> from login.  Can 
> anyone tell me what's going wrong? 
> 
> "Internal revision mismatch in Axapta Object
> COmmunication 
> Protocol.  Same kernel build should be used for both
> Navision Axapta 
> Client and Object Server."
> 
> FYI, I'm using Axapta Version 3 SP2.
> 
> Thanks.  
> 
> 
> Best Regards,
> 
> Jack Koh
> 
> 
> 
> 
> 
> 
> 



    
__ 
Do you Yahoo!? 
Yahoo! Mail - Find what you need with new enhanced search.
http://info.mail.yahoo.com/mail_250












Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/development-axapta/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










[development-axapta] Do I have to delete my axapd.aoi as long as I update my axuser.aod?

2004-12-21 Thread maipian_chen







    I note that even axapd.aoi is not deleted in advance, when I 
substitute the old axuser.aod with a new one(suppose there is no 
table change between the two ones), the index is rebuilt ag(much 
sooner than aoi deleted).So do I have to delete aoi before update 
user layer? Thanks.















Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/development-axapta/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










[development-axapta] Checkbox printShippingLabel

2004-12-21 Thread Danny Gaethofs







Dear all,

I have added a new checkbox to the form SalesEditLines. 

CheckBox is named: printCertitificate, property AutoDeclaration =
yes, AllowEdit = No, Skip = yes


I made sure that several methods on the Class SalesFormLetter are 
modified:
- ClassDeclaration: add printCertificate
- initParameters: set value for printCertificate

I added two new methods on the class:
- posPrintCertificate: set position
- printCertificate: return the value of printCertificate

Made sure that methods on Form SalesEditLines are modified:
- ClassDeclaration: add printCertificateChoice
- closeOk: added parameter printCertificateChoice
- rearrange: added parameter printCertificate.value
- run: retrieve value printCertificateChoice from container

- active() method on datasource SalesParmTable: added setting of 
checkbox value (printCertificate.value(printCertificateChoice)


Now I notice when I select the checkbox it is deselected immediately 
afterwards. It has something to do with the setting of 
printCertificate from the beginning. When I set it to yes in the 
classFormLetter.dialog the opposite occurs. When I deselect the 
checkbox it is enabled.

Can someone tell me what I am overlooking here?

regards,
Danny
















Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/development-axapta/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










[development-axapta] 2 different AOT Structure, 2 different DB, in 1 Axapta Application ?

2004-12-21 Thread anton_tjiptadi







Hi,
Is it possible to have 2 or more company account, 2 DB, and that 2 or 
more company account has its own AOT (in that case different objects) 
in 1 Axapta Application ?

for example  I have installed my Axapta application, and then I 
created :
- 1 DB for company A and 1 DB for company B
- and then I Axapta configuration utility, I created 2 configuration,
 one connect to DB A and the other to DB B.
- when I login to Axapta, I choose company A, (with config to DB A),
and I import AOT (I already export AOT from another Axapta Appl to 
XPO file), specific for that company.
- and then I login with config to DB B, I choose company B and I 
import AOT specific for that company.

please note that objects in this 2 AOT (2 XPO for this case) is 
different in their objects, such classes, form, report, even tables.

I haven't try it yet, but who knows, maybe someone does, because in 
my logic, that's imposible, I meant two DB, yes, but the AOT 
structure must be same.

please enlighten me :)

thanks in advance,
Anton















Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/development-axapta/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










RE: [development-axapta] 2 different AOT Structure, 2 different DB, in 1 Axapta Application ?

2004-12-21 Thread Pieter Wijnen






you need 2 folders under appl 1 for companyA & 1 for companyB (you can
elect to use "standard" for one of the apps)
 
Pieter

  _  

From: anton_tjiptadi [mailto:[EMAIL PROTECTED] 
Sent: 21. desember 2004 10:12
To: development-axapta@yahoogroups.com
Subject: [development-axapta] 2 different AOT Structure, 2 different DB,
in 1 Axapta Application ?




Hi,
Is it possible to have 2 or more company account, 2 DB, and that 2 or 
more company account has its own AOT (in that case different objects) 
in 1 Axapta Application ?

for example  I have installed my Axapta application, and then I 
created :
- 1 DB for company A and 1 DB for company B
- and then I Axapta configuration utility, I created 2 configuration,
one connect to DB A and the other to DB B.
- when I login to Axapta, I choose company A, (with config to DB A),
and I import AOT (I already export AOT from another Axapta Appl to 
XPO file), specific for that company.
- and then I login with config to DB B, I choose company B and I 
import AOT specific for that company.

please note that objects in this 2 AOT (2 XPO for this case) is 
different in their objects, such classes, form, report, even tables.

I haven't try it yet, but who knows, maybe someone does, because in 
my logic, that's imposible, I meant two DB, yes, but the AOT 
structure must be same.

please enlighten me :)

thanks in advance,
Anton








Yahoo! Groups Sponsor  
ADVERTISEMENT
click here
   
 
   

  _  

Yahoo! Groups Links


*  To visit your group on the web, go to:
  http://groups.yahoo.com/group/development-axapta/
    
*  To unsubscribe from this group, send an email to:
  [EMAIL PROTECTED]

be> 
    
*  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












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/development-axapta/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










AW: [development-axapta] 2 different AOT Structure, 2 different DB, in 1 Axapta Application ?

2004-12-21 Thread Leberbauer, Herbert - News






The answer is simple: No!

You must have one Application-Folder for one AOT (the AOT is stored in the
Application-folder) and one DB for each Application-folder. Together
(Application and DB) this is an Axapta-Installation.
So if you want to have different AOTs, you have to install more than one
Application folder, and therefore you'll need more than one Axapta-License.

But why don't you merge those AOTs, and make your functions dependend on the
company you are currently using? The tables surely have to contain all
fields of all companies. But this would be the way to solve your
requirements.

br
Herbert

| -Ursprüngliche Nachricht-
| Von: anton_tjiptadi [mailto:[EMAIL PROTECTED] 
| Gesendet: Dienstag, 21. Dezember 2004 10:12
| An: development-axapta@yahoogroups.com
| Betreff: [development-axapta] 2 different AOT Structure, 2 
| different DB, in 1 Axapta Application ?
| 
| 
| 
| 
| Hi,
| Is it possible to have 2 or more company account, 2 DB, and 
| that 2 or more company account has its own AOT (in that case 
| different objects) in 1 Axapta Application ?
| 
| for example  I have installed my Axapta application, and then 
| I created :
| - 1 DB for company A and 1 DB for company B
| - and then I Axapta configuration utility, I created 2 
| configuration,  one connect to DB A and the other to DB B.
| - when I login to Axapta, I choose company A, (with config to 
| DB A), and I import AOT (I already export AOT from another 
| Axapta Appl to XPO file), specific for that company.
| - and then I login with config to DB B, I choose company B 
| and I import AOT specific for that company.
| 
| please note that objects in this 2 AOT (2 XPO for this case) 
| is different in their objects, such classes, form, report, 
| even tables.
| 
| I haven't try it yet, but who knows, maybe someone does, 
| because in my logic, that's imposible, I meant two DB, yes, 
| but the AOT structure must be same.
| 
| please enlighten me :)
| 
| thanks in advance,
| Anton
| 
| 
| 
| 
| 
| 
| 
| 
|  Yahoo! Groups Sponsor 
| ~--> Make a clean sweep of pop-up ads. 
| Yahoo! Companion Toolbar.
| Now with Pop-Up Blocker. Get it for free!
| http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/saFolB/TM
| --
| --~-> 
| 
|  
| Yahoo! Groups Links
| 
| 
| 
|  
| 
| 
| 













Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/development-axapta/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










[development-axapta] ProdBOM::initValues()

2004-12-21 Thread RHODPR







I've overridden the initValues() of the ProdBOM, yet when I create a 
new product order (and hence new items are inserted into the ProdBOM 
table), those values are not filled in... Of what table should I 
override the initValues()?

Cheers!















Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/development-axapta/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










[development-axapta] Re: 2 different AOT Structure, 2 different DB, in 1 Axapta Application ?

2004-12-21 Thread anton_tjiptadi







Hi, Pieter, thanks for your quick reply.
could u explain it a little ?
did you mean, I must install a new appl ? if not, what files I 
should move or prepare for that 2 folders ? and use "standard", 
what's that mean ? sorry I'm new here... :)

thanks a lot,
Anton


--- In development-axapta@yahoogroups.com, "Pieter Wijnen" 
<[EMAIL PROTECTED]> wrote:
> 
> you need 2 folders under appl 1 for companyA & 1 for companyB (you 
can
> elect to use "standard" for one of the apps)
>  
> Pieter
> 
>   _  
> 
> From: anton_tjiptadi [mailto:[EMAIL PROTECTED] 
> Sent: 21. desember 2004 10:12
> To: development-axapta@yahoogroups.com
> Subject: [development-axapta] 2 different AOT Structure, 2 
different DB,
> in 1 Axapta Application ?
> 
> 
> 
> 
> Hi,
> Is it possible to have 2 or more company account, 2 DB, and that 2 
or 
> more company account has its own AOT (in that case different 
objects) 
> in 1 Axapta Application ?
> 
> for example  I have installed my Axapta application, and then I 
> created :
> - 1 DB for company A and 1 DB for company B
> - and then I Axapta configuration utility, I created 2 
configuration,
> one connect to DB A and the other to DB B.
> - when I login to Axapta, I choose company A, (with config to DB 
A),
> and I import AOT (I already export AOT from another Axapta Appl to 
> XPO file), specific for that company.
> - and then I login with config to DB B, I choose company B and I 
> import AOT specific for that company.
> 
> please note that objects in this 2 AOT (2 XPO for this case) is 
> different in their objects, such classes, form, report, even 
tables.
> 
> I haven't try it yet, but who knows, maybe someone does, because 
in 
> my logic, that's imposible, I meant two DB, yes, but the AOT 
> structure must be same.
> 
> please enlighten me :)
> 
> thanks in advance,
> Anton
> 
> 
> 
> 
> 
> 
> 
> 
> Yahoo! Groups Sponsor  
> ADVERTISEMENT
> click here
> 
 
D=groups/S=1705006764:HM/EXP=1103708031/A=2434971/R=0/SIG=11eeoolb0/*
htt
> p://www.netflix.com/Default?mqso=60185400>   
>  
>  s/S=:HM/A=2434971/rand=388221451>   
> 
>   _  
> 
> Yahoo! Groups Links
> 
> 
> *  To visit your group on the web, go to:
>   http://groups.yahoo.com/group/development-axapta/
>     
> *  To unsubscribe from this group, send an email to:
>   [EMAIL PROTECTED]
> 
subject=Unsubscri
> be> 
>     
> *  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












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/development-axapta/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










RE: [development-axapta] accesing information in a buffer

2004-12-21 Thread Jesper Kehlet






If we assume the method signature has (common _buffer), then The easy
was is to just do a
 
    SalesLine salesLine = _buffer;
    ;
    // Here you can do whatever with salesLine.SalesId or any other
field...
 
Another way to do it (although more complex, takes more processing time,
and is in general not recommended unless you do not know the underlying
table), is a construction like this:
 
    SalesId salesId = _common.(fieldnum(SalesLine,SalesId));
    ;
    // Here you can do whatever with salesId...
 
But the latter construction will typically only be used when traversing
through fields of unknown tables while building containers or similar
structures for special processing, such as data export/import, inventDim
traversing etc.
 
/Jesper



From: mrommers [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 20, 2004 6:01 PM
To: development-axapta@yahoogroups.com
Subject: [development-axapta] accesing information in a buffer






Hello:

I want to know how can to accessing information from a object common 
buffer.
for example I need to access the information salesLine.salesId
storage in a buffer calling from updateReserveMore in a Class 
InventUpd_reservation.


thanks. 

Miguel Rommers










Yahoo! Groups Sponsor  
ADVERTISEMENT
click here
   
 
   



Yahoo! Groups Links


*  To visit your group on the web, go to:
  http://groups.yahoo.com/group/development-axapta/
    
*  To unsubscribe from this group, send an email to:
  [EMAIL PROTECTED]

be> 
    
*  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












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/development-axapta/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










RE: [development-axapta] Do I have to delete my axapd.aoi as long as I update my axuser.aod?

2004-12-21 Thread Jesper Kehlet






No, you don't have to, but the kernel will detect a new usr layer, and
thus it will rebuild it for you.



From: maipian_chen [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 20, 2004 8:40 PM
To: development-axapta@yahoogroups.com
Subject: [development-axapta] Do I have to delete my axapd.aoi as long
as I update my axuser.aod?




    I note that even axapd.aoi is not deleted in advance, when I 
substitute the old axuser.aod with a new one(suppose there is no 
table change between the two ones), the index is rebuilt ag(much 
sooner than aoi deleted).So do I have to delete aoi before update 
user layer? Thanks.



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













Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/development-axapta/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










[development-axapta] Re: Modify method for formDataSource

2004-12-21 Thread smeagul2303







Hi Jyoti,

thnx for your tip. 
I would like not to implement the behaviour on the table (there is
validateField) I would like to implement it on the datasource.

Bye

Manfred

--- In development-axapta@yahoogroups.com, Jyoti Ranjan
<[EMAIL PROTECTED]> wrote:
> 
> Hi Manfred,
>  
> Why don't you try the method validateField. This method will help you.
>  
> Bye
>  
> Jyoti Ranjan
>  
> 
> smeagul2303 <[EMAIL PROTECTED]> wrote:
> 
> 
> Hi all,
> 
> my problem concerns a formDatasource.
> 
> I want to do something everytime the formdatasource has be changed.
> Every time someone has entered a value in a field and has leaved it.
> But I don't like to program it on each formcontrol for that
> datasource. 

I want to program it only once and the best would be on
> the datasource.
> 
> I didn't found any method to overwrite on formdatasource.
> 
> Do anyone know a way to handle it ?
> 
> 
> Regards
> 
> Manfred
> 
> 
> 
> 
> 
> 
> 
> Yahoo! Groups SponsorADVERTISEMENT
> 
> 
> -
> Yahoo! Groups Links
> 
>    To visit your group on the web, go to:
> http://groups.yahoo.com/group/development-axapta/
>   
>    To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>   
>    Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 
> 
> 
> Yahoo! India Matrimony: Find your life partneronline.
> 
> [Non-text portions of this message have been removed]















Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/development-axapta/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










RE: [development-axapta] Re: Modify method for formDataSource

2004-12-21 Thread Jesper Kehlet





You can do it in 2 ways:
 
    - validateWrite() on the data source, compare .field with
.orig().field to see if it has been changed
 
    - create a generic method on the data source, i.e. fieldChanged(),
and on each field's modified() method, call _ds.fieldChanged()



From: smeagul2303 [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 21, 2004 9:55 AM
To: development-axapta@yahoogroups.com
Subject: [development-axapta] Re: Modify method for formDataSource




Hi Jyoti,

thnx for your tip. 
I would like not to implement the behaviour on the table (there is
validateField) I would like to implement it on the datasource.

Bye

Manfred

--- In development-axapta@yahoogroups.com, Jyoti Ranjan
<[EMAIL PROTECTED]> wrote:
> 
> Hi Manfred,
>  
> Why don't you try the method validateField. This method will help you.
>  
> Bye
>  
> Jyoti Ranjan
>  
> 
> smeagul2303 <[EMAIL PROTECTED]> wrote:
> 
> 
> Hi all,
> 
> my problem concerns a formDatasource.
> 
> I want to do something everytime the formdatasource has be changed.
> Every time someone has entered a value in a field and has leaved it.
> But I don't like to program it on each formcontrol for that
> datasource. 

I want to program it only once and the best would be on
> the datasource.
> 
> I didn't found any method to overwrite on formdatasource.
> 
> Do anyone know a way to handle it ?
> 
> 
> Regards
> 
> Manfred
> 
> 
> 
> 
> 
> 
> 
> Yahoo! Groups SponsorADVERTISEMENT
> 
> 
> -
> Yahoo! Groups Links
> 
>    To visit your group on the web, go to:
> http://groups.yahoo.com/group/development-axapta/
>   
>    To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
>   
>    Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service. 
> 
> 
> Yahoo! India Matrimony: Find your life partneronline.
> 
> [Non-text portions of this message have been removed]








Yahoo! Groups Sponsor  
ADVERTISEMENT
click here
   
 
   



Yahoo! Groups Links


*  To visit your group on the web, go to:
  http://groups.yahoo.com/group/development-axapta/
    
*  To unsubscribe from this group, send an email to:
  [EMAIL PROTECTED]

be> 
    
*  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 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/development-axapta/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










[development-axapta] Re: How to read temporary table ?

2004-12-21 Thread ozzage






There's no way of dynamically changing an X++ select, but there is a
trick which can achieve the same effect, as long as you know in
advance what your possibilities are.

For instance, using your example below:

Declare a boolean for each "possibility"

boolean filterDim5;
boolean filterItemId;

In your code, set them to true or false depending on whether you need
to apply the particular associated 'where' clause.

Write the while select as follows:

while select sum(postedqty), sum(deducted) from InventSum
join    InventTable 
group by ItemGroupId
where   inventsum.ItemId    == inventtable.ItemId
&&  (!filterDim5    || inventTable.Dimension[5] == "XX")
&&  (!filterItemId  || inventTable.ItemId   like "*test*")
{
    // Processing here
}

If filterDim5 is set to false, then the Dimension[5] filter is
irrelevant as the !filterDim5 will return true for every row.  If it's
set to true, then the other part of the _expression_ (the dimension
criteria) must be true for the row to be returned.  Ditto for the
second option.  You can set none, one, or both booleans to true and
get the required results.

This method lets SQL server do the work instead of returning all the
possible records to Axapta and then filtering them out in your code -
much faster :)

Hope that helps

Andrew Jones
HGH Business Consultancy

--- In development-axapta@yahoogroups.com, "anton_tjiptadi"
<[EMAIL PROTECTED]> wrote:
> 
> 
> gee thanks man, why didn't of think of that ? hehe
> 
> One more thing, in my insert method I used select statement,
> >    while select sum(postedqty), sum(deducted) from inventSum
> >    join inventTable group by itemgroupid
> >    where inventsum.ItemId==inventtable.ItemId
> >    {
> > tmpTable.ItemGroupId = inventTable.ItemGroupId;
> > tmpTable.InventQtyPosted = inventsum.PostedQty;
> > tmptable.InventQtyDeducted = inventsum.Deducted;
> > tmptable.insert();
> >   }
> 
> the problem is I want to extend the criteria but with variables, 
> something like this -> 
> str1 = " and dimension5_ == 'XX'" 
> str2 = " and itemid like == '*test*"
> 
> so in the select, can be extend like this -> "where... " + str1 + str2
> 
> I already try like that but.. ppf
> 
> I knew I can use Conection method and SQL Statement, so I can just 
> wrote ordinary SQL statement, but that's another story, right now I 
> want to use X++ rule :)
> 
> 
> thanks again for the reply :)
> 
> 
> 
> 
> 
> In development-axapta@yahoogroups.com, Melega Árpád <[EMAIL PROTECTED]> 
> wrote:
> > 
> > Hello!
> > 
> >  
> > 
> > Try this!
> > 
> >  
> > 
> > tmp_mlr_invt_sum Process_InventSum(str _Branch, str _ItemGroup)
> > 
> > {
> > 
> >   /.../
> > 
> > }
> > 
> > 
> > 
> > public boolean fetch()
> > {
> >   /.../
> > 
> >  
> > 
> > //insert data to temp table
> > _tmpTab.setTmpData(this.Process_InventSum(BranchId,ItemGroup));
> > 
> >  
> > 
> > /.../
> > 
> > }
> > 
> >  
> > 
> > Best regards,
> > 
> > Arpad Melega
> > 
> >  
> > 
> > 
> > 
> > From: anton_tjiptadi [mailto:[EMAIL PROTECTED] 
> > Sent: Monday, December 20, 2004 2:50 AM
> > To: development-axapta@yahoogroups.com
> > Subject: [development-axapta] How to read temporary table ?
> > 
> >  
> > 
> > 
> > 
> > Hi, I created a temporary table, but when i can't get fetch it in 
> my 
> > report.
> > 
> > this is my step :
> > I. crate a method in my report.
> > Process_InventSum(str _Branch, str _ItemGroup)
> > {
> >    InventSum   InventSum;
> >    InventTable InventTable;
> >    tmp_mlr_invt_sum    tmpTable;
> >    ;
> > 
> >    while select sum(postedqty), sum(deducted) from inventSum
> >    join inventTable group by itemgroupid
> >    where inventsum.ItemId==inventtable.ItemId
> >    {
> > tmpTable.ItemGroupId = inventTable.ItemGroupId;
> > tmpTable.InventQtyPosted = inventsum.PostedQty;
> > tmptable.InventQtyDeducted = inventsum.Deducted;
> > tmptable.insert();
> >   }
> >   
> > return tmpTable;
> > }
> > 
> > II. Override method Fetch in that report
> > public boolean fetch()
> >   {
> >   queryrun    qr;
> >   boolean ret;
> >   Tmp_mlr_invt_sum    _tmpTab;
> >   ;
> >   
> >   if (element.args().caller())
> >   {
> >   cls_InvSum = element.args().caller();   // calling 
> class
> >   BranchId = cls_InvSum.parmBranch();
> >   ItemGroup = cls_InvSum.parmItemGroup();
> >   }
> >   
> >   //insert data to temp table
> >   this.Process_InventSum(BranchId,ItemGroup);
> > 
> >   while select * from _tmpTab
> >   {
> >   DS_Tmp_MLR_Invt_Sum = qr.get(tablenum
> > (tmp_mlr_invt_sum));
> >  
> >   element.send(DS_Tmp_MLR_Invt_Sum);
> >   ret = true;
> >   }
> >   

SV: [development-axapta] Axapd.aoi file error

2004-12-21 Thread Stefan Lundquist (Priv)






Hi,
Maybe you are out of diskspace? Virtual memory ?
Is it 3-tier or 2-tier ?


/Stefan
  -Ursprungligt meddelande-
  Från: jasondykeson [mailto:[EMAIL PROTECTED]
  Skickat: den 20 december 2004 12:36
  Till: development-axapta@yahoogroups.com
  Ämne: [development-axapta] Axapd.aoi file error




  Dear Members,

  I have a problem during creation of index axapd.aoi file.

  At start up of Axapta it start to create the file only after a few
  seconds it gives an error.

  The message is:

  Error in file C:\program files\\Appl\Standard\axsys.oad while
  reading in record = COE63CO
  windows error :=
  error code: 38 = End of file.

  Try again?

  If I click No, Axapta continuous and I get the message again. After
  clicking no again Axapta starts. Only I doubt that Axapta works
  fine.

  Can anyone help me with this major problem

  thnx

  Jason D








    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












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/development-axapta/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










[development-axapta] Re: Modify method for formDataSource

2004-12-21 Thread ozzage







Just to clarify, do you want to do something whenever ANY field is
modified, or just when SOME particular ones are?

If it's the latter, then there is a modified() method which can be
overwritten on each field on the form datasource.  You would still
have to do it for each field, but it's better than doing it on the
form control and you would centralise your logic in a single method
and just put a call to it in each field modified().  Possibly not what
you're after though.

If it's for ALL fields, then it's more difficult.  There is a
selectControl() method available at form level which is called
whenever the user selects a new control.  You might be able to adapt
that to your use somehow.

Andrew Jones



--- In development-axapta@yahoogroups.com, "smeagul2303"
<[EMAIL PROTECTED]> wrote:
> 
> 
> Hi Jyoti,
> 
> thnx for your tip. 
> I would like not to implement the behaviour on the table (there is
> validateField) I would like to implement it on the datasource.
> 
> Bye
> 
> Manfred
> 
> --- In development-axapta@yahoogroups.com, Jyoti Ranjan
> <[EMAIL PROTECTED]> wrote:
> > 
> > Hi Manfred,
> >  
> > Why don't you try the method validateField. This method will help you.
> >  
> > Bye
> >  
> > Jyoti Ranjan
> >  
> > 
> > smeagul2303 <[EMAIL PROTECTED]> wrote:
> > 
> > 
> > Hi all,
> > 
> > my problem concerns a formDatasource.
> > 
> > I want to do something everytime the formdatasource has be changed.
> > Every time someone has entered a value in a field and has leaved it.
> > But I don't like to program it on each formcontrol for that
> > datasource. 
> 
> I want to program it only once and the best would be on
> > the datasource.
> > 
> > I didn't found any method to overwrite on formdatasource.
> > 
> > Do anyone know a way to handle it ?
> > 
> > 
> > Regards
> > 
> > Manfred
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > Yahoo! Groups SponsorADVERTISEMENT
> > 
> > 
> > -
> > Yahoo! Groups Links
> > 
> >    To visit your group on the web, go to:
> > http://groups.yahoo.com/group/development-axapta/
> >   
> >    To unsubscribe from this group, send an email to:
> > [EMAIL PROTECTED]
> >   
> >    Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service. 
> > 
> > 
> > Yahoo! India Matrimony: Find your life partneronline.
> > 
> > [Non-text portions of this message have been removed]















Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/development-axapta/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










[development-axapta] Problem with ax 2.5 to 3.0 data upgrade

2004-12-21 Thread el8tion







I'm back again - same problem. Posted before but didn't get any 
replies. Figured I'd try again. Maybe I'll have to open a support 
incident with MBS, but I'd rather not burn one of those unless I have 
to.

Can't get thru the post-sync data upgrade step.

I get the following error:

Error executing code: InventMovement (object) has no valid runable 
code in method 'new'.

Stack trace:
\Classes\InventMovement\new
\Classes\InventMov_Sales\new - line 9
\Classes\InventMovement\constructNoThrow - line 44
\Classes\InventMovement\construct - line 3
\Classes\InventMovement\bufferSetRemainQty - line 3
\Classes\AxSalesLine\setTableFields - line 70
\Classes\AxInternalBase\doSave - line 12
\Classes\AxInternalBase\save - line 3
\Classes\ReleaseUpdateDB_V25toV30\updateProjItemReq - line 52
\
void go(ReleaseUpdateDB_V25toV30 _release)
{
;
    _release.updateProjItemReq();
}

\Classes\ReleaseUpdateDB\run - line 27
\Classes\ReleaseUpdateExecute\run - line 11
\Classes\BatchRun\runJob - line 46
\Classes\BatchRun\do - line 54
\Forms\BatchRun\Methods\doBatch
\Forms\BatchRun\Methods\setStart
\Forms\BatchRun\Methods\setRunning
\Classes\FormButtonControl\Clicked

Now, both the class InventMovement and one of the tables it appears 
to be updating - ProjTable had been modified in the var layer, but I 
removed those mods and tried it again and still same problem. 

When I look at class InventMovement I don't see any 'new' method at 
all.

I just don't know how to figure this out. It's above my head.
















Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/development-axapta/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










RE: [development-axapta] Re: How to read temporary table ?

2004-12-21 Thread Morten Aasheim






Yes, you can dynamically change the X++ select. It's possible to build dynamical functions aswell. I've done this a few times.

Try something like:

xppCompiler compiler = new xppCompiler();
str sql = 'void sql{select .}'

if(compiler.compile)
  runbuf(sql);
 
Regards,
Morten  
-Original Message-
From: ozzage [mailto:[EMAIL PROTECTED] 
Sent: 21. desember 2004 20:23
To: development-axapta@yahoogroups.com
Subject: [development-axapta] Re: How to read temporary table ?



There's no way of dynamically changing an X++ select, but there is a
trick which can achieve the same effect, as long as you know in
advance what your possibilities are.

For instance, using your example below:

Declare a boolean for each "possibility"

boolean filterDim5;
boolean filterItemId;

In your code, set them to true or false depending on whether you need
to apply the particular associated 'where' clause.

Write the while select as follows:

while select sum(postedqty), sum(deducted) from InventSum
join    InventTable 
group by ItemGroupId
where   inventsum.ItemId    == inventtable.ItemId
&&  (!filterDim5    || inventTable.Dimension[5] == "XX")
&&  (!filterItemId  || inventTable.ItemId   like "*test*")
{
    // Processing here
}

If filterDim5 is set to false, then the Dimension[5] filter is
irrelevant as the !filterDim5 will return true for every row.  If it's
set to true, then the other part of the _expression_ (the dimension
criteria) must be true for the row to be returned.  Ditto for the
second option.  You can set none, one, or both booleans to true and
get the required results.

This method lets SQL server do the work instead of returning all the
possible records to Axapta and then filtering them out in your code -
much faster :)

Hope that helps

Andrew Jones
HGH Business Consultancy

--- In development-axapta@yahoogroups.com, "anton_tjiptadi"
<[EMAIL PROTECTED]> wrote:
> 
> 
> gee thanks man, why didn't of think of that ? hehe
> 
> One more thing, in my insert method I used select statement,
> >    while select sum(postedqty), sum(deducted) from inventSum
> >    join inventTable group by itemgroupid
> >    where inventsum.ItemId==inventtable.ItemId
> >    {
> > tmpTable.ItemGroupId = inventTable.ItemGroupId;
> > tmpTable.InventQtyPosted = inventsum.PostedQty;
> > tmptable.InventQtyDeducted = inventsum.Deducted;
> > tmptable.insert();
> >   }
> 
> the problem is I want to extend the criteria but with variables, 
> something like this -> 
> str1 = " and dimension5_ == 'XX'" 
> str2 = " and itemid like == '*test*"
> 
> so in the select, can be extend like this -> "where... " + str1 + str2
> 
> I already try like that but.. ppf
> 
> I knew I can use Conection method and SQL Statement, so I can just 
> wrote ordinary SQL statement, but that's another story, right now I 
> want to use X++ rule :)
> 
> 
> thanks again for the reply :)
> 
> 
> 
> 
> 
> In development-axapta@yahoogroups.com, Melega Árpád <[EMAIL PROTECTED]> 
> wrote:
> > 
> > Hello!
> > 
> >  
> > 
> > Try this!
> > 
> >  
> > 
> > tmp_mlr_invt_sum Process_InventSum(str _Branch, str _ItemGroup)
> > 
> > {
> > 
> >   /.../
> > 
> > }
> > 
> > 
> > 
> > public boolean fetch()
> > {
> >   /.../
> > 
> >  
> > 
> > //insert data to temp table
> > _tmpTab.setTmpData(this.Process_InventSum(BranchId,ItemGroup));
> > 
> >  
> > 
> > /.../
> > 
> > }
> > 
> >  
> > 
> > Best regards,
> > 
> > Arpad Melega
> > 
> >  
> > 
> > 
> > 
> > From: anton_tjiptadi [mailto:[EMAIL PROTECTED] 
> > Sent: Monday, December 20, 2004 2:50 AM
> > To: development-axapta@yahoogroups.com
> > Subject: [development-axapta] How to read temporary table ?
> > 
> >  
> > 
> > 
> > 
> > Hi, I created a temporary table, but when i can't get fetch it in 
> my 
> > report.
> > 
> > this is my step :
> > I. crate a method in my report.
> > Process_InventSum(str _Branch, str _ItemGroup)
> > {
> >    InventSum   InventSum;
> >    InventTable InventTable;
> >    tmp_mlr_invt_sum    tmpTable;
> >    ;
> > 
> >    while select sum(postedqty), sum(deducted) from inventSum
> >    join inventTable group by itemgroupid
> >    where inventsum.ItemId==inventtable.ItemId
> >    {
> > tmpTable.ItemGroupId = inventTable.ItemGroupId;
> > tmpTable.InventQtyPosted = inventsum.PostedQty;
> > tmptable.InventQtyDeducted = inventsum.Deducted;
> > tmptable.insert();
> >   }
> >   
> > return tmpTable;
> > }
> > 
> > II. Override method Fetch in that report
> > public boolean fetch()
> >   {
> >   queryrun    qr;
> >   boolean ret;
> >   Tmp_mlr_invt_sum    _tmpTab;
> >   ;
> >   
> >   if (element.args().caller())
> >   {
> >   cls_InvSum = element.args().caller();   // calling 
> class
> >   BranchI

[development-axapta] Missing cluse forUpdate methods of CustPaymReconciliationImport

2004-12-21 Thread matiazo







Hello all!

We are developing the eletronic bank reconciliation for eletronic 
bills (using the standard classes) but, always we try to import the 
return file from the bank (following for example the class 
CustPaymReconciliationImport_DK_BS), the methods that update the 
LedgerJournalTrans don´t have the clause forupdate in their selects 
(even in SP3), someone already faced this kind of problem???

We have to correct this in those methods???

I think that´s impossible Damggard/Microsoft left one basic thing as 
it is for this funcionality.

Thanks!

Rodrigo















Yahoo! Groups Sponsor


  ADVERTISEMENT 












Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/development-axapta/ 
To unsubscribe from this group, send an email to:[EMAIL PROTECTED] 
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.