Change Order Of Fields In a Notification

 11 Replies
 0 Subscribed to this topic
 14 Subscribed to this forum
Sort:
Author
Messages
Ruma Malhotra
Veteran Member Send Private Message
Posts: 412
Veteran Member
Is there a way to change the order of fields in a notification after the infoset creates the fields in a certain order without changing the query ?

Thanks in advance.
mark.cook
Veteran Member Send Private Message
Posts: 444
Veteran Member
Yes, in options Step 4 of Notification build, you do something like colopt 1=2 that will change the order of column 1 & 2
Matthew Nye
Veteran Member Send Private Message
Posts: 514
Veteran Member
Select your Multi-Fact in Step 1
Click Select
Look at the order of the columns be for you Add
Transcribe them in the order they appear

EXAMPLE:
Company Acct Unit Account

Company = 1
Acct Unit = 2
Account = 3

on step 4 of your notification click Options link
In the dialog box you can specify the order of your columns

EXAMPLE
colopt1=2&colopt2=no&colopt3=1
Account is the 1st column
Company is the 2nd column
Acct Unit is not shown

There is more extensive examples and documentation on the API in the SN guide.

hth
Matt
If any of my answers were helpful an endorsement on LinkedIn would be much appriciated! www.linkedin.com/pub/matthew-nye/1a/886/760/
mark.cook
Veteran Member Send Private Message
Posts: 444
Veteran Member
Alot of what you will do in there will be examples like the following

colopt1=No Column will not display
Colopt4=1 Column 4 will display first
Ruma Malhotra
Veteran Member Send Private Message
Posts: 412
Veteran Member
Thanks to both of you. This worked.

Matthew Nye
Veteran Member Send Private Message
Posts: 514
Veteran Member
Just keep in mind, there ONLY place that you can see the true index of the columns is after you select your multi-fact. The Index in the InfoSet editor or the iundex of the query language is not always correct as SN reorders based on your Key, Attribute and Measure settings.
If any of my answers were helpful an endorsement on LinkedIn would be much appriciated! www.linkedin.com/pub/matthew-nye/1a/886/760/
Ruma Malhotra
Veteran Member Send Private Message
Posts: 412
Veteran Member
Where can you see the true order of index of the fields? I am basing mine on the index of the query tool.
Ruma Malhotra
Veteran Member Send Private Message
Posts: 412
Veteran Member
The reason I am asking this question is in my result set I have employee number, then a number of fields and then the last name, first name and middle init. The users want the last name, the first name and middle init to be right next to the employee number.

I ordered the lastname like &colopt11=2 and this works but when I use the first name to be &colopt12=3 it is not taking it till I put it in this order &colopt11=2&colopt12=2&colopt13=2(middle init).

Thanks in advance.
Matthew Nye
Veteran Member Send Private Message
Posts: 514
Veteran Member
Did you see my reply at 01:45 PM? I think that addresses your follow up question right?
If any of my answers were helpful an endorsement on LinkedIn would be much appriciated! www.linkedin.com/pub/matthew-nye/1a/886/760/
Ruma Malhotra
Veteran Member Send Private Message
Posts: 412
Veteran Member
I read the post at 12:45 PM. Is there anyway to look at what the true index of the fields are ? 
Matthew Nye
Veteran Member Send Private Message
Posts: 514
Veteran Member
Right, so there is only 1 place you can see the actual index for this and that is on Step 1 of the Notification creation process after you select your Items (Keys and Attributes) and Measures. The order from right to left is the index you need to use.
If any of my answers were helpful an endorsement on LinkedIn would be much appriciated! www.linkedin.com/pub/matthew-nye/1a/886/760/
Ruma Malhotra
Veteran Member Send Private Message
Posts: 412
Veteran Member
Thanks. This helps in designing the notification.