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

CAL Test Tool (NAV 2016) - Test Automation using the Client License

$
0
0

Testing NAV using the Client License is generally best practice.

Can someone confirm if next release of the NAV Test Tool, will run using the Client License?

(It appears to only run using the Developers 2016 License).


Thanks

attributes of XML in NAV 2015

$
0
0
Hi, i hope any can help me, i have the next situation:
I have a XML document, is an charge of Canceling, need obatain the attribute values of a element:
my xml is the next
<?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"&gt;
  <s:Body>
    <CancelaCFDResponse xmlns="http://cancelacfd.sat.gob.mx"&gt;
      <CancelaCFDResult Fecha="2016-01-18T16:13:25.1273627" RfcEmisor="CCO910614DN5">
        <Folios>
          <UUID>CE48E873-1409-4566-8619-0ACC449AD5E5</UUID>
          <EstatusUUID>201</EstatusUUID>
        </Folios>
        <Signature Id="SelloSAT" xmlns="http://www.w3.org/2000/09/xmldsig#"&gt;
          <SignedInfo>
            <CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315&quot; />
            <SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#hmac-sha512&quot; />
            <Reference URI="">
              <Transforms>
                <Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116"&gt;
                  <XPath>not(ancestor-or-self::*[local-name()='Signature'])</XPath>
                </Transform>
              </Transforms>
              <DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512&quot; />
              <DigestValue>rMD8d4QDZqyUHGWJz0flUQd1E27NsFBDosM6s++whMCjCW3dx92HTIQlvF2PFfNPnACwgkvksQ0C/7XpQ==</DigestValue>
            </Reference>
          </SignedInfo>
          <SignatureValue>0seP9bfry6PTwWXP9RsSs2+JCsI8o87ZHWtOix+1n76ZeA8NL1rWtQTr1BOEJ+Q0qezp3qyOYRl6l5AgxgEM8Q==</SignatureValu
          <KeyInfo>
            <KeyName>00001088800000016</KeyName>
            <KeyValue>
              <RSAKeyValue>
                <Modulus>xnL2zDPtH5jDsAZDTIfMqbKGrve+At8Kyx2EZvbfXbpK9uVExWS874oMelFzNq69/YqSReT3I7I8wr+joy5O7ouZH+4KWdIGp4Si6lHe0kntxzNmuuKyOPkJ9tMcntnFmQ4bfxFxlg/Ud2hCtuoy3j2xYkIXu5O4pGM98Nz8pAM=</Modulus>
                <Exponent>AQAB</Exponent>
              </RSAKeyValue>
            </KeyValue>
          </KeyInfo>
        </Signature>
      </CancelaCFDResult>
    </CancelaCFDResponse>
  </s:Body>
</s:Envelope>

I need obtain this
CancelaCFDResult Fecha="2016-01-18T16:13:25.1273627" RfcEmisor="CCO910614DN5"
and save into a text the Attribute 'FECHA', and in a second variable the 'RfcEmisor'.

i cant get the text of elements, i have this for read this but dont returnme those attributes:
      IF ISCLEAR(lautxmldocument) THEN
      CREATE(lautxmldocument,FALSE, TRUE);
      
      lautxmldocument.load(PathCFDI);
      lautxmlnodelist := lautxmldocument.getElementsByTagName('UUID');
      lautxmlnodelist2 := lautxmldocument.getElementsByTagName('EstatusUUID');
      lautxmlnode := lautxmlnodelist.nextNode;
      lautxmlnode2 := lautxmlnodelist2.nextNode;
      lautxmlnodelist3 := lautxmldocument.childNodes;
      FOR i := 0 TO lautxmlnodelist3.length() - 1 DO BEGIN
        lautatributo := lautxmlnodelist3.item(i);
        IF NOT ISCLEAR(lautatributo)THEN
          lautxmlatributo := lautatributo.getAttributeNode('Fecha');
        IF NOT ISCLEAR(lautxmlatributo) THEN
          tfecha := lautxmlatributo.value;
      END;

      tfecha:= lautatributo.nodeValue;
      tuuid := lautxmlnode.text;
      testatusuuid := lautxmlnode2.text;
      fechacancelacion := COPYSTR(tfecha,1, 19);
      testatusuuid := lautxmlnode2.text;
      "Date/Time Canceled" := fechacancelacion;
      "Fiscal Invoice Number PAC" := tuuid;
      "Date/Time Canceled" := fechacancelacion;
      IF testatusuuid = '201' THEN BEGIN
        "Electronic Document Status" := "Electronic Document Status"::Canceled;
        "Error Code" := lautxmlnode2.text;
        "Error Description" := 'Cancelado';
      END;[s][s][/s][/s]
