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

Problem upgrading data source in PowerBi web

$
0
0
Hi everybody,

We have a customer with NAV installed on a server. To connect to the server via rdp, I must use a VPN.

In my laptop, I've created a PowerBi report, adding 3 data sources from nav. Of course, VPN must be on, and when adding the data sources I didn't have any problem, because I've added in the credentials one of the users we use to start session in NAV. Also, when I refresh data soruces, the changes in data are shown correctly.

But when I publish the report into the web version, and try to refresh data, I get a credential error. I'm trying to add into the credentials the same NAV account that i configure when adding the data sources into the desktop version, but I still get the error.

Why can be this happenning?



Thank you very much

Developing reports in NAV 2013

$
0
0
Hi, regarding NAV 2013, do I have to purchase a paid version of Visual Studio 2010 (Professional, Premium or Ultimate) to develop reports? Or will I be able to use the free version of Visual Studio 2010 (Web Developer) to develop reports?

Developers: Looking for advice

$
0
0
Thought this might turn into a really interesting thread. Here's my question:

If someone who is relatively tech-savvy, but has no formal development experience, wanted to get into NAV development, what would you recommend they do for 1st/2nd/3rd steps? I have my own ideas, but I'm not a developer, so I'm interested to hear what the pros think.

Any ideas are welcome and appreciated!

Validation upon Leaving Page in NAV 2009

$
0
0
Hello. I am currently working on a project in NAV 2009 and I can't find a way on how to validate fields in creating a new customer in Customer Card. I would like to prompt an error message if a required field is empty upon leaving or closing the page. I tried TESTFIELD on the OnInsert, OnOpenPage, OnAfterGetCurrRecord but even though the page is still not opening, the error message appears. Is there any way on how to do this? Thank you.

Workflow Step Instance "Processing" Status

$
0
0
Hi,

I am stuck with few Workflow Step Instances in Processing State which is causing issue in other approvals what should I do logically?
1. Change the value as Inactive/Ignore for the future steps to be error free.
2. Delete that particular Workflow Step Instance (may cause a irregularity in connected Response)

and anyone has faced any similar issue and if yes how did you rectify such situations.

6he3qqck1yis.png

Create a Custom workflow response to send notification mail

$
0
0
I want to send a notification mail to the user stating that the "request is approved". I'm using nav 2017.I'm thinking that creating a similar response like SendApprovalRequestForApprovalCode in codeunit 1521(Workflow response handling) with reverse functionality will help. Please give me suggestions.


Example:
User1 created a Purchase order and sends request to approver(User2). A notification Mail sent to User2
User2 Checks the mail and he approved. Now I want to send a mail to user1 with mail body ' Request is approved'.

How to reclass items which are trapped in "In Transit" location

$
0
0
Dear Mibuso Forum,

I have been facing for the items which are trapped in "In Transit" location.
We have got report from our client, that they found their Transfer Order Receipt was gone. After some checkings, we found that Transfer Order was deleted already, Transfer Shipment was posted first, it affected those items were parked in "In Transit" location, but never can be posted for the receipt because its Trasnfer Order was deleted.
my assumption is, it might because user canceled when the posting receipt was in process, and Nav failed to get the roll back, thus it ended up with "Transfer Order" was deleted, while "Transfer Receipt" was not created yet.

Kindly please, if you ever have the same case, or might share your idea, how to release out those items from "In Transit" location, as I have tried to do Item Reclass, but Nav could not process for item in "In Transit" location.

this case uses NAV 2013R2 version.

Thanks for y'all help.

Indriani

Assembly Order Starting Date Is earlier than Current Date

$
0
0
Dear All,

When i am creating an assembly Order, The Starting and Ending Date that is being Suggested is automatically generated as one day before current date.
I don't want this to happen as i want the Current Date to be same as the Starting and Ending Date.

Please Advise.

Best
HAYAN

Upload Multiple Files from RTC

$
0
0
Recently, I was given task to be able to upload multiple files onto Navision server instance from RTC(2009 R2). I found it to be very interesting because Navision(2009 R2) doesn't provide inbuilt functionality. Had some problems because of 3tier atchitecture. Though I'd share with others in case anyone needed to do the same. Off-course you can improve this with your own ideas. Here is how I did this:

FYI.. I used DotNet classes.
    PROCEDURE UploadMultipleFiles@1000000019(UploadToPath@1000000001 : Text[250];FileFilter@1000000005 : Text[30]) : Boolean;
    VAR
      BLOBRef@1000000002 : TEMPORARY Record 99008535;
      Strings@1000000004 : Codeunit 50020;
      Enumerator@1000000010 : DotNet "'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.System.Collections.IEnumerator" RUNONCLIENT;
      ArrayList@1000000011 : DotNet "'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.System.Collections.ArrayList" RUNONCLIENT;
      FileDialog@1000000007 : DotNet "'System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.System.Windows.Forms.OpenFileDialog" RUNONCLIENT;
      DialogResult@1000000006 : DotNet "'System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.System.Windows.Forms.DialogResult" RUNONCLIENT;
      FileInfo@1000000016 : DotNet "'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.System.IO.FileInfo" RUNONCLIENT;
      SelectedFile@1000000012 : Text[1024];
      ToFilePath@1000000000 : Text[1024];
      "3TierMgt"@1000000015 : Codeunit 419;
      ClientTempFileName@1000000017 : Text[1024];
      FilesUploaded@1000000009 : Integer;
    BEGIN
      // ************************************************  Parameter definations  ********************************************************
      // UploadToPath -> Path of the folder in which user want to upload the file
      // FileFilter   -> Examples All Files (*.*)|*.*, Text Files (*.txt)|*.txt, Excel (*.xl*)|*.xl* etc
      // ************************************************      Description        ********************************************************
      // This function open the file selector and user select the file that get uploaded into temporay BLOB field
      // blob then gets exported to UploadToPath with same file name as selected
      // *********************************************************************************************************************************
      FileDialog := FileDialog.OpenFileDialog();
      FileDialog.Multiselect := TRUE;
      FileDialog.Title := 'Select multiple files';
      FileDialog.Filter := FileFilter;

      // Show multiple file selector
      DialogResult := FileDialog.ShowDialog();
      ArrayList := ArrayList.ArrayList();
      ArrayList.AddRange(FileDialog.FileNames());
      Enumerator := ArrayList.GetEnumerator();

      WHILE Enumerator.MoveNext() DO BEGIN

        CLEAR(BLOBRef.Blob);
        CLEAR(FileInStream);
        CLEAR(FileOutStream);
        CLEAR(FileInfo);

        SelectedFile := Enumerator.Current;   // Select Current File
        FileInfo := FileInfo.FileInfo(SelectedFile);    //Fileinfo is DotNet object
        // When doing silent upload(means no navision file selector), then file has to be in RTC's temp folder
        ClientTempFileName := "3TierMgt".ClientTempFileName('',Strings.TokenFromEnd(SelectedFile,'.'));
        FileInfo.CopyTo(ClientTempFileName);

        // MagicPath allow to hide selector dialog forUPLOADINTOSTREAM
        IF UPLOADINTOSTREAM('', "3TierMgt".Magicpath(), '', ClientTempFileName, FileInStream) THEN BEGIN
          // Create the drop file path
          ToFilePath := STRSUBSTNO('%1\%2',UploadToPath,FileInfo.Name);

          BLOBRef.Blob.CREATEOUTSTREAM(FileOutStream);
          COPYSTREAM(FileOutStream,FileInStream);
          BLOBRef.Blob.EXPORT(ToFilePath);  // Not wrapping in IF condition because I want it to throw descriptive error. e.g permissions
        END;
        FilesUploaded += 1;
        // Removing the temp file
        FileInfo := FileInfo.FileInfo(ClientTempFileName);
        FileInfo.Delete();
      END;
      IF (FilesUploaded>0) AND GUIALLOWED THEN BEGIN
        MESSAGE('%1 files uploaded out of %2',FilesUploaded,ArrayList.Count);
        EXIT(TRUE);
      END;
    END;



Variable UploadToPath contains path to shared folder on server in my case. Found it to be easiest. In case you need to drop the file on filesystem on server then I think you will have to receive the file into temp folder on server also and then move the file into desired folder. Didn't try this bit myself.

Auto populate data in a field on a page.

$
0
0
I have a table with the following fields;
fields
{
field(1; "Document Nos."; Code[20])
{
}
field(2; Employee; Code[10])
{
TableRelation = Employee;
}
field(3; "Pay Code"; Code[10])
{

}
field(4; Currency; Code[10])
{

}
field(5; Amount; Decimal)
{

}
field(6; "Posting Date"; Date)
{

}
field(7; "Employee Name"; Text[50])
{

}
}

The Employee field is a lookup to the Employee table. Notice the field Employee Name (field 7)
Once the user selects an Employee from the Lookup, I want the Employee name to populate with the value of Employee Name from the Record user selected in the Employee (field 2)

I am omitting the code for the Card Page for this table as it is straightforward. Just has the same amount of fields that are in the table I posted above.

I look for a hint as to how do I go about achieving this.

Thanks a lot in advance for the help.

NAV 2017 Excel Buffer Header/Footer

$
0
0
Hello everybody,
are there any possibilites to add Header or Footer Information via Excel Buffer to an exported Excel?

Theres a function in Table 370, CreateBookAndOpenExcel, Parameter ReportHeader. But thats only a centered Report Header. I need a left and a right header.
Are there possibilities? Tips and tricks?

Further I have to set a page margin, no clue how to do this...

Thanks for your help.
BKR

NAV - CRM integration not working

$
0
0
Hi, I have NAV 2018 On Premise and Dynamics 365 for Sales and I'm trying to integrate these two systems.

The NAV to CRM integration works like a charm out of the box but I can't get CRM to NAV to work.

To be honest I don't know where to find any additional info to give you. I wen't through the wizard to set this up and everything looks fine and I can't find any errors, I have tried to go into coupled customer in NAV and syncronize it manually using "Get data update from Dynamics 365 for Sales", have tried to run the sync job manually.

Does anyone have a clue what could be the problem?

Posting Date Issue for Internal Batch Job (Adjust Cost - Item Entries)

$
0
0
Dear Sir,

The End Users are restricted through Allow Posting From & Allow Posting To in User Setup Table. The Automatic Cost Posting is ticked in Inventory Setup Master Table. For this reason (?) sometimes Users are facing the error message like ...06-06-2019 is not within the range of posting dates for your company. while posting any Item related Transaction.

The System is trying to post any cost but can't do the same due to Allow Posting From & Allow Posting To restrictions in User Setup Table.

I just want that system should allow those transactions which are happening internally (system generated entries).

Please suggest your best!

Thanks,
Navuser1

Consuming SOAP webservice from AL language

$
0
0
Hey,

i started do develope an app for business central cloud. And need to consume a external soap webservice. i could not find any useful websites on how to consume the webservice from AL. Is there any guides that shows how to do it? that would be big help. thanks

Overhead Applied Account Error on PI Posting

$
0
0
Hi,
When trying to post a Purchase invoice then below mentioned error pops up, but not for all purchase invoices.
Microsoft Dynamics NAV

Overhead Applied Account must have a value in General Posting Setup: Gen. Bus. Posting Group=DOM, Gen. Prod. Posting Group=IPAD. It cannot be zero or empty.
OK

As per my understading Indirect Cost % value on Purchase line gets updated for some items, due to that it searches for Overhead Applied Account.

Any idea, how and why it gets updated.

Thanks in Advance

NAV 2017 Authorisations

$
0
0
Hi, my background is in NAV 2009 so im a bit new to NAV2017 features such as authorisations. I'm being told by our previous support partner that only one user can by "authorisations administrator" which makes sense. ... however apparently this also means that only one user can see the Approval entries against any given document ? meaning we have to switch users constantly if anyone else wanted to see the approval entries ? I agree the users shouldn't need to view these entries too often but in their current process they do. Is this standard functionality to limit this to one user ?

TDS Calculation Problem

$
0
0
Dear All,

I am using MS Dynamics 2016 CU43 and find a issue when I have created a Purchase Invoice for foreign vendor my TDS is not calculating correct figure.

In TDS Setup I have given 20% rate of TDS % and 4% rate of eShess % and 2% rate of SHE Cess %. In General Ledger setup TDS rounding is 1.00.

I have given Currency Code : Pound (Rate is 91.92)

When I am doing Preview posting TDS Amount is wrong calculate. Please help.


i06h963ptub5.png

czex1jzqhemj.png
1fmgdiwhjwld.png
ncxnzvzwoof3.png
lajtt3e9e7w7.png




Regards,

Integer table position in report?

$
0
0
in report how position of integer table affects report
in sales invoice report 206 we add integer table after sales invoice header why we not put it on the top of data set and what would be it's effect
thank you

Stockkeeping Unit within Branch

$
0
0
Hi Experts,

I was trying to create and stock-keeping unit between the branch, the system (NAV-2016 IN) is throwing an error. below is the case.
Stockkeeping created for - Location From "A" TO location "B", but vice-versa created from Location "B" to Location "A", then the system (NAV 2016 IN) is not allowing the same.

Kindly advise ASAP.

Thanks

Encoding of UTF-8 vs UTF8-BOM

$
0
0
We have just gone live with NAV 2016 and we are creating a bunch of xml files using DotNet XMLDoc (XMLDoc := XMLDoc.XmlDocument;). Then I am using the XMLDocMgt codeunit to add nodes etc... In the end I am calling XMLDoc.Save to save the document which then is ftp'd to our website.

The problem is that these files encode in UTF-8-BOM not UTF-8. My declaration for all of these files is: <?xml version="1.0" encoding="UTF-8"?>. Turns out UTF-8-BOM doesn't work so well with our website. How can I force this to be UTF-8 and why is it choosing UTF-8-BOM?

One fix might be to change the encoding after the fact but not sure how to do that yet.
Viewing all 10062 articles
Browse latest View live


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