Add Trend Tag to existing/previous trend view [Citect Scada 2018 SA]

Hi,

The Default Info_Trend page, will upon click on the marked button show the tag in a new Process Analyst window. 

I would like to make similar button that will add the Equipment Trend tag to the existing/previous trend view that the user had open. 

Appreciate any suggestions how to assign such an button, what functions would I need to set up etc. ?

Thanks,

Rune

Parents
  • Hi Bradley
    Thanks for the code you shared above, most appreciated.

    Now, I'm digging further with this and are looking for a "simple" (at least I hope there is) way to create a button that can initiate the same functions as the Display In Trend button does from the Info Trend.
    You mention above that we would have to: "building up an array of trends to add and passing it to your customized TrendPage_ShowForEquipment function".

    Please excuse my lack for knowledge for a second;
    -in my simple mind I thought that I could achieve the same if we activated the function InfoTrend_ShowPADefault() as long as the selected equipment was in context and Info_Trend open.
    In the Menu setup I've set the Order of the Info_Trend to 1 as it will always display when an equipment is set in context.

    The main trend page is displayed when I run my test button but the trace is not passed on to it. I guess that has to do with WinNumber requirement in TrendPage_ShowForEquipment()?

    I've been trying to find a function that I can use to set Info_Trend_HD1080 page "Active" when I run the initiation code, playing with Win functions but no luck so far..

    I hope you see what I'm trying to do, question is, is it possible at all? I was hoping to use the same functions without creating duplicate once with modifications.

    I know I'm on thin ice... ;-)
    Hope you have some good suggestions, inputs that can help.

    Thanks,
    Rune

Reply
  • Hi Bradley
    Thanks for the code you shared above, most appreciated.

    Now, I'm digging further with this and are looking for a "simple" (at least I hope there is) way to create a button that can initiate the same functions as the Display In Trend button does from the Info Trend.
    You mention above that we would have to: "building up an array of trends to add and passing it to your customized TrendPage_ShowForEquipment function".

    Please excuse my lack for knowledge for a second;
    -in my simple mind I thought that I could achieve the same if we activated the function InfoTrend_ShowPADefault() as long as the selected equipment was in context and Info_Trend open.
    In the Menu setup I've set the Order of the Info_Trend to 1 as it will always display when an equipment is set in context.

    The main trend page is displayed when I run my test button but the trace is not passed on to it. I guess that has to do with WinNumber requirement in TrendPage_ShowForEquipment()?

    I've been trying to find a function that I can use to set Info_Trend_HD1080 page "Active" when I run the initiation code, playing with Win functions but no luck so far..

    I hope you see what I'm trying to do, question is, is it possible at all? I was hoping to use the same functions without creating duplicate once with modifications.

    I know I'm on thin ice... ;-)
    Hope you have some good suggestions, inputs that can help.

    Thanks,
    Rune

Children
No Data