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

Day rates in different countries?

$
0
0
Hi Guys,

Does anyone know the market rate for senior consultants around the world? How much do the biggest consultancies in your market bill their end-users by hour or by day?

In Denmark I know of consultancies who charge 1100DKK, 1400DKK and even 1600DKK per hour.

In the UK, the dayrate is between 700-950 GBP.

Does anyone have info on USA/Switzerland/UAE/Germany?

Let's bring in the intel! Go go go! :)

BC14 Webclient cannot open card page from list

$
0
0
I've a custom page list (Car list). When I move mouse cursor on field primary key (Car No.) tip show "Open record XXX1 in new window" but when I click on it nothing happens.
In page list property "CardPageID" was set to correspondent card page id.
What could be the problem?

Option and Enum.

$
0
0
Hi experts,
I would like to ask about the relation between Option and Enum.
If my existing customized table got the option field, could I change it to enum field?
May I know the existing option data will be lost?

Thanks.

Report Generating locale Language, field formating

$
0
0
Hello,

I'm facing a problem that reports are generated and printed out with wrong locale Language. This results, that Numbers and Dates are printed in wrong locale format.

System environment:
Windows Server 2012 R2
German installation
Navision 2018 German

My Problem is, that I generate Report Print Outs as PDF by a Job Que after posting of Document was done.
Same standard Report is generated with German formating, which is wanted, and on another day in English formating.
This happend by the same User.

Default Language of Service Tier is set to DE-de. Users are logged in with German Language. User Personalisation is set to German.

What can I check or set up to get always German formatting?

Kind Regards
Daniel

Modal dialo BC14 Webclient

$
0
0
Sometimes, even with different browsers, when I register a purchase invoice and a problem occurs it is not possible to close the error window because the one that shows the progress of the registration remains in the foreground and does not click on the Ok button of the window with error.
Anyone know how to fix or work around the problem?

WebService consuming from a temporay table

$
0
0
Hi everyone,

I've created a page, which its source table is temporary. The source table is one created by myself. The page is this:
m196595z3y9p.png

And the oData url is filtered, this way:

http://xxxxxxxxxx:7068/DESA/ODataV4/Company('ZZZZ EUROPE S.L.U.')/AppItemPrice?$filter=Insize_User eq 'FI159'

In the onOpenPage(also tried in onInit) of the page, I call to a function that creates entries on the table.
OnInit()
total := COUNTAPPROX;;
lUser := GETFILTER(Insize_User);
RESET;
lBasemetaFunc.LoadAppItemPrice(lUser);

OnOpenPage()
// lUser := GETFILTER(Insize_User);
// RESET;
// lBasemetaFunc.LoadAppItemPrice(lUser);

But when I add the URL into the brower, I'm not getting any result.



Any hint about this??

THbak you all, hope you are all healthy!

VSC with strange error message

$
0
0
Hello
I'm on BC16 VSC 1.45.1
Have some code in my workspace - no error
And suddenly VSC finds an error on this line (that was in the workspace since a long time without error) :
if ProjTrace_FolderList.RunModal() = Action::LookupOK then begin
The error is :
{
"resource": "xxx",
"owner": "_generated_diagnostic_collection_name_#0",
"code": "AL0151",
"severity": 8,
"message": "Expression must be an Option",
"source": "AL",
"startLineNumber": 48,
"startColumn": 54,
"endLineNumber": 48,
"endColumn": 60
}
Its not the first time that there are strange behaviours of VSC
Does anyone have any Idea how I can get rid of this ?
Thanks

Error in event log for Business central 2020 Wave 1

$
0
0
I'm getting the following error/warning in event log.
Unable to find defining app group for table with ID 2000000120, when initializing query from app group 2.

Anybody know what it is?



Open Image using Temp Blob codeunit

$
0
0
Hi
I have code on a page in NAV that uses the TempBlob record to open an image.

CALCFIELDS(Image);
IF Image.HASVALUE THEN BEGIN
FileName := AppSetup."Temp Image Path" + "Document No." + "Image Extension";
TempBlob.Blob := Image;
FileName := FileManagement.BLOBExport(TempBlob,FileName,FALSE);
HYPERLINK(FileName);
END;


I need to refactor this to work in Business central. How can I do this using the tempBlob codeunit?

Thanks

JSON Management Codeunit

$
0
0
Hello,

Up to this day I was using Newtonsoft.Json DotNet variables, but the problem is, that in AL it is not allowed to use DotNet variables.
There is a codeunit 5459 JSON Management available which has some external methods that I can use.

I want to store incoming JSON in the table similar to TB1236: JSON Buffer. I had to modify JSON Buffer's ReadFromText function a bit, so I would like to use some functions from JSON Management instead.
Here is the code from JSONBuffer.
ReadFromText(JsonText: Text)
JSONTextReader := JSONTextReader.JsonTextReader(StringReader.StringReader(JSONText));
IF JSONTextReader.Read THEN
  REPEAT
    INIT;
    "Entry No." += 1;
    Depth := JSONTextReader.Depth;
    TokenType := JSONTextReader.TokenType;
    "Token type" := TokenType;
    IF ISNULL(JSONTextReader.Value) THEN
      Value := ''
    ELSE
      SetValueWithoutModifying(FORMAT(JSONTextReader.Value));
    IF ISNULL(JSONTextReader.ValueType) THEN
      "Value Type" := ''
    ELSE
      "Value Type" := FORMAT(JSONTextReader.ValueType);
    Path := JSONTextReader.Path;
    INSERT;
  UNTIL NOT JSONTextReader.Read;
I am not quite sure if I can modify that code to get the same result with JSON Management Codeunit.
I know I can use given JSON Buffer Table, but I would like to know if it's possible to get the same result by using the codeunit.

So my question is: Is it possible? And if yes, then how?

Thank you for your time. ;)

Imoprt from csv file not creating a balancing line

$
0
0
hi guys, I am writing an import but its only creating one balancing line for my journal whereas I want it to create balancing line for each document No in the import. Here's my code. Not sure what I'm doing wrong?

WITH GenJnlLine DO BEGIN
SETRANGE("Journal Template Name",JournalTemplateName);
SETRANGE("Journal Batch Name",JournalBatchName);
SETRANGE("Line No.",FromLineNo,LineNo);
IF FINDSET THEN BEGIN
CLEAR(TempDimCode);
REPEAT
IF (xGenJnlLine."Source Line No." > 0) AND (NoOfDocLines = xGenJnlLine."Source Line No.") THEN BEGIN
InsertBalLine(xGenJnlLine,-Amt,-AmtLCY);
CLEAR(Amt);
CLEAR(AmtLCY);
CLEAR(NoOfDocLines);
END;
xGenJnlLine := GenJnlLine;
Amt += Amount;
AmtLCY += "Amount (LCY)";
NoOfDocLines += 1;
UNTIL NEXT = 0;
InsertBalLine(xGenJnlLine,-Amt,-AmtLCY);
GenJnlLine.MODIFYALL("Creditor No.",'');
GenJnlLine.MODIFYALL("Source Line No.",0);
END;
SETRANGE(Amount,0.0);
DELETEALL(TRUE);
END;

How to call the SetColumnWidth function from the Excel Buffer

$
0
0
Hi all,

May I know how to call the SetColumnWidth function from the Excel Buffer in Business Central? the ColName how to verify?

Thank you.

The remote server returned an error (403) forbidden error

$
0
0
Hi
Getting this error "The remote server returned an error (403) forbidden error " while calling webservice from third party application

Blog Series Part 7: Creating Sales Document in AL for MSDYN365BC

$
0
0
In this blog we will discuss about creating Auto Sales Document from the Data present in the Excel Sheet. View article...

Enable Personalize in Mordern Client for Business Central MSDYN365BC

$
0
0
Hi Readers, While working on morden client in MSDYN365BC in Spring release, I was unable to Personalize the page. Personalize means we can make various changes, such as move or hide fields, columns, actions, and entire parts, and add new fields. Most personalization must be done by first activating the Personalizing banner, but very simple adjustments, such… Read more

Link subform to subform

$
0
0
Hi to all,

I want to link a subform to a subform by using the property providerID.
Both subforms are used for data entry.

So i've created the following objects :

Maintable.al
table 50132 "Main Table"
{
    Caption = 'Main';
    fields
    {
        field(2; "No."; Code[20])
        {
            Caption = 'No.';
            DataClassification = CustomerContent;
        }
        field(3; "Description"; Text[100])
        {
            Caption = 'Description';
            DataClassification = CustomerContent;
        }
        field(4; "Description 2"; Text[50])
        {
            Caption = 'Description 2';
            DataClassification = CustomerContent;
        }
    }
    keys
    {
        key(Key1; "No.")
        {
            Clustered = true;
        }
    }
}

Subtable1.al
table 50134 "Sub 1 Table"
{
    Caption = 'Sub1';
    fields
    {
        field(2; "Document No."; Code[20])
        {
            DataClassification = CustomerContent;
            Caption = 'Document No.';
        }
        field(3; "Line No."; Integer)
        {
            DataClassification = CustomerContent;
            Caption = 'Line No.';
        }
        field(22; Description; Text[100])
        {
            DataClassification = CustomerContent;
            Caption = 'Description';
        }
        field(23; "Description 2"; Text[100])
        {
            DataClassification = CustomerContent;
            Caption = 'Description';
        }
    }

    keys
    {
        key(Key1; "Document No.", "Line No.")
        {
            Clustered = true;
        }

    }
}

Subtable2.al
table 50137 "Sub 2 Table"
{
    Caption = 'SUB2';
    
    fields
    {
        field(2; "Document No."; Code[20])
        {
            Caption = 'Document No.';
        }
        field(3; "Document Line No."; Integer)
        {
            Caption = 'Document Line No.';
        }
        field(4; "Line No."; Integer)
        {
            Caption = 'Line No.';
        }

        field(70; Description; Text[100])
        {
            DataClassification = CustomerContent;
            Caption = 'Description';
        }
        field(71; "Description 2"; Text[100])
        {
            DataClassification = CustomerContent;
            Caption = 'Description';
        }
    }

    keys
    {
        key(Key1; "Document No.", "Document Line No.", "Line No.")
        {
            Clustered = true;
        }
    }
}

MainPage.al
page 50133 "Main Page"
{
    Caption = 'Main PAge';
    PageType = Document;
    RefreshOnActivate = true;
    SourceTable = "Main Table";

    layout
    {
        area(content)
        {
            group(General)
            {
                Caption = 'General';
                field("No."; "No.")
                {
                    ApplicationArea = All;
                }
                field("Description"; "Description")
                {
                    ApplicationArea = All;
                    ShowMandatory = true;
                }
                field("Description 2"; "Description 2")
                {
                    ApplicationArea = All;
                    ShowMandatory = true;
                }
            }
            part(Sub1Page; "Sub 1 Page")
            {
                ApplicationArea = All;
                SubPageLink = "Document No." = FIELD("No.");
                UpdatePropagation = Both;
            }
            part(Sub2Page; "Sub 2 Page")
            {
                                ApplicationArea = All;
                Provider = Sub1Page;
                SubPageLink = "Document No." = FIELD("Document No."),
                               "Document Line No." = FIELD("Line No.");
                UpdatePropagation = Both;
            }           
        }
    }
}

Sub1Page.al
page 50136 "Sub 1 Page"
{
    AutoSplitKey = true;
    Caption = 'Lines';
    //DelayedInsert = true;
    LinksAllowed = false;
    MultipleNewLines = true;
    PageType = ListPart;
    SourceTable = "Sub 1 Table";

    layout
    {
        area(content)
        {
            repeater(Control1)
            {
                ShowCaption = false;
                field("Document No."; "Document No.")
                {
                    ApplicationArea = All;
                }
                field("Line No."; "Line No.")
                {
                    ApplicationArea = All;
                }
                field(Description; Description)
                {
                    ApplicationArea = All;
                }
                field("Description 2"; "Description 2")
                {
                    ApplicationArea = All;
                }
            }
        }
    }
}

Sub2Page.al
page 50139 "Sub 2 Page"
{
    AutoSplitKey = true;
    Caption = 'SubPage2';
    DelayedInsert = true;
    LinksAllowed = false;
    MultipleNewLines = true;
    PageType = ListPart;
    SourceTable = "Sub 2 Table";

    layout
    {
        area(content)
        {
            repeater(Control1)
            {
                ShowCaption = false;

                field("Document No."; "Document No.")
                {
                    ApplicationArea = All;
                }
                field("Line No."; "Line No.")
                {
                    ApplicationArea = All;
                }
                field("document Line No."; "document Line No.")
                {
                    ApplicationArea = All;
                }
                field(Description; Description)
                {
                    ApplicationArea = All;
                }
                field("Description 2"; "Description 2")
                {
                    ApplicationArea = All;
                }
            }
        }
    }
}

I have two major problems. When the delayedinsert = false on the first subpage (as in the code above), i receive a page notification

mf7jcc0b14iv.png

If i set the property delayedinsert = true on the first subpage, and the focus is set to the second subform, the line no. is not yet initialized, so i lose the link between those two tables

g0rfok7c3mwa.png

Hopefully someone has a solution for this.

Thanks in advance

Kind regards

Incoming Documents

$
0
0
Hi, I have a client running Dynamics NAV 2016. They create a Purchase Invoice, and then in the top ribbon select the option 'Create from file' to then link the invoice to the saved file. My client has multiple companies in the same database, and when a particular user who has the same permissions for all companies does this in one company it works well, but when they try it in the other company, then it doesnt work.

Any idea what settings may be different for the companies? The company that doesnt work has the OCR test setup, but they are not using that feature, where the other company doesnt. Would this be the cause?

Thanks,
Malcolm

LS Nav 2016 Web Request

$
0
0
Hi Expert,

Has anyone tried to create a new Web Request that you can use it successfully in the POS? I tried creating a new Web Request, but whenever I use it and send request, it's always throwing an error. Root element is missing. The web request that I created is I copied it with MM_CONTACT_BLOCK. Has anyone encountered this so far? Sorry I'm kinda new with Web Service.

Thank you,
Marc

Can we upgrade Dynamics NAV 2016 to BC 150.

$
0
0
Hi all,

Can we upgrade Dynamics NAV 2016 to Business Central wave 2.

If yes please explain the process in brief.

Thanks in advance,
Srinivas.

Looking for a VS code extension

$
0
0
Hi Everyone,

is there a VS code extension that lists the object type and object ID of the current extension being developed ?. Object Browser is great but I cannot see a way that it looks into the current project ?

Kind Regards,

Dean.
Viewing all 10032 articles
Browse latest View live


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