[development-axapta] Re: str2date

2007-08-29 Thread mlefoa
Many thanks for all answers to my question.

However, how can I validate a date so that, e.g. 31.4.2007, would be
rejected as an illegal date? I excepted str2date to do that.
 
Regards,
Morten Lehrmann




[development-axapta] str2date

2007-08-28 Thread mlefoa
Is this expected behaviour (I didn't expect it):

date d = str2date("31.04.2007",123);
;
info(strfmt("%1",d));


Shows "30.04.2007".

Is it the general behaviour all over Dynamics AX?

Regards,
Morten Lehrmann




[development-axapta] Re: Webform with query string

2007-03-12 Thread mlefoa
We've now made a working solution.

The approach is to store the query string from the first invocation with

classFactory.lastValuePut

and retrieve it on the second invocation with

classFactory.lastValueGet

Thanks.

Regards,
Morten



[development-axapta] Re: Webform with query string

2007-03-12 Thread mlefoa
--- In development-axapta@yahoogroups.com, "mlefoa" <[EMAIL PROTECTED]> wrote:
>
> I've created a webform which accepts a query string from the URL, i.e., 
> http://SERVER/URL/default.asp?projectcode=COMA
> 
> In the init method of my webform I retrieve the query value ("COMA")
> by using:
> s = websession().getParm("projectcode");
> 
> It works perfectly when the user is already logged into the Enterprise
> Portal.
> 
> However, when the user is not logged in, the value is empty.
> 
> I've tried using the WebArgs-class, but the problem is the same. When
> debugging it appears that WebApplication and WebSession is
> instantiated twice - and on the second instantiation the query string
> is lost.
> 
> TIA.
> 
> Regards,
> Morten
>

Forgot to specify I'm working with 3.0 SP3.

Regards,
Morten





[development-axapta] Webform with query string

2007-03-09 Thread mlefoa
I've created a webform which accepts a query string from the URL, i.e., 
http://SERVER/URL/default.asp?projectcode=COMA

In the init method of my webform I retrieve the query value ("COMA")
by using:
s = websession().getParm("projectcode");

It works perfectly when the user is already logged into the Enterprise
Portal.

However, when the user is not logged in, the value is empty.

I've tried using the WebArgs-class, but the problem is the same. When
debugging it appears that WebApplication and WebSession is
instantiated twice - and on the second instantiation the query string
is lost.

TIA.

Regards,
Morten



[development-axapta] Re: Webgrid and server error

2007-02-26 Thread mlefoa
--- In development-axapta@yahoogroups.com, "mlefoa" <[EMAIL PROTECTED]> wrote:
> However, when I also add the 'string' field I get a '500 - server
> error' from the IIS.

The problem was that the temporary table somehow was corrupt. If I
tried to enter data to the two fields through the table browser the
Axapta client crashed.

I solved it by deleting og recreating the table in the AOT.

But it's terribly difficult to identify such a problem when all you
get is a "500 - internal server error".

Thanks for your time.

Regards,
Morten



[development-axapta] Webgrid and server error

2007-02-26 Thread mlefoa
I have a webform with a datasource with a field of datatype 'string'
and a field of datatype 'real'. Both fields are in the same temporary
table.

When I add the 'real' field to the grid, the webgrid displays correctly.

However, when I also add the 'string' field I get a '500 - server
error' from the IIS.

Axapta 3.0, SP4 (or thereabout).

Do you have any idea what can be the problem? Or where I get more
indications of what the problem is. I've recompiled, restartet the ABC
and the IIS, debugged - but the problem remains. 

TIA.

Regards,
Morten



[development-axapta] Re: update_recordset with container field

2007-02-19 Thread mlefoa
--- In development-axapta@yahoogroups.com, "Steeve Gilbert"
<[EMAIL PROTECTED]> wrote:
>
> Maybe it doesn't want to run methods in update_recordset.  Try this 
> instead :
> 
> container emptyCon = connull();
> update_recordset T setting F = emptyCon;
> 
> or
> 
> update_recordset T setting F = [];
> (don't know if it compiles)
> 
> good luck!
> 

Good suggestions -- however they don't compile.

Thanks anyway.

Regards,
Morten



[development-axapta] update_recordset with container field

2007-02-16 Thread mlefoa
I have a table T with a field F of type container.

I can write:

while select forupdate T
{
  T.F = connull();
  T.update();
}

it's working fine, but it's slow.

However, if I write

update_recordset T
setting F = connull();

it compiles OK, but during execution the AOS throws me off. What do I
need to write instead of connull()?

TIA.

Regards,
Morten



[development-axapta] Random number

2005-12-04 Thread mlefoa




How can I obtain a random integer from X++?

TIA.

Rgds,
Morten













  
  
SPONSORED LINKS
  
  
  

Computer part
  
  
Programming languages
  
  
Microsoft axapta
  
  


Support exchange
  

   
  







  
  
  YAHOO! GROUPS LINKS



   Visit your group "development-axapta" on the web. 
   To unsubscribe from this group, send an email to: [EMAIL PROTECTED] 
   Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.