Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all 175888 articles
Browse latest View live

RE: Loop through a container to populate lookup in a field on a form

$
0
0

It seems that your grid shows a single line only, therefore I see two options:

  1. Remove line breaks, therefore the fact that only the first line is displayed won't be any limitation anymore.
  2. Change the form to show more than a single line.

It seems that you're trying to implement the first scenario, but you can use a much simpler approach: strReplace() can replace line breaks with spaces, or anything you like. Also, I suggest you create a display method for this and use it (addLookupMethod()) in the lookup instead of Notes field. That's likely the easiest way possible.


RE: LCS Business process modeler/Task recorder

$
0
0

Shouldn't your question by tagged with "AX 2012" instead of "current version"?

LCS Business process modeler/Task recorder

$
0
0

I am trying to generate an axbpm file, I have followed the steps as per the video recording:

80646AE: Lifecycle Services in Microsoft Dynamics AX 2012.

 

When I click the button: “Build package” no axbpm file is generated, I do not get any error message(s).

When I check the batch jobs it shows that I do not have any pending tasks.

How do I rectify this?

RE: Client warning with repository folder TFS of AX2012

$
0
0

Also note that AX would create a separate TFS workspace on each machine. If you managed to map them to the same network folder, terrible things could happen.

Client warning with repository folder TFS of AX2012

$
0
0

Hello everyone!

I try configure TFS for AX 2012 R2 CU7. It seems all is good, but when I open ax-client from terminal server (like ordinary user) it give me infolog "The directory my repository folder does not exist." And it's logical because I pointed the local way in Version Control in developers AX. Unfortunately DAX2012 does not allow to specify a network path or a path to a network drive for this configuration window((

May be some one faced with this problem or knows solution of it?

RE: No batch jobs has run in AX2012

$
0
0

Your title says "no batch jobs has run", while the body says that you run 'proces status messages'. Can you please make clear which batch jobs don't work?

(By the way, I changed some tags of your thread, most importantly the version of AX. Dynamics AX  (current version) means AX 7, not AX 2012).

No batch jobs has run in AX2012

$
0
0

Hi All,

When running 'proces status messages' 

the following error coming:

system.reflection.targetinvocationexception--->Sytem.Data.SqlClient.Sqlexception:Timedout Expired...

Please suggest how to fix this..

RE: xRecord.getSqlStatement() returns blank in job and "1" in custom AIF service instead of actual SQL

$
0
0

Hi psined,

checked this and have to confirm your described behaviour.

 

Sorry. The disbalecache cache call should only be a hint - I never checked this running under CIL. Until now.

1st) This is a non supported scenario due to some restrictions within the CIL AppDomain???

"This is by design"

or

 

