problem in tightly coupled wiring

gomashan07
User offline. Last seen 9 weeks 4 days ago. Offline
Joined: 01/27/2011
Points: 251

Hi  all ,

              I am  trying a tighly coupled wiring . The publisher and subscriber has been working individually fine. When i place the two  apps in the mashboard it does not work  correctly. I have enclosed he screen shot images of the publisher and subscriber seperate;y and also the mashboard image where  both are placed . I have also enclosed the html, app.xml and JS file in the text files .I embedded the apps in a html page that method also  failed to work. please help me ..

0
Your rating: None
smitchell
smitchell's picture
User offline. Last seen 2 weeks 5 days ago. Offline
Joined: 08/29/2008
Points: 34

I can't confirm this, as you only posted the code for the publisher App. But I suspect that this problem is caused by the fact that this sample in the documentation originally used the same class name in both the publisher and the subscriber App for the table that displayed data. One other user reported slightly different results, but a similar kind of problem.

Originally, both samples used "myTbl" as the class name and this caused a conflict once both Apps were added to a workspace in Mashboard. At the very least, this is a classic example of being careful when you copy code .

I have since changed the sample code in the documentation. The current HTML for the publisher App uses the class name "pubTable" and the HTML for the subscriber App uses the class name "subTable". You need to then update the JavaScript to use the updated class names for both Apps to get them to work properly when they are located in the same workspace or page. 

If that still doesn't help, please post the code for both publisher and subscriber.

 

Sara, technical writer/jackbe