Quantcast
Channel: Microsoft Business Solutions online community
Viewing all 14219 articles
Browse latest View live

Cannot change "Type" option in SubPageLink

$
0
0
Hi everyone!

I've jsut realized than, when I upgrade NAV2013 to NAV 2018, the subpagelink between page 42-SAles ORder, and page 9087-Sales Line FactBox , it's broken.
This is how the subpagelink should be:
Document Type=FIELD(Document Type),Document No.=FIELD(Document No.),Line No.=FIELD(Line No.)

But when I try to copy that on my NAV 20148, I can see this error:

mh2zydyboddz.png

"Cannot write 'Document Type=FIELD(Document Type),Document No.=FIELD(Document No.),Line No.=FIELD(Line No.)' in Field No.'"

When i try to open the subpagelingk, the type option is blocked on const mode, I cannto change it.

9xr9z3lb95hn.png

Why can this be happening?

Thank you all for your tips

Create a Drag & Drop Calendar JavaScript Add-in for Dynamics NAV 2017

$
0
0
Create a Drag & Drop Calendar JavaScript Add-in for Dynamics NAV 2017

This walkthrough demonstrates how to create a Drag & Drop Calendar JavaScript control add-in and use it on a Microsoft Dynamics NAV page.
Creating a control add-in assembly file (.dll) with Visual Studio
1. In Visual studio, create a new Project (Class Library)

31i7wigm803x.png

2. Add a Reference to the following assembly: Microsoft.Dynamics.Framework.UI.Extensibility.dll
By Default the path of the assembly is
C:\Program Files (x86)\Microsoft Dynamics NAV\100\RoleTailored Client.

ko3nmeg761pp.png

3. Declare a new Interface named IDragDropCalendar and add the following code.

gw0m5hnpx7h2.png

4. Sign the assembly
a. In Visual Studio, on the project menu, choose DragDropCalendar solution properties
b. Within the windows that appears, select the Signing tab
c. Tick the “Sign the assembly” checkbox.

x6l5n5kci9fl.png

d. In the Choose a strong name key file drop-down list, select New
e. The Create Strong Name Key dialog box will be displayed and you can specify a name for key file.
You can specify a password to protect the file.

n8rhsyytbfel.png

5. Build the solution

oj1yj7h1tltm.png

You can download the file from: https://drive.google.com/open?id=1uBoZRGVhsY7mJmSzKkAvUfqkjWNCpTx9

Creating a JavaScript Scheduler Application
1. Download the following libraries:
- bootstrap.min.js https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js
- fullcalendar.min.js https://cdnjs.cloudflare.com/ajax/libs/fullcalendar/2.2.7/fullcalendar.min.js
- jquery-1.11.2.min.js https://code.jquery.com/jquery-1.11.2.min.js
- jquery-ui.min.js https://code.jquery.com/ui/1.11.2/jquery-ui.min.js
- moment.min.js https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.9.0/moment.min.js
- jquery.xml2json.min.js https://cdnjs.cloudflare.com/ajax/libs/x2js/1.2.0/xml2json.min.js
- bootstrap.min.css https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css
- fullcalendar.min.css https://cdnjs.cloudflare.com/ajax/libs/fullcalendar/2.2.7/fullcalendar.min.css
2. Open your favorite IDE (Notepad ++ for example) and create three files
o DragDropCalendar.js https://drive.google.com/open?id=1vqofLGhsu2Q2JmkuWBlKNx5tTJTRlkJj
o DragDropCalendar.css https://drive.google.com/open?id=1o8MNyjDQdGnrK0eQNuaIhrIjrZMq1udi
o Manifest.xml https://drive.google.com/open?id=1o2INN7AHbjN6N4AloRioYf8QIHdIPCes

zwjvab859tpc.png

Creating a Resource .Zip File
Before registering the control add-in in Microsoft Dynamics NAV, you must create a .Zip file containing the Manifest and any resource files.
1. On your computer, in a folder of your choice, create the following structure
Image, Script and StyleSheet
2. Locate the Manifest.xml that you created in the previous steps, and copy this to the same folder structure.
3. Place images, scripts and stylesheet in the right folders.
In this walkthrough, we will leave the Image folder empty.

xhzgtyyvcsly.png

