web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Opening table using Hyperlink function in BC14

(0) ShareShare
ReportReport
Posted on by 67

Hi,

I have issue with opening table on web client on test server. I have to mention that everything works fine on my local computer.

URL starts with https://xxxx/navserverinstance ... but when I try to open table it converts to http://yyy/navserverinstance (in new tab).

Code for this opening was 

with ActiveSesstion do

                 if get(ServiceInstanceId(), SessionId()) then 

                      Hyperlink('http://' + "Server Computer Name" + '/' + "Server Instance Name" + '/?table=' + Format("Object ID"));
I have tried to avoid explicit naming of server name and used this code:
Hyperlink(GetUrl(ClientType::Web, CompanyName()ObjectType::Table, "Object ID"));
but I got the same (wrong) url.
Any ideas?
           
I have the same question (0)
  • Suggested answer
    Suresh Kulla Profile Picture
    50,251 Super User 2025 Season 2 on at

    Try this

    BaseUrlTxt := GetUrl(CLIENTTYPE::Current, CompanyName);

               if StrPos(BaseUrlTxt, '?') = 0 then

                   ViewFullTableURL := StrSubstNo('%1?table=%2', BaseUrlTxt, "Object ID")

               else

                   ViewFullTableURL := StrSubstNo('%1&table=%2', BaseUrlTxt, "Object ID");

  • Vojkan Profile Picture
    67 on at

    Thank you, but I don't want to harcode anything because this has to work on client server also.

  • Suggested answer
    keoma Profile Picture
    32,729 on at

    use ip adress instead.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,476

#2
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 789 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 719 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans