Quantcast
Channel: NAV/Navision Classic Client — mibuso.com
Viewing all 2200 articles
Browse latest View live

Does anyone have Navision 4.0 Hotfix 891518

$
0
0
The hotfix was originally posted here
http://support.microsoft.com/?kbid=891518

It may also be known as Navision 4.0 Hotfix 4

But It is no longer available.
It is no longer available on https://mbs.microsoft.com
Our solutions provider does not have it; nor does microsoft.

If anyone has the original hotfix archive / executable and could share it - that would be greatly appreciated.

Thanks in advance.

how to Remove 00/100 in Standard Check, If the Amount Has No. Value

$
0
0
Hi Guys,

I have a question regarding the Dynamics NAV Standard Check,

I'm Having trouble formatting the Amount in words Part of the check, since the requirement is to remove the 0/100
if the amount in payment journal Lines, has no decimal value

to be exact.

if the amount is 1000.00 the amount in words should be
-ONE THOUSAND (Currency) ONLY


and if the amount is 1000.25
- ONE THOUSAND AND 25/100 (CURRENCY) ONLY


hope someone knows how to edit the code for the report 1401
for this scenario

Thanks in advance.
have a nice day

Merging PDF Documents

$
0
0
Does anyone have any experience of merging a PDF document with another one. I basically have a PDF document that i want to use as a watermark and want to place this document on top of the PDF document that i generate. I am using Amyuni as my PDF converter?

Lot 4 Lot and Safety Stcok

$
0
0
Hi All

In the context of using MRP and the Planning Worksheet is anyone using Lot 4 Lot and Safety Stocks to successfully manage inventory of purchased items? The issuer is after placing an order to re3plenish the safety stocks MRP responds by suggesting cancellation of the order and a new order raised for immediate delivery.

With several thousand items and lead time ranging between 3 days and 6 months its not possible to keep manually checking every suggestion on the worksheet. The use of Reorder points is not desired as I do not want to reorder if there are no future requirements.

NAV 5.0 | Report queue

$
0
0
Hey there,

I am trying to implement a Report queue.
I allready have my Reports (f. e. Invoice), which work well so far. But in case, the "Document Date" is in future, I don't want the Report to be printed.
The Report should be printed (or run), when the Document Date <= TODAY.

What is done so far:

There is a table
3ndee4wbl1sb.png

In my Report, I do put content in the table, if it shouldn't be printed TODAY.
8s6tgfmf8xjo.png

Here I put in some example data in my new table:
8ezuoslix2uk.png

Next I want to loop through my new table like this:
as88ucq63xqy.png

I do need help, because I am not able to fill in the needed data into the Request Form.
For our example (Todays the 06.06.2019) the code should silent-run three reports.

Please do the following:
--> Put in "Document No." (out of table "Document Source")
--> Put in "No. of Copies" in var g_NoOfCopies_Int
--> Put in "Report Delivery" in var g_ReportDelivery_Txt
--> Run Report with Report ID "Report-ID" silent

Repeat with each record in my new table (after filtering)

I just typed in manually for example No. 4
80yytl0di3av.png





So, after all, I need to know, how to pass Variables and set a Filter to a specific DataItem to a Report (Report by ID) and run it silent.

Someone gotta idea? :smile:
Greets

Adding BLOB image to JSon request

$
0
0
Hello professionals,

I'm trying to add BLOB image to JSon request send to API.
First of all I'm converting that photo to BigInteger and after that it's converted into base64string.





APIUploadProductImage(ProductID : Text)

CLEAR(ImageBigText);

recItem.SETRANGE(recItem."No.", '10000');
IF recItem.FINDFIRST THEN BEGIN
recItem.CALCFIELDS(Picture);
IF NOT recItem.Picture.HASVALUE THEN
EXIT;

recItem.Picture.CREATEINSTREAM(Istream);
MemoryStream := MemoryStream.MemoryStream();
COPYSTREAM(MemoryStream,Istream);
Bytes := MemoryStream.ToArray();
ImageBigText.ADDTEXT(Convert.ToBase64String(Bytes));
END;

JsonMgt.StartJSon;
JsonMgt.AddToJSon('image',ImageBigText);
JsonMgt.EndJSon;

String := String.Copy(JsonMgt.GetJSon);

WebServiceURL := 'https://XXXXXXXXXXXXXX/api/2.0/products/'+ProductID+'/actions/image_upload/';
HttpWebRequest := HttpWebRequest.Create(WebServiceURL);
HttpWebRequest.Method := 'POST';
HttpWebRequest.KeepAlive := TRUE;
HttpWebRequest.Timeout := 30000;
HttpWebRequest.Accept('application/json');
HttpWebRequest.ContentType('multipart/form-data');
HttpWebRequest.Headers.Add('Authorization: Bearer ' + 'XXXXXXXXXXXX');

StreamWriter := StreamWriter.StreamWriter(HttpWebRequest.GetRequestStream,Encoding.GetEncoding('iso8859-1'));
StreamWriter.Write(String);
StreamWriter.Close;

NAVWebRequest := NAVWebRequest.NAVWebRequest;
NAVWebRequest.doRequest(HttpWebRequest,HttpWebException,HttpWebResponse);

##########!!!!!!!!!!################!!!!!!!!!!!

and here it breaks at this line.

Error shows:

System.Net.WebException: The remote server returned an error: (500) Internal Server Error.
at System.Net.HttpWebRequest.GetResponse()
at NAVWebRequest.NAVWebRequest.doRequest(HttpWebRequest& WebRequest, WebException& WebException, WebResponse


I'm new with JSon. My brain already stopped working. And I can create/get request/response but in case of adding BLOB to request I have to give up... I think something is wrong with converting blob>biginteger>here?

JsonMgt.Start, add & endJson are functions which are building json schema around data which I'm providing. It works for normal data so it's not problem with it.

Any hints lads? Any idea, tip, all those will be helpful!

Ahh and I'm working on NAV2016.

Thanks in advance!
Tim

Filtering value on the report using dataitem

$
0
0
Hi Guys,

I have a issue on report filtering data using dataitem. I 'm not sure that NAV will support it. Could you give some advices?

Example:

I have the report as below:

7gu2s8fpcepa.png

I want filter the value of No. base on the Account Type. Ex: If I select Account Type = "Posting", No. only show value has Account Type = "Posting"
8755hruuy3b8.png


Currently, it show all value.
syrvvf1x60xk.png

Could we customize to filter value in this case?

Thanks,

Get the file path from Sales and Recievable setup field for Dataport export.

$
0
0
Hi all,

I have exported customers as a CSV file with the help of Dataport. Here I have to give the path for the file to export.

But, I want to get the file path from a 'Sales and Receivables Setup' table's field (I have created one field called 'file path' in 'Sales and Receivable setup' table).

So how to code to get the file path from that field to export?

Please suggest me some steps.

Thanks in Advance,
Jacob A.

Is it possible to access a variable inside a report from a form via get-function?

$
0
0
Hi so i try to run a report after clicking a button in my form and afterwards update some formfields with variables stored in the report. Is that possible? Even though i declared the report as global variable in my form it says variable not found when i try to use the get-function.

Excel 2007 SaveAs Method of Workbook Class Failed

$
0
0
Hey everyone,

I just moved the NAS from one machine to another - installed the same version of Excel 2007. Running on Server 2008 NAV 5.0 SP1.

Before I ran updates, I tried having the NAS Fire off some of the jobs I had setup and been using for quite some time now. In them I am using Excel Buffer to make an excel file and then call my own Function in ExcelBuffer where I pass the Filename and save type.
XlWrkBk.SaveAs(FileName,iTypeCode);        
XlWrkBk.Close();
XlApp.Quit();
iTypeCode = 56 for Excel 2003 file.
I attempted removing this since it was optional - saving it as 2007, and even tried the SaveAsCopy method.

For some reason now, this is the part that isn't making sense to me, When I run the codeunit manually (EDIT: From this server using NAV Cleint) - it works. When the NAS Runs it, I get this in the Job Queue Log Entries:
This message is for C/AL programmers:

The call to member SaveAs failed. Microsoft Office Excel returned the following message:
SaveAs method of Workbook class failed

The NAS Login has permission to everywhere it is writing - there is nothing in the Event Viewer except Microsoft Office Sessions Warning just saying:
ID: 1, Application Name: Microsoft Office Excel, Application Version: 12.0.6524.5003, Microsoft Office Version: 12.0.6425.1000. This session was terminated unexpectedly.

I installed updates, still nothing. Kinda getting stumped. I searched the forums, google and maybe I'm just having a real tired moment today... I know it has to do with the NAS/Login since I can run it... unless Excel is trying to pop up something that is causing it to fail...

Anyone see anything like this? ](*,)

How do i pass a variable from a Report to a Form?

$
0
0
Hi, so i have a Form that calls a Report in an OnPush()-Trigger. After the Report is run, i want to pass two Integers back to the Form. Is there any way to do it?
Since apparently all variables are cleared after Report.RUN is executed i cant follow up with get functions in the Report. I also tried it the other way around and put set functions in my form and tried to update the form fields in the OnPostDataItem() of the Report... that doesn't work either ( apparently it's passing the values to a new instance of the form instead of using the one that is currently running.


EDIT: all i had to do was RUNMODAL instead of RUN. I don't know why but apparently the variables don't get cleared this way

Adding BLOB image to JSon request

$
0
0
Hello professionals,

I'm trying to add BLOB image to JSon request send to API.
First of all I'm converting that photo to BigInteger and after that it's converted into base64string.





APIUploadProductImage(ProductID : Text)

CLEAR(ImageBigText);

recItem.SETRANGE(recItem."No.", '10000');
IF recItem.FINDFIRST THEN BEGIN
recItem.CALCFIELDS(Picture);
IF NOT recItem.Picture.HASVALUE THEN
EXIT;

recItem.Picture.CREATEINSTREAM(Istream);
MemoryStream := MemoryStream.MemoryStream();
COPYSTREAM(MemoryStream,Istream);
Bytes := MemoryStream.ToArray();
ImageBigText.ADDTEXT(Convert.ToBase64String(Bytes));
END;

JsonMgt.StartJSon;
JsonMgt.AddToJSon('image',ImageBigText);
JsonMgt.EndJSon;

String := String.Copy(JsonMgt.GetJSon);

WebServiceURL := 'https://XXXXXXXXXXXXXX/api/2.0/products/'+ProductID+'/actions/image_upload/';
HttpWebRequest := HttpWebRequest.Create(WebServiceURL);
HttpWebRequest.Method := 'POST';
HttpWebRequest.KeepAlive := TRUE;
HttpWebRequest.Timeout := 30000;
HttpWebRequest.Accept('application/json');
HttpWebRequest.ContentType('multipart/form-data');
HttpWebRequest.Headers.Add('Authorization: Bearer ' + 'XXXXXXXXXXXX');

StreamWriter := StreamWriter.StreamWriter(HttpWebRequest.GetRequestStream,Encoding.GetEncoding('iso8859-1'));
StreamWriter.Write(String);
StreamWriter.Close;

NAVWebRequest := NAVWebRequest.NAVWebRequest;
NAVWebRequest.doRequest(HttpWebRequest,HttpWebException,HttpWebResponse);

##########!!!!!!!!!!################!!!!!!!!!!!

and here it breaks at this line.

Error shows:

System.Net.WebException: The remote server returned an error: (500) Internal Server Error.
at System.Net.HttpWebRequest.GetResponse()
at NAVWebRequest.NAVWebRequest.doRequest(HttpWebRequest& WebRequest, WebException& WebException, WebResponse


I'm new with JSon. My brain already stopped working. And I can create/get request/response but in case of adding BLOB to request I have to give up... I think something is wrong with converting blob>biginteger>here?

JsonMgt.Start, add & endJson are functions which are building json schema around data which I'm providing. It works for normal data so it's not problem with it.

Any hints lads? Any idea, tip, all those will be helpful!

Ahh and I'm working on NAV2016.

Thanks in advance!
Tim

Filtering value on the report using dataitem

$
0
0
Hi Guys,

I have a issue on report filtering data using dataitem. I 'm not sure that NAV will support it. Could you give some advices?

Example:

I have the report as below:

7gu2s8fpcepa.png

I want filter the value of No. base on the Account Type. Ex: If I select Account Type = "Posting", No. only show value has Account Type = "Posting"
8755hruuy3b8.png


Currently, it show all value.
syrvvf1x60xk.png

Could we customize to filter value in this case?

Thanks,

Get the file path from Sales and Recievable setup field for Dataport export.

$
0
0
Hi all,

I have exported customers as a CSV file with the help of Dataport. Here I have to give the path for the file to export.

But, I want to get the file path from a 'Sales and Receivables Setup' table's field (I have created one field called 'file path' in 'Sales and Receivable setup' table).

So how to code to get the file path from that field to export?

Please suggest me some steps.

Thanks in Advance,
Jacob A.

Export a last 6 months records.

$
0
0
Hi All,
I have created a Dataport with 'Cust. Ledger Entry'.I want to export the last 6-month invoice records.
Can you please suggest me some code to retrieve last 6 months records.

Thanks in advance,
Jacob A.

Need Navision.Mail DLL version 7.3.0.1

$
0
0
Hi All,

I am working on a NAV project and I need the Navision.Mail DLL, version 7.3.0.1. This was available as a hotfix from Microsoft, but it was taken down. I can’t find it anywhere on the internet. If you happen to have it can you please send me the DLL and the TLB files?

I need this specific version, because it’s the version that supports a port number and SSL connection. This is the last version that’s compiled for legacy DLLs (?), not .NET. The customer is using NAV 2009 SP1 Classic with SQL option.

Thanks for your help in advance.

Making Tax Digital (MTD)

$
0
0
Hi,

I am thinking to make a Making Tax Digital (MTD) solution on NAV 2009 classic as well as in excel and may be an app to submit vat returns via phone

some work is already done like calling hello world.
Do I need client id and token, I put my client id and token on NAV 2017, it does not work, I believe it is Microsoft specific
then if I write my own on classic nav or excel vba, how is it going to work

is anyone able to help or share VBA code?


Thanks

Jobqueue is not starting

$
0
0
Hi All,

I have set the jobqueue for codeunit object and make the status as 'Ready'.
I have given the service's setupparameter as JOBQUEUE in registry editor.
But its not starting ..

Please suggest me some ways,

Thanks in advance,
Jacob A.

Print shorcut key ctrl+p don't work as page action

$
0
0
Hi everyone,

So I want to print my current page of vendors or items and I press ctrl+p and prints what I want. But If i create a page action with shorcutkey "ctrl+p" this don't work... there is no simple way of doing this without creating report?

Can be Possible to give print command for 500 Nos Invoice which are in the sequence 001 to 500

$
0
0
Can be Possible to give print command for 500 Nos Invoice which are in the sequence 001 to 500
Viewing all 2200 articles
Browse latest View live