Any idea :'(

Close income statement with Additional Reporting Currency does not automatically post the batch

$
0
0
Hi

My user was closing their income statement with Additional Reporting Currency. The thing was that even though the warning message informing the user that using the Additional Reporting Currency will result in the batch being posted automatically, the batch was still created in the Journal accordingly.

Does anyone have the same issue with running the Additional Reporting Currency? My experience is that the batch will usually post itself unless there is any customization.

Thank you


Create Filter For Calculation in Report

$
0
0
Hi, We just moved to NAV 2015 and I've been using the Report Builder to create reports. It's working very well. I recently created a report that has three columns Qtyonhand and QtyonOrder which come from the Item card - then in the third is an expression that subtracts QtyOnOrder from QtyonHand to show QtyShort. Our users want to run the report two ways - one with all rows and then with only the rows with the QtyShort >0. Is this possible? If so, do I add it as a parameter in Report Builder or option/request page? Then how do I pass that to the report so the expression to hide =IIF(SUM(Fields!ID.Value,"YourGroupName")>=1,True,False) runs? Maybe there is a better way? We have this in a PowerPivot report with two sheets one for all and one for the short only and on print, it prints both sheets, but management wanted it in NAV. I've got the first part done, but stuck on the second part.
Thanks for the help.

How can I install the certificates in an Azure server to access Dynamics NAV from a mobile?

$
0
0
Hi all,

Somebody know how can i install the certificates in an Azure server to let me access to Dynamics NAV from Iphone, for example? Could somebody tell me documentation or power shell script or something like this?

King regards.

dotnet interop : serialize

$
0
0
Hello all ! :)

I'm just making an app that will contact a JSON webservice and return an odject to NAV 2013 R2.

But an issue is occuring when i try to use it in NAV : unable to serialize an instance of the object .NET Framework....

My assembly is in the GAC, and in the Add-in folder, signed.

I don't have this issue while trying to debug in VS2012.

I think the problem comes from my NAV C/AL Code... but can't find a solution :(

I hope someone will be able to help me :)

I'm using a dotnet component which one returns a collection of spécific objects created in the dev :

Objects :

public class Trade
{
public string time { get; set; }
public int type { get; set; }
public string price { get; set; }
public string amount { get; set; }
public string total { get; set; }
}

public class Trades
{
public int count { get; set; }
public List<Trade> trades { get; set; }
//public TradeList trades{get;set;}
public Trade GetTradeItem(int P_Index)
{
return trades[P_Index];
}
}


Method that return the Trade collection object after JSON serialization :

public class Stat
{
public Trades GetMarket()
{
try
{
string url = GetURL();
WebRequest request = WebRequest.Create(url);
request.Method = "GET";
WebResponse ws = request.GetResponse();

Stream s = ws.GetResponseStream();

DataContractJsonSerializer jsonSerializer = new DataContractJsonSerializer(typeof(Trades));
Trades retour = (Trades)jsonSerializer.ReadObject(s);

//DataContractJsonSerializer jsonSerializer = new DataContractJsonSerializer(typeof(StatItem));
//StatItem retour = (StatItem)jsonSerializer.ReadObject(s);

return retour;
}
************************ (others methods not described here) *************
}
}

