gShowCriteria was my saviour in this regard, however, to manipulate the prices I wanted to use a function in gMargin. This is where my problem began as dsExchangeBuy has this little code bit in the list options element:
Code: Select all
(switch
(not gMargin)
(scrSetListFilter gScreen intComputeSellPrice)
(isfunction gMargin)
(scrSetListFilter gScreen gMargin)
(scrSetListFilter gScreen gShowCriteria)
)
How would I go about using gMargin to filter the items to be shown? I tried calling scrSetListFilter manually within the gMargin function to no effect.
I ultimately created a &dsExchangeBuy2; with the small change of
Code: Select all
(isfunction gMargin)
(scrSetListFilter gScreen gMargin)
Code: Select all
(isfunction gMargin)
(scrSetListFilter gScreen gShowCriteria)
I don't know if this is a bug or what I was trying to do wasn't an inteded use of dsExchangeBuy but it is a working solution if others have had this problem.