Quantcast
Channel: NAV Three Tier — mibuso.com
Viewing all 10032 articles
Browse latest View live

Permission issue opening the web client?

$
0
0
Hi all,
For a customer we have noticed that some users are not able to open the web client without having super (or similar) permission. The user can open the rtc with their permission sets (including BASIC) and operate fine but as soon as they try to open the web client, they get the error stating "A server error has occurred, and the content cannot be displayed.." If I then add the Super permission, the web client fires right up with no issues. It appears to be something related to a missing permission but I cannot for the life of me determine which one. Anyone have any ideas? Any help much appreciated.

How to export blob pic to excel?

$
0
0
I'm trying to export blob pic to excel.

I searched it and found solution like using
xlSheet.Shapes.AddPicture(FilePathAndName, 1, 1, 20, 20, 100, 100);

My problem is the FilePathAndName is looking for server path not on the local computer path..

Blob.Export is also looking for server path...
I need to use local computer path and export pic to excel.
Is there other way to export blob pic to excel using local computer path?

How to use TESTFIELD in extensions v2?

$
0
0
Hi all, I've got a question that is most likely just me being dense; but I can't find the correct use of TESTFIELD when using it in extensions :neutral:

In the "old" time TESTFIELD(Type); would make the system check whether Type was empty or not, and throw an error if it was empty. And TESTFIELD(Type, Type::Item); would throw an error if the Type was anything other than Item.
But if I try to use TESTFIELD in the extension constantly get a error saying: The call is ambiguous between the following methods or properties: 'TestField(Joker, Integer)' and 'TestField(Joker, Integer)'

And this is regardless of me trying to make sure a field has a value, or making sure that it has a specific value. What am I missing here?
Please don't tell me I have to make IF THEN ELSE sentences to handle this.

Shelf label printing. Label should print horizontally not in vertical manner like row wise.

$
0
0
Hi All,

i developed a shelf label 1X8 which worked properly, But now my client need a change.
when he is printing with 10 labels last two labels print first one then below second one.

He needs to print 2nd label just right side of first one.