NAV Code :

/////// Vars /////
Stat ==> My C# Stat Class
Item ==> My C# Trade Class
ListItem ==> My C# Trades Class

//// End var ////

Stat := Stat.Stat;
Item := Item.Trade;
ListItem := ListItem.Trades;


ListItem := Stat.GetMarket;
FOR I:=0 TO (ListItem.count-1) DO
BEGIN
Item := ListItem.GetTradeItem(I);
MESSAGE(Item.amount);
END;


But always receive the same error message :

Unable to serialize an instance of this .NET Framework object : Assembly : tradetest ......... , type Tradetest.Trades

Many thanks to my future helpers :)

PS : apologize for my english... it could be better :)

User card page - You have not been granted permission to perform current activity

$
0
0
Hello,

I read that the session table can only be accessed from NAV if you are SUPER.
(https://community.dynamics.com/nav/f/34/t/141815?pi51428=1#responses)

I wonder if something similar can be the case for accessing the user card?

My scenario is in NAV2013R2.

I go to the users list page and from there I try to access another user's card. Then I get the error:

You have not been granted permission to perform the current activity.
Page Edit - User Card must close.


The user is not SUPER, but among others it has the BASIC that includes read permission to the user table (2000000120). It is sysadmin in SQL.

I debug it and it cracks in codeunit 9801 Identity Management, in the following function:
GetWebServiceExpiryDate(UserSecurityID : GUID) ExpiryDate : DateTime
IF NOT UserAccountHelper.TryGetWebServicesKey(UserSecurityID,Key,ExpiryDate) THEN
ERROR(GETLASTERRORTEXT);

but I don't know what happens inside that TryGetWebServicesKey function.

Any advice on this?

Thanks,

Tomas

GST Sales Entry Table has duplicate records

$
0
0
When a sales order or invoice is posted there are two GST tables updated
- GST Entries table which stores the summary details of the posted entries for gst
- GST Sales Entries table which stores the entry record of the posted gst entries.

These should be equal entries. i.e if there are 3 lines on the posted document then there are 3 gst entries and 3 gst sales entries.

Currently the data is being multiplied by the number of lines in the GST Sales Entries table. i.e if there are 3 lines in the gst entries then there are 9 gst sales line entries.

Is there a Hot Fix for this issue.

I have noted that there are some discussions about this same problem previously but cannot find the results.
- NAV2013R2 GST Purchase/Sales Entry

Thanks for your help in advance.
Glenda

How to avoid zeros in orderlines (quantity, unit price and Amount) when using word as invoicereport

$
0
0
When i make a commentline as an orderline (no itemno ) the order line looks fine.
But when i Invoice it and use word as report generator there are zeros in the line that doesn't look good. the report is 1306.
When i use the RDLC standard there are no problem regarding this issue.


Rebuilding "Dimension Set Tree Node" table

$
0
0
As I have read from other topics, it is possible to build the "Dimension Set Entry" table by looping through "Dimension Set Tree Node" table. But what if the "Dimension Set Tree Node" gets corrupted or messed up by somebody deleting records from it...

This is what happened and after spending quit a lot of time with it, I found out that you can delete all records from the "Dimension Set Tree Node" and NAV will build it up again in the long run - when a dimension set is touched (ie. opening the dimensions of a Gen. Journal Line) a new dimension set entries will be created in both "Dimension Set Entry" and "Dimension Set Tree Node" tables. Old Dimension Set Entry records (duplicates) will remain in the "Dimension Set Entry" table - this is not a good thing, even though I do not know whether this causes any harm.

It would be nice to be able to rebuild the "Dimension Set Tree Node" table based on the "Dimension Set Entry" records but it looks to be a hairy thing to do... comments, anyone?

Proper Setup Navision 2013 R2

$
0
0
Hello NAV Users,

Im currently trying to setup Navision 2013 R2 Three Tier Architecture.
Credentials setup is NavUserPassword

When im doing this credentials in Two Tier Archi, the NAV is working, but when im trying to do the three tier
navision can't connect.

My Question, what is the proper setup for NAV 2013 R2 using three tier and NavUserPassword?

Please help me guys!

Thanks!

Jodel Pascual

Select Company

$
0
0
Hi All,

do you think we can make a POP up when user log’s on to NAV that will show us available companies and have us select the company we want to work in?

Note : Client don't want to change company by "select company..." option. He ask for POP up company list every time when It open NAV.

Please share your views.

Thanks,
Ravi Shah

Demo installation of NAV 2015

$
0
0
Dear all,

I’ve installed Demo of NAV 2015 in Windows 7 64 bit OS. I can connect the Database through RTC client but can’t connect the same through Development Environment.

It gives the following error msg..
Microsoft Dynamics NAV Development Environment
The following SQL Server error or errors occurred: 18456,"28000",[Microsoft][SQL Server Native Client 11.0][SQL Server]Login failed for user 'Computer Name\WindowsLogin'.
4060,"42000",[Microsoft][SQL Server Native Client 11.0][SQL Server]Cannot open database "Demo Database NAV (8-0)" requested by the login. The login failed.
OK

What is the reason ?

REMAINING AMOUNT 0.0002 AFTER APPLYING ENTRIES IN €

$
0
0
Hello,

I have a vendor payment which is still open and the remaining amount has the value 0.0002 but the remaining amount LCY is 0.
The invoices are in € and the payment also. The LCY is CHF.
In the vendor entries I see 0 for the remaining amount and remaining LCY value but in the table fields Windows I can see that there is a value of 0.0002 in the remaining amount.

Does anybody know how to avoid this?

Thank you

sg.

NAV 2016 download will not open

$
0
0
I have downloaded the version of NAV 2016 4 times now, each time it will not open - after about 5 minutes I get a message saying the file may be damaged, can anyone help please?

SAVEASPDF Function (Report)

$
0
0
Hi,

I am using the Report.SAVEASPDF Function in NAV 2015, and I am experiencing some problems.
When saving documents that spans more than one page, I get extra "blank" pages.
An example: A Posted Sales Invoice with 2 pages ends up being 4 pages. Pages 2 and 4 only containing Header and Footer information.
Same problem occurs choosing Print ==> PDF (Ctrl + Shift + P) directly from the Posted Sales Invoice Page.

When printing directly to a printer (or a PDF Creator (driver)) or choosing Preview – no problems, only the two pages I was expecting.

Anybody with similar problems?


Greatings
Torben Christensen

Disable Fokus on Captions in Webclient

$
0
0
Hi!
Our customer updated from NAV 2013 to NAV 2013R2.
They decided to go for R2 mainly because of the improved webclient.
Now, one thing is bothering the users:
If you TAB through the fields, the Captions are getting the focus which they did'n in NAV 2013 (I think due to the tooltips).

a) Is there a chance to Switch of focus for captions?
b) Can one let users skip certain fields when TABing?

Thank you for your reply.

Prevent CUEs from being shown in the Navigation Pane

$
0
0
Hi!
Does anybody know how to prevent Cues in the Role Center from being shown in the navigation pane?
We want to Keep the Navigation Area simple and do not Need all the entries.
Thank you

Found the solution "The resource for control add-in "Microsoft.Dynamics.Nav.Client.***PublicKeyToken

$
0
0
"The resource for control add-in "Microsoft.Dynamics.Nav.Client.***PublicKeyToken=***" is not valid."

I have an object that uses a dll. The object did compile, but the dll on the page did not work.
When I did delete the Client Add-in record, in NAV (containing a blob, with , I suppose, the wrong content), and created the Client-Add-in record again, the page did work.

NAV 2016 crashes when page contains Notes

$
0
0
Hi all,
When page contains Notes, RTC client crashes when run this page.
NAV 9.00.43402.
Viewing all 10069 articles
Browse latest View live


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