Focal Point
Limiting Records in Dropdown List...
March 28, 2008, 02:31 AM
focuzsambitLimiting Records in Dropdown List...
I am trying to do a autopopulation in a
HTML-form from a master fle (Dynamic-datasource).
Now the field is Year and i want to see only (+/-) 2 years. So my dropdown should have 2006,2007,2008,2009,2010.So is there any way to put the condition to limit the data??
Well, i know this can be done through procedure. But i want to do it through data source bcoz i have couple of other fields in the html-form which are dependent on this field and those all are chained.
any pointers...
tks/sam
WF Server: 7.1.4 on Z/OS and Linux, ReportCaster
Data: DB2, DB2/UDB, Adabas, SQL Server, Oracle Output: HTML,PDF,Excel2K
WF Client: Servlet, CGI
March 28, 2008, 09:51 AM
GinnyJakesSam,
You can chain with procedures too. Look in the "Developing Reporting Applications" manual. Several examples are provided.
Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
March 29, 2008, 01:16 PM
GamPSam,
As Ginny said, use procedure chaining. That is th ONLY way to limit output in the way you need. Using the master file approach will never give you the results you want, unless the database you're inquiring is filled exactly right.
GamP
- Using AS 8.2.01 on Windows 10 - IE11. |
| in Focus since 1988 |
March 30, 2008, 03:03 PM
focuzsambitohk...jst a small querry...
suppose i have three fields like year/month/weeknbr...
i want the year to be restricted to +/- 2 years.
so i can create a procedure for year and populate the year-field from that procedure and rest 2 fields (i can get from datasource) i can directly link to datasource-field.
and when i will chain all three will it work or some spl things
needs to be done...
WF Server: 7.1.4 on Z/OS and Linux, ReportCaster
Data: DB2, DB2/UDB, Adabas, SQL Server, Oracle Output: HTML,PDF,Excel2K
WF Client: Servlet, CGI
March 30, 2008, 04:38 PM
FrankDutchDoes your table have all the days of the year?
Then you can compute/define the week number, month and year.
You can SET the actual year and do something like
TABLE FILE XXX
BY YEAR
WHERE YEAR GE &YEARMIN2;
WHERE YEAR LE &YEARPLUS2;
ON TABLE HOLD AS YEARS FORMAT XML
END
the same for the month and week numbers...
|
Frank |
| prod: WF 7.6.10 platform Windows, databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7 test: WF 7.6.10 on the same platform and databases,IE7 |
March 31, 2008, 03:53 AM
GamPSam,
I think mixed chaining is not possible. I may be wrong, haven't really tried it, but I think if one of the chained requests is a procedure, then the other ones will have to be procedures also. But give it a try and let us know what happens.
If you do get the expected results with the mixed chaining, then I am wrong, if not then I'm right (alas).
Hope I'm wrong....
GamP
- Using AS 8.2.01 on Windows 10 - IE11. |
| in Focus since 1988 |
March 31, 2008, 08:45 AM
PBrightwellSam,
I may be having a senior moment, but why would you want to chain year, month and week number?
Can a user select both the month and the week number? Some weeks will span more than one month. I would think you would want an month or week and not both.
Pat
WF 7.6.8, AIX, AS400, NT
AS400 FOCUS, AIX FOCUS,
Oracle, DB2, JDE, Lotus Notes