HOW TO load xml from a file in C/AL

In the following example we are going to: open a file, create an InStream object, create an XmlDocument using the DotNet component and load the xml from the InStream.

This example requires that you create the following variables:

Name DataType Subtype
TestFile File
Istream InStream
XmlDoc DotNet
System.Xml.XmlDocument.'System.Xml, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'

HOW TO load xml from a file in C/AL?

TestFile.OPEN('C:\TestFolder\TestFile.xml');
TestFile.CREATEINSTREAM(Istream);

XmlDoc := XmlDoc.XmlDocument();
XmlDoc.Load(Istream);

Did my HOW TO help you? Leave a reply.

TableData does not exist

—————————
Microsoft Dynamics NAV Development Environment
—————————
TableData 404 does not exist.
—————————
OK
—————————

TableData 404 does not exist

TableData does not exist

Cause:
You are trying to import from a fob file an existing table in which was changed the value of the property DataPerCompany.

Solution:

  1. delete the Table with number as from the error message (in my case it was 404)
  2. import the object

Related Post: TableData 2000000001 does not exist.

Did my solution solve your problem? Leave a comment.

HOW TO display the Menu Bar in Mozilla Firefox

Since Mozilla Firefox 15 the menu bar is hidden by default, to display it you can press Alt.

If you’d like it to be always displayed follow these simple steps:

  1. Launch Mozilla Firefox
  2. right-click near the last tab
    Mozilla Firefox right-click near last tab

  3. check Menu Bar
    Mozilla Firefox Menu Bar

With the same steps you can display/hide different bars/toolbars: Navigation Toolbar, Bookmarks Toolbar, Add-on Bar
or
Customize… it.

Did my HOW TO help you? Leave a reply.

HOW TO display the Menu bar in Windows Internet Explorer (IE)

Since Windows Internet Explorer 7 the menu bar is hidden by default, to display it you can press Alt.

If you’d like it to be always displayed follow these simple steps:

  1. Launch IE
  2. press Alt to display the menu bar
  3. click View -> Toolbars
  4. check Menu bar
  5. check Lock the bars if you want lock the displayed bars

With the same steps you can display/hide different bars: Favorites bar, Command bar and Status bar.

For Systems Engineers:

It’s possible enable/disable the menu bar setting Local Computer Policy.
Run gpedit.msc and expand
Computer Configuration node to set the Policy for all users that use the computer
or
User Configuration node to set the Policy only for current user
Administrative Templates -> Windows Components -> Internet Explorer
Double-click
or
Right-click and select Edit
on Turn on menu bar by default, choose
Enabled to enable always displayed menu bar
or
Disabled/Not Configured to disable always displayed menu bar
then click OK.

For Network Administrators:

You can set the policy as above using Group Policy Management
Run gpmc.msc in the Domain Controller (DC) and
Create a GPO in this domain, and Link it here…
or
select an existing Group Policy Object (GPO), right-click and select Edit
in your
Forest
or
Organization Unit (Domain)
or
Site.

Did my HOW TO help you? Leave a reply.