Skip to main content

Notifications

Microsoft Dynamics RMS (Archived)

QSBridge.RequestQSRules() question

Posted on by 5
I am creating an addin for RMS. I am having trouble getting QSBridge to return me an instance of QSRules. QSBridge works fine. It gives no error messages, it is just not being created. Following is the code I'm using and some of the things I've tried. code from HTML addin page: 

<head>

<title></title>

 

<object classid="clsid:44C4C3AC-D0F1-11D2-919D-006008C88FC3" height="0" id="qsBridge" style="LEFT: 0px; TOP: 0px" width="0" >

<param name="_ExtentX" value="26"/>

<param name="_ExtentY" value="26"/>

</object>

 

<script type="text/javascript" >

 

if (qsBridge == null) {

alert("Bridge Null");

} else {alert("bridge ok"); (It always shows that QSBridge is an object)

}

var qsRules = qsBridge.RequestQSRules();

if (qsRules == null) {

alert("Rules = null"); //Always shows  QSRules = null

} else if (qsRules != null) {alert("It lives");

}

(uncommenting any of these lines throws an error

//qsRules.Transaction.Entries.Add(65, "1SimCard", 1, 0, false, 0); 

//qsRules.Transaction.SetCustomer(53253);

//qsBridge.FireEvent("RefreshDisplay");

 

</script>

</head>

 

Following are some of the things I have tried.

Creating the page using VS 2005
Creating the page using VS 2008
Creating the page using Coffee Cup HTML editor
Creating the page using Homesite

Using an aspx page;
Using an HTML page

Using Javascript
Using VBScript

Running it on a server
Running it on the local machine

Running in POS
Running stand alone

creating a reference to QSRules in VS project
Deleting the reference to QSRules in VS project

I would appreciate any help anyone could give me. I'm about at my wits end.

Thank you

 Galen 


*This post is locked for comments

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

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,912 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,355 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans