Hi,
There are the following methods to get the selected ViewItem. This is my understanding.
- SelectedViewItemChangedIndication
- SelectedViewChangedIndication
Is there any way can I get which of the items are selected when the plugin create ?
For example)
1. Create 4(2x2) views. *ViewItem1, ViewItem2,ViewItem3 and ViewItem4
2. Create ViewItem1 and ViewItem2 with each plugin. *ViewItem1 is selected.
3. Swich ViewItem1 and ViewItem2 using mouse grab.
*We see ViewItem2 is selected but nothing indication selected view is changed.
How are you creating the view? From your plugin or manually using the user interface? I have tried recreating what you describe, but I get the SelectedViewItemChangedIndication each time I do the swap.
Sorry for my late reply.
We think if we swap the view Smart Client creates the view.
Our plugin doesn’t create the view.
We upload the captures.
If we swap the view(see the fig2), selected view(see the fig3) doesn’t SelectedViewItemChangedIndication.
Is it a same operation that you tried to reproduce ?
Could you confirm it for avoiding our misunderstanding ?
![fig3]()
Yes, it is exactly the same I did. Which version of the Smart Client are you using?
Thank you for your confirming.
We will reconfirm and reply to you.
Smart Client is the latest version(2018R2).
I just tested with Smart Client 2018 R2 and it seems to work just fine. Could you please try having the Message Tester sample (from the SDK) in the view when you swap the two plugin view items and see whether it lists the SelectedViewItemChangedIndication?
Sorry our procedure was incorrect.
On using Message Tester sample, We confirmed the SelectedViewItemChangedIndication show correct the above procedure.
We found that it doesn’t show message the follwing procedure.
Is it a correct behavior ?
Step1
Step2
Step3
etc
In step 2 and 3 the selected view item does not change. The selected view item is the one in the lower left corner and it stays being the selected, so no message is sent.
Swapping does not change which view item field is selected - it stays the same - and the message is therefore only sent if the swap affects the contents of the currently selected field.