4. Select File and Folders, then right click the highlighted area
5. In the WinZip sub-menu, choose add to Zip File
6. Rename the .Zip File to DragDropCalendar.zip

kfhond9zj2a6.png

Copy the Control Add-in Assembly and Resource .Zip to the MS Dynamics NAV Development Environment

By default, this folder is C:\Program Files (x86)\Microsoft Dynamics NAV\100\RoleTailored Client\Add-ins

56orizamo58d.png

Registering the Control Add-in in Microsoft Dynamics NAV

To register the control Add-In, we must provide the following information:
Control Add-in name
The name of the control add-in, is determined by the tpd7pqkaty4m.png

The name in this walkthrough is DragDropCalendar.
Public key token
To determinate the public key token for the control Add-In:
a. Open Developer Command prompt for VS2017
b. At the command prompt, change to directory that contain the assembly
c. Type the following command: sn -T DragDropCalendarAddIn.dll
e94hw8y8pe7g.png

9gekhdfsrhfu.png

Include the control add-in in the control add-in page

In the Search box, enter Control Add-in and then choose related link.
Chose New, and then fill the column with the appropriate value.

a6wh1z533cce.png

With the Control add-in page still open, you import the resource (DragDropCalendar.zip) file.

sfcdx6181vmr.png

Create a Page to Display the Control Add-in

Before creating the page, you need to recover the list of resource, for this:
1. Create a new XmlPort called Export Resource List and set the properties like below:

amp86vrl6gmw.png

For this purpose, you will recover only the name of our resource:

The property Temporary of the Element SalesPerson must be set to Yes

h65o67lpcvwd.png

2. Add code to initialize our Temporary record.
o Add Global function: SetResource

cpa4v0fipu40.png

3. Create a Codeunit: Drag&Drop Calendar Management and add the following function.

z98vo9gjod1c.png

6bx36pmdusjp.png

0qulxmc3fhzm.png

4. Create a Page Drag & Drop Calendar

dd01xdpumd0s.png

Set the property of Field as below:

e9jcvkboeap6.png

To Add the C/AL Code triggers, locate the DragDropCalendar::ControlAddInReady() and add the following line.

h3lvrwzlqtq3.png

Download File: https://drive.google.com/open?id=1hZs2isJydxDMvXOiBJ0Zs6Rfqsigkx4h

Run the page and Enjoy.

u2oxif8hz0cl.png

Microsoft Dynamics NAV Server attempted to issue a client callback to download a file: XML

$
0
0
Hello every one,

my requirement is to generate XML file on Server (with shared path), and i am trying to achive the same using report, when i run the same using RTC file is getting generate. NAV version (2017)
but when i run the same from Job Queue it throws back with error below
"Microsoft Dynamics NAV Server attempted to issue a client callback to download a file: XML"
and below is the peace of code that i am trying to generate XML file.

any help to resolve would be much appreciated. thanks in advance.

FullFileName := FileName;
ServerFiletxttemplateName := FileMgt.ServerTempFileName('xml');
FileVar.CREATE(ServerFiletxttemplateName);
FileVar.CREATEINSTREAM(InStr);
xmlDoc.Save(InStr);
FILE.DOWNLOADFROMSTREAM(InStr,'','<TEMP>', '',Magicpath);
UPLOADINTOSTREAM('','<TEMP>','',Magicpath,InStr);
FileVar.CLOSE;
FileMgt.CopyClientFile(Magicpath,FileName,TRUE);

Wrong Item Tracking Application Entry

$
0
0
Dear Sir,

While working on a migrated database(NAV 2016), I have found that a Item Ledger Entry (Sales Shipment) is applied with a Item Ledger Entry (Purchase Receipt) with a different Serial No. (Item tracking No.).

I think, it's the outcome of wrong customization.
Kindly guide me where I have to check to avoid wrong application.

Thanks in advance.

-
navuser1

Approval Link on Email

$
0
0
Hello,

My client is using Dynamics Nav 2009 RTC.
They want to use the Document Approval functionality of Navision in a different way.

They want the Notification Email which is received to carry a link and by clicking on that link the document is approved in navision. This is required specifically for top Management.

Please, can anyone direct me in the direction I should go in other to get this working.

Regards
Christopher
NG

How to autofit with Excel Buffer, without using Openexcel ( Nav 2015 excel buffer version)

$
0
0
Hi,

I have a problem with Excel Buffer,I'm working on Nav 2015 and I have to create a report that export data from Purchase Line to Excel. After creating the excel I have this code on PostDataItem :

TempExcelBuffer.CreateBook(Title);
TempExcelBuffer.WriteSheet(Title,COMPANYNAME,USERID);
TempExcelBuffer.CloseBook;

....

Then I send the excel directly from the server via Mail to the target Recipient. The problem is that in the new Excel Buffer, the excel is generated using only XlWrkBkWriter, XlWrkShtWriter and the XlWrkBk or XlWrkSht are not initialized. I don't know how to initialized those variable to make the autofit of column, without using TempExcelBuffer.OpenExcel that download the file to client (I need to have the file modified server side).

Does anyone have any idea?

Thank You

Yahoo Currency Exchange Rate Replacement?

$
0
0
The word is that Yahoo has discontinued supplying exchange rates through web services because they were not intended for commercial distribution. Does anyone have a replacement for this?

'Create failed' when publishing extension for NAV 2017 CU10

$
0
0
Hello!

I'm encountering this error message when I'm trying to publish an extension
for NAV 2017 CU10. I have checked the license, permission for the user and
tried publishing the navx file on another server. Has anyone encountered this
error and found a solution for it?

I use the NAV 2017 Administration Shell to publish it since that automatically
loads all PowerShell commands. I'm running the shell and thus the commands as
Administrator which is a local administrator with SUPER rights on NAV.

51kvobxeymmz.png

Kind Regards,
Alexander

error validating report rdl content

$
0
0
I'm having the above error and I can't figure why.

cosnooh9f5m5.png

I have my var ShowLogo as a global var and initialized

OnInitReport()

ShowLogo := TRUE;

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?

ADCS - Custom Field

$
0
0
Hello there.
I need help with ADCS and looking for Ideas.
I have a simple miniform, getting info from the purchase line.
I enter the PO number
Then I enter the Item number.
A custom field populates with a value in that field that exists on the PO Line.
I want to be able to overwrite that value with smth else from my telnet, however when I enter smth in that field nothing happens.

Here is my code.
Seems like it does not get to the custom field code.
Any ideas ??
Code below with strike through section . I specifically added the error line, because I wanted to see an error and it does not produce that.


FuncGroup.KeyDef::Input:
BEGIN
EVALUATE(FldNo,ADCSCommunication.GetNodeAttribute(ReturnedNode,'FieldID'));

CASE FldNo OF
purchaseline.FIELDNO("Document No."):
CheckPONo(UPPERCASE(TextValue));
purchaseline.FIELDNO("No."):
CheckItemNoold(UPPERCASE(TextValue));
purchaseline.FIELDNO(Description):

storedesc:=TextValue;

purchaseline.FIELDNO("Dock Qty"):
ERROR('qty');[/b]


ELSE BEGIN
ERROR('went here');
ADCSCommunication.FieldSetvalue(RecRef,FldNo,TextValue);
RecRef.SETTABLE(purchaseline);
END;
END;

purchaseline.MODIFY;
RecRef.GETTABLE(purchaseline);
ADCSCommunication.SetRecRef(RecRef);
ActiveInputField := ADCSCommunication.GetActiveInputNo(CurrentCode,FldNo);
IF Remark = '' THEN
IF ADCSCommunication.LastEntryField(CurrentCode,FldNo) THEN BEGIN
RecRef.GETTABLE(purchaseline);
IF NOT ADCSCommunication.FindRecRef(RecRef,1,ActiveInputField) THEN BEGIN
Remark := Text008;
END ELSE
ActiveInputField := 1;
END ELSE
ActiveInputField += 1;
END;
ELSE
ERROR(Text000);

Report Layout Illegal characters in path error in NAV2016

$
0
0
Dear All,

When I try to open the report layout by clicking Tools -> Layout from developer environment, I am getting error as follows.

It is not possible to edit the layout with the report designer.

Detailed description: Illegal characters in path.

If anyone know how to resolve this , please let me know.

Thanks in advance.

Regards,
chandru.

How to manage read and write permissions?

$
0
0
Hi everybody, I'm a new NAV 2017 user.
I need to setup some permission rules on my ERP, I tried to understand with my consultat how to do, but I could not get a real answer and seems that my simply request is more difficult to achieve with standard NAV tools. I want to understand how other people face this problem.