2nd) This is a feature (I dont' dare to call it "bug")

 

If it is the 2nd one maybe there is a chance to have it fixed, but I think this is something which should be stated by MS.

 

regards and a nice weekend

 

Douglas

 

 

 


RE: Loop through a container to populate lookup in a field on a form

$
0
0

Hi Martin

Thanks for replying to my question.  I'm actually trying to implement the 2nd scenario you mentioned,  turning the line break delimited string into a multi line drop down in the field.  How would I accomplish that?

RE: How to get email notification for Change based alerts ?

$
0
0

Hi Faqru,

have had the same problem. Seen this so often.......

In my case there was a authentication problem against the SMTP server. But this is never shown to you, because the exception neither is logged nor it is shown. Only the status is changed to failed.

So I take the code from the relevant eMail Bath class in a own Test Class (running On Server) and started debugging.

And voila. Send throws an execption (and the real exception text could be seen in the debugger)

This seems to be a really annoying problem.

It seems to be better to log the exception somewhere instead of suppressing it.

For that case we have coded some "Test-Button" to check the setup.

regards

Douglas

How to get email notification for Change based alerts ?

$
0
0

Dear all,

I have successfully configured batch group, smtp and email parameters for sending emails from AX. I'm receiving emails from my test job. Now I need to know how to get notifications for change based alerts. I have a new batch group say Alerts and default AOS also selected. I assign this Alerts batch group to System Admin--->Periodic-->Alerts-->change based alerts. And also done email template for Organization Admin--->Alerts---> Alert Parameter with batch group Alerts selected in General within the same form.  I created one change based alert for notification and assign email id in vendors when Currency is changed. The problem is systems is pop-up the notification in the corner of the screen but I can't receving same alert to email id. I check the email sending status is waiting then after sometime it turns to failed. Please help me to resolve this problem.


Best Regards,

Faqru Shaik

RE: Loop through a container to populate lookup in a field on a form

RE: Loop through a container to populate lookup in a field on a form

$
0
0

I think you don't understand that AX is able to display strings with multiple lines, so your code doesn't do anything useful. The data is already all right; my second scenario is about displaying more than a single line (usual grids don't show multiple lines to keep the GUI compact, but it doesn't mean that you can't do it differently). If you want to go this way, create a new lookup form and set properties (MultiLine and DisplayHeight) of the form control bound to Notes field as appropriate.

RE: Cheque Printing

Cheque Printing

$
0
0

Hi Everyone,

Tried printing three cheques on a payment journal.  When the cheques printed a blank cheque prints before the next cheque is printed.

Any ideas why?


RE: duplicate number in production order

duplicate number in production order

$
0
0

Hello all 

we have ax 2012 

our data entry has entered a duplicate number in different journals (2 journals)

(and one of this duplicate  number has shipped with transfer order) 

Now i have a duplicate on hand 

(and one of this duplicate  number has shipped with transfer order) 

when try to make new journal with negative number i got error this error 

"73,192.00 cannot be picked because only 39,261.00 is/are available from the inventory."

and when open the on hand for this batch i get enough

what's wrong ?

regards 

RE: AX 2015 training

RE: Loop through a container to populate lookup in a field on a form

$
0
0

I understand, but I'm looking to split the string in my example into a drop down box offering the user 3 choices (tag 1, tag 2, tag 3) from the single multiline field.  So although only 1 field and 1 row is being returned by the query,  I want to make it into 3 rows in the drop down

Loop through a container to populate lookup in a field on a form

$
0
0

Hi

Some help for a DAX newbie please!

I have a lookup method on a field that displays a field from the database, code as follows:

    Query                   query = new Query();
    QueryBuildDataSource    qbds;
    QueryBuildRange         qbr1;
    QueryBuildRange         qbr2;
    QueryBuildRange         qbr3;

    SysTableLookup  sysTableLookup;

    qbds = query.addDataSource( tableNum(DocuRef));
    qbr1 = qbds.addRange( fieldNum(DocuRef,TypeId));
    qbr2 = qbds.addRange( fieldNum(DocuRef,RefTableId));

    qbr1.value('SALESDOC');
    qbr2.value('359');

    qbds = qbds.addDataSource( tableNum(SalesLine));
    qbds.joinMode(JoinMode::InnerJoin);
    qbds.relations(true);
    qbds = qbds.addDataSource( tableNum(ProdTable));
    qbds.joinMode(JoinMode::InnerJoin);
    qbds.relations(true);

    qbr3 = qbds.addRange( fieldNum(ProdTable,ProdId));
    qbr3.value(queryValue(_prodId));

   // qbr1 = q.addDataSource(tableNum(DocuRef));
    //qbr1.addRange(fieldNum(ProdTable, ProdId)).value();

    sysTableLookup  = SysTableLookup::newParameters(tableNum(DocuRef), _formControl);

    sysTableLookup.addLookupfield(fieldNum(DocuRef, Notes), true);
    sysTableLookup.addLookupfield(fieldNum(DocuRef, TypeId), false);

    sysTableLookup.parmQuery(query);
    sysTableLookup.performFormLookup();


This works fine, except for the fact the field "Notes" in the DocuRef table in my system is a carriage return delimited list (so only one selection is returned from the dropdown).

I have been able to split the field "Notes" in a Job as follows:

    queryRun = new QueryRun(query);

    // Retrieves the next record from the query.
    while(queryRun.next())
    {
        // Get Result
        docuref = queryRun.get( tableNum(DocuRef));
        
        notes = docuref.Notes;
        
        _list = Global::strSplit(notes,'\n');
        iterator = new ListIterator(_list);
        
        while (iterator.more())
        {
            packList += iterator.value();
            iterator.next();
        }
        
        for (i = 1; i <= conlen(packList); i++)
        {
            info(conPeek(packList,i));   
        }
         
    }

My question is, how can I combine my two pieces of a code?

For example, if the Notes field contains:

tag1

tag2

tag3

How can I get three seprate entries in the dropdown?  At the moment I get:

tag1tag2tag3

Many thanks in advance

Viewing all 175888 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>