to resolve this i took a matrix and deleted its row only kept column group.
i just dragged old layout in my matrix rectangle and deleted its row group(=math.ceiling(rownumber(nothing)/2).
and put a new group on column group((rownumber(nothing)-1) mod 4)

report is working fine until it is not getting job to print more then 8 labels. For 9 labels i am getting this error
Microsoft Dynamics NAV

Rendering output for the report failed and the following error occurred: (processing): ScalableList: Index 1 outside the allowed range [0::0]
OK

any one have solution then please help.

Thanks

Content-Type in SOAP request. Different behaviour On-prem vs. BC

$
0
0
I have AL code running fine on-prem, but when I deploy in BC running on Docker the request header seems to be created differently. The result is an error 415 "Invalid Media Type"

This is parts of the AL code:
var
    MyHttpClient: HttpClient;
    RequestMessage: HttpRequestMessage;
    ResponseMessage: HttpResponseMessage;
    Headers: HttpHeaders;
    Content: HttpContent;
    XMLRequest: text;
    XML_text: text;
  begin
    RequestMessage.SetRequestUri(URL);
    RequestMessage.Method('POST');
    Content.GetHeaders(Headers);
    Headers.Remove('Content-Type');
    Headers.Add('Content-Type', 'text/xml;charset=utf-8');
    XmlDoc.WriteTo(XML_text);
    Content.WriteFrom(XML_text);
    RequestMessage.Content := Content;
    MyHTTPClient.send(RequestMessage, ResponseMessage);

When running on-prem the Headers.Remove and Headers.Add needs to be there, otherwise I get error 415 also on-prem.

The same code seem to behave differently in BC. One problem I have is that I haven't figured out how to sniff the http-traffic from the Docker container. Normally I use Fiddler for that, but that's not possible here. Maybe if I succeeeded in configuring my host as a proxy for the container, but that doesn't seem trivial.

Is there any idieas on this out there?

Lookup User Table in the report request page.

$
0
0
Hi All,

I'm doing a modification in my customized report wherein
the client wants their signatory to be looked up in the User Table.


I made the initial process for this type of modification.
I didn't write any code, or anything I just set the property of the
Signatory field's TableRelation to the User Table. (See Screenshot Below)

hxwzji8bel0v.png

But Whenever I try to select the User
77ibaynu6w47.png


and Press "Enter" or "Tab" Either way.
I'm getting this error.
kw5a73jpebtg.png

Am I missing something out here?


thank you for answering.







Report generation with multiple records in same page

$
0
0
I have a issue while printing reports my customization is based on the continuation of records in same page that is at the end of page the record should break and continue on the top of the table
Similar to the specified image in url(https://goo.gl/images/rXvcTk)

VS Code missing certificate

$
0
0
Hi all,

i try to compile some sample code, see if it works, certificate is missing. How could I solve this?

thanks!

Edit:

Found the way. settting up all extension dev. environment is becoming very tricky

Files with Sort

$
0
0
Hi experts

I try to loop on all Files in given directory using .NET.
It works fine, but I want to order by file date.
The code so far:
// ServerDirectoryInfo	  DotNet	System.IO.DirectoryInfo.'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'	
// ServerFiles	          DotNet	System.Array.'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
// ServerFile	           DotNet	System.IO.FileInfo.'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'	
// iCount	               Integer		
// NoOfFiles            Integer		

ServerDirectoryInfo := ServerDirectoryInfo.DirectoryInfo('c:\temp\test');
ServerFiles := ServerDirectoryInfo.GetFiles();
NoOfFiles := ServerFiles.Length();

FOR iCount := 0 TO NoOfFiles - 1 DO BEGIN
  ServerFile := ServerFiles.GetValue(iCount);
  MESSAGE('File No. %1\File Name %2',iCount + 1,ServerFile.Name);
END;

Found some tips to sort the array but I think there must be more straight forward solution, for example here https://stackoverflow.com/questions/4765789/getting-files-by-creation-date-in-net/4765827 but I was not able to adapt it to C/AL :'(

Any ideas?
Thanks in advance
Thomas

VS Code: Error dlding symbols

Wrong version when opening Session Page

$
0
0
Hi all,

I have a PC with two different versions of NAV, 2009 RTC and 2017. My problem is that when I try to open, from NAV 2017, session page, system try to open it with NAV 2009 version and, of course, an error happens.

Did someone face a similar problem? Could someone help me with it?

Best regards and thank you,

COUNT FIND error

$
0
0
I have little bit problem with NAV ;-) I have very simple testing Code and I run it in Codeunit by Job Queue.

MyRec.Reset;
MyRec.SETRANGE( ... );
EventLogManagement.AddInfo('COUNT ' + FORMAT (OPImportHeader.COUNT));
IF OPImportHeader.FINDFIRST THEN
EventLogManagement.AddInfo('FIRST');
IF OPImportHeader.FINDLAS THEN
EventLogManagement.AddInfo('LAST');
IF OPImportHeader.FINDSET THEN
EventLogManagement.AddInfo('SET');



EventLogManagement.AddInfo is my function which write to special log.

And the problem is: I have these records in my log:
COUNT 23
LAST

but not FIRST, not SET. Next time there is COUNT 0, FIRST, LAST, SET. Any idea why?

If I run it from client it's always OK.
Version NAV 2017

Withholding Tax function

$
0
0
Hi NAV Experts,

We are using NAV 2015 which already includes withholding tax function. Since we are going to run our business in Thailand and Indonesia, we need to implement withholding tax function. However, I can only find several introductions to that.
I have two questions:
1. Is WHT function applied to the service module?
I found WHT business/product posting group in the sales line and purchase line table, but cannot find them in the service line. Does it mean WHT is not workable in a service invoice?

2. Do you know any resource, documentation, or case study about WHT implementation? We are trying to implement on our own.

Thank you!

Understand the LSRetail transaction

$
0
0
Hello to all.
I am a fresher in this community and i would like to make a question that maybe silly but i have spent a lot of time with no result in my investigation.
I have no access to an LS Retail solution source code but i have a challenge that i would like to win. We would like to offer a solution that needs integration
with LS Retail but needs only to process and understand the transaction.

So my challenge is to parse the transaction file that is coming out of an LS retail solution in order to understand the transaction items like for example what are the items purchased, the quantities etc. Is there a map of the format that the LS Retail platform uses in order to explain to me what is what inside the file and help me proceed. Is there any other better way to understand and decode the transactions from the POS?

Thank you very much for your effort and time answering this question

NAV2017 (NA)Bank Reconcilation, deposits not cleared in previous month not showing on current month

$
0
0
Hello,

When my client is preparing their Bank Reconciliation for the current month (August), some deposits that did not clear the bank last month (July) but were recorded as deposits in NAV2017 for July, are not showing the deposit lines of the reconciliation to select to be cleared. When the bank reconciliation was done for July they did not populate the Cleared Boolean on the deposit lines.

Looking into the Bank Account Ledger Entry table I see the deposits there but the Statement Status = Bank Acc. Entry Applied and Open = Yes.

If during the bank reconciliation process for July, I do not populate the Cleared Boolean box, wouldn't the Statement Status stay at Open?

What is the logic to designate the uncleared entry as Bank Acc. Entry Applied? And if it is a straight forward user is selecting the checks/deposits that cleared, why does it get that designation? It seems this is preventing it from showing in the current month's bank reconciliation.

What would happen if I changed the status on those entries to Open? What would I be breaking?

Hide line blank in report

$
0
0
Hi,

how to hide the empty line in a report

How do Page Handlers Work

$
0
0
So I am currently testing with my Test Codeunit and I try to call my PageHandler "boi5" to open "Admin Page" but it won't work.

Variable: Name: AdminPage, Type: Page, Subtype: Admin Page

I try to call boi5(AdminPage);

[PageHandler] boi5(VAR MyPage : Page "Admin Page")
Starting := STRSUBSTNO('%1%2',startingthing,'Admin Page');
boi2(Starting);
PAGE.RUN(PAGE::"Admin Page");

When I try to compile it says:"Assignment is not allowed for this variable." and points at boi5(AdminPage).

Please help me

Thanks in Advance

Lerxx

Date format YYYYMMMDD

$
0
0
How to achieve YYYYMMMDD date format in NAV e.g; 2018Sep09

Thanks

Upgradation to 2013-Dimension Set Entry table

$
0
0
Hi Everyone

I am doing a upgrade from Nav 2009 R2 to Nav 2013 & I struck in Dimension Set Entry table.

Customer has data in Journal Line Dimension & Document Dimension tables & these tables have removed from new version & they build a new table called Dimension Set Entry Table.

Now the question is How to move the data from discarded tables to new tables ? & keeping in mind that discarded tables have customization also.

VAR Parameter in Events

$
0
0
Hi,

I started to implement Workflows in NAV 2017 and came about the following code fragments in Codeunit 1521 Workflow Response Handling:
PROCEDURE ExecuteResponse@2(VAR Variant@1000 : Variant;ResponseWorkflowStepInstance@1001 : Record 1504;xVariant@1004 : Variant);
    ...

          ELSE BEGIN
            OnExecuteWorkflowResponse(ResponseExecuted,Variant,xVariant,ResponseWorkflowStepInstance);
            IF NOT ResponseExecuted THEN
              ERROR(NotSupportedResponseErr,WorkflowResponse."Function Name");
          END;
So here the Event OnExecuteWorkflowResponse is raised and then ResponseExecuted is checked and if not TRUE, an ERROR is raised.
The Event has the following prototype:
[Integration]
    LOCAL PROCEDURE OnExecuteWorkflowResponse@47(VAR ResponseExecuted@1000 : Boolean;Variant@1002 : Variant;xVariant@1003 : Variant;ResponseWorkflowStepInstance@1001 : Record 1504);
    BEGIN
    END;

I found the following Documentation for the event.

So, because the event can have multiple subscribers, how is VAR ResponseExecuted handled by the event, does ExecuteResponse get back the answer of the subscriber that happened to be called last? Are the result of all the subscribers processed in some way (for example ORed together)? If so, where does this happen and / or where is the behavior defined / documented?

Does anybody have any insight?
Viewing all 10032 articles
Browse latest View live


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