Let's say that I need a "Operators" user group. Operators can do everything but add or edit items property. He can read but not add new items or edit them.

I tried to setup Operator's PermissionSet adding all TableData rows with all permissions except for Item table where I have set read only. This works, but when I post an order, the item ledger entry could change the direct unit cost of item and then it fails the item update. So maybe this limit is too strong.
Then I checked if I can use permission on Page of Items but here I cannot distinguish read ad write permissions.

I simplified my problem in only one case Operators/Items. In my real system I have to divide Commercial capabilities to Technical. Working on it I found many other strange things, for example the insertion of an Item in Transfer Order need BOM Components read permission where Transfer Order for me is a commercial document but a commercial user should not see BOM.

How would you solve this problem?
Thanks!

I want to get automatic exit date of employee in User card.

$
0
0
when user permissions are deleted from User permission set, automatically exit date i.e. today's should be displayed on the exit date field on that page.

can anyone please help me to do this

Obsolete and duplicate actions still visible after Data upgrade from Nav 2013 R2 to Nav 2018 CU2

$
0
0
Hi..We have a customer database which is upgraded from Nav 2013 R2 to Nav 2018 Cu2. After upgrading the database,we where still able to see some obsolete actions in Nav 2018 CU2 as well as duplicate actions for Statistics,Release etc in some page among which only one action performs operations when selected.

For Example:Credit Cards Action is present in Nav 2013 R2 which is obsolete in 2018 CU2
4mhbjdpg3zhp.png


This happens only in the customer environment.
1)Customer environment has Nav2018 CU2 installed.
2)Same database is restored in an other server.Still the problem exists.
3)We imported all upgraded objects set in an other server on top of Cronus database.This problem doesn't occur.

However since its an upgrade customer data needs to be there.

Could you guys let us know valuable inputs.Thanks in advance



nav Report Sales orde

$
0
0
1x4tafr11cvi.jpg
fm1dgcrvjotj.jpg
In sales line there is tow fields quantity and quantity shipped. i want to subtract the the two values and get it in report. The line value should print in Remain QTY1 and second value should print in Remain QTY2 and 3rd value should print in Remain QTY3 if more lines are there then it should print in Remain QTY3 The values which should come in report is marked in yellow.

Digital Signature

$
0
0
how to apply digital signature on pdf generated from navision? i want to do this through navision coding.

Permission problem with webservice

$
0
0
Hello,
I'm having an issue with the webservices of NAV 2017 (cu11): periodically the error 'You do not have the following permissions on TableData Dossier Setup' is logged.
This is the situation:
- User opens a page with an C# addin
- The addin uses the webservice to update data periodically with a background worker. In C# the credentials for the webservice are set to "UseDefaultCredentials"
- The webservice runs on a dedicated service tier, where credential type = Windows, use NTLM authentication = FALSE, Enable SSL = FALSE

When the service tier is started this works fine for a while, but suddenly the above error occurs in the event viewer for some users, not all. From then on the error is logged every time one the web service is called for these users, while other users still receive updates.

Does anyone know what can cause this? I'm 100% sure all users have read permissions on the table, as they can't start the page without.

Kind regards,
Andy


This is the complete error in the event viewer:

