Hey,
i think the best thing would be a global, which works so:
<%globalname(Date_No, Attribute_No)%>
So that means:
- Find the value of column Date_No in tableX
- Search in this value for the column Attribute_No in tableY and print it out
So when "testy" would be logged in and the global would have this parameters:
<%globalname(Date2, Attr2)%>
the output would be "F" with this two tables:
tableX:
Username (PRI) Date1 Date2
------------------------
demo 2004-03-02 2004-03-01
testy 2004-03-20 2004-03-04
tableY:
Date(PRI) Attr1 Attr2
-----------------------
2004-03-02 A B
2004-03-03 C D
2004-03-04 E F
So how the global should be?
Thanks in advance,
Coyu
i think the best thing would be a global, which works so:
<%globalname(Date_No, Attribute_No)%>
So that means:
- Find the value of column Date_No in tableX
- Search in this value for the column Attribute_No in tableY and print it out
So when "testy" would be logged in and the global would have this parameters:
<%globalname(Date2, Attr2)%>
the output would be "F" with this two tables:
tableX:
Username (PRI) Date1 Date2
------------------------
demo 2004-03-02 2004-03-01
testy 2004-03-20 2004-03-04
tableY:
Date(PRI) Attr1 Attr2
-----------------------
2004-03-02 A B
2004-03-03 C D
2004-03-04 E F
So how the global should be?
Thanks in advance,
Coyu