Server instance: SOAP_1
Tenant ID:
<ii>User:
Type: Microsoft.Dynamics.Nav.Types.NavPermissionException
Remappable: True
ErrorCode: 18023807
ErrorNumber: 1407
ModuleNumber: 19
SuppressMessage: False
SuppressExceptionCreatedEvent: False
FatalityScope: Call
Message: <ii>You do not have the following permissions on TableData Dossier Setup (Global): Read</ii>
StackTrace:
at Microsoft.Dynamics.Nav.Runtime.PermissionSetBase.VerifyPermissions(NavApplicationObjectBase securableObject, PermissionMask permissionMask, LimitedUserPermissionChecker limitedUserPermissionChecker, Func`2 checkTableEmpty, PermissionMask additionalIndirectPermissions)
at Microsoft.Dynamics.Nav.Runtime.RecordImplementation.VerifyPermissions(PermissionMask permissionMask, Boolean checkForEmptyTable)
at Microsoft.Dynamics.Nav.Runtime.RecordImplementation.FindRecordWithoutCheckingValues(DataError errorLevel, NavValue[] primaryKeyValues, FiltersAndMarks filtersAndMarks, Boolean useRecord, Boolean cacheOnly, Boolean calcAutoCalcFields)
at Microsoft.Dynamics.Nav.Runtime.RecordImplementation.GetRecord(DataError errorLevel, NavValue[] values)
at Microsoft.Dynamics.Nav.Runtime.NavRecord.ALGet(DataError errorLevel, NavValue[] values)
at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit50075.GetActivityInfo_Scope.OnRun()
at Filter.InvokeWithFilter(NavMethodScope )
at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()
at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit50075.GetActivityInfo()
at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit50075.AddInstructionsDossier_Scope.OnRun()
at Filter.InvokeWithFilter(NavMethodScope )
at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()
at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit50075.AddInstructionsDossier(INavRecordHandle precDossier, NavDate pdatStartDate, NavDate pdatReferenceDate, Int32 poptDossierStatus, Int32 poptInstructionStatus, Int32 poptShowInstructions, Boolean pbolHideEarlierDossiers, Int32 poptSorting, ByRef`1 pbolPlanningLinked, ByRef`1 ptSortKey, Boolean pbolDeleteCurrent, ByRef`1 piNextPlanItemID, INavRecordHandle precTmpPlanItems)
at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit50075.OnInvoke(Int32 memberId, Object[] args)
at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit50069.GetUpdatedContainerPlanning_Scope.OnRun()
at Filter.InvokeWithFilter(NavMethodScope )
at Microsoft.Dynamics.Nav.Runtime.NavMethodScope.Run()
at Microsoft.Dynamics.Nav.BusinessApplication.Codeunit50069.GetUpdatedContainerPlanning(NavCode pcodPlanningEnv, NavText ptCustomerFilter, NavCode pcodStatusFilter, NavCode pcodAddressID, NavCode pcodPlaceID, NavCode pcodZone, NavText ptTransportDate, NavText ptDateTimeLastUpdated, ByRef`1 pbtPlanningUpdate)
--- End of stack trace from previous location where exception was thrown ---
at Microsoft.Dynamics.Nav.Runtime.TaskHelper.Rethrow(Exception exception)
at Microsoft.Dynamics.Nav.Service.WebServices.ServiceBroker.Invoke(Boolean isSoapMessage, Uri url, XmlReader input, TextWriter output, NavUserAuthentication navUserAuth)
at Microsoft.Dynamics.Nav.Service.WebServices.NavWebService.<>c__DisplayClass3_1.<ProcessMessage>b__2()
at Microsoft.Dynamics.Nav.Service.WebServices.Disposer.Scope(Code code)
at Microsoft.Dynamics.Nav.Service.WebServices.WCFUtil.GetPopulatedMemoryStream(StreamFillingCallback callback)
at Microsoft.Dynamics.Nav.Service.WebServices.NavWebService.ProcessMessage(Message message)
at SyncInvokeProcessMessage(Object , Object[] , Object[] )
at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.ImmutableDispatchRuntime.ProcessMessage5(MessageRpc& rpc)
at System.ServiceModel.Dispatcher.MessageRpc.Process(Boolean isOperationContextSet)
Source: Microsoft.Dynamics.Nav.Ncl
HResult: -2146233088
</ii>

XML import always first row

$
0
0
I'm trying to import new data using xmlport. The file is plain txt without separator between columns (fixed text). The files are separated by new line (CR LF).
It looks like it loops well because the process create my the same amount of lines I've in the txt file but always with the same date (first line).

I've read the walkthrough I haven't find any clear mistake. What am I doing wrong?

remove Purchase lines ordering by item no

$
0
0
Hi everyone,

I have the page of purchase order. In this pages I have a page included with lines, the purchase lines

z62kbu7nyy6m.png



The problem I'm facing is in each order i'm making the purchase lines are being sorted by item no, and it's a mess when I want to persist a order of my products and check each one and don't want to alter it's order understand? So in my both cases no order was the best scenario.



I have a lot of keys in the purchase lines table, but for the purchase order at the moment i don't have anything in "SourceTableView". What can I do? In the images below you can see the same product in different lines.

k29kk10lmh9j.png


Viewing all 14219 articles
Browse latest View live


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