CognosTalk
Technical User
Need to display a parameter date calendar, and by default make it as of yesterday date,(by default it always points to today) in the parameter date properties it is impossible to add, i am not so sure how to do it.
If i create a value prompt, then user cannot change it to calendar, in case and he wants to choose another date.
i downloaded some html tag, but it does not work.
this is the tag,
<script>
var today = new Date();
var first = new Date(today.getFullYear(), 0, 1);
var strYesterday = [today.getUTCFullYear(), first.getMonth()+1, first.getDate()].join("-");
genSelectDateHTML("txtDate", 'formWarpRequest', "Par_Date", 'XML', "", strYesterday, , 'Gregorian', 'editBox', 'editBox', , "", "", 1, RANGE_EQUAL_VALUE, true, false, false, false, false, false, "", "", "", "", "", "");
</script>
Does someone know HTML items and how it should work with prompts???
Thank you very much in advance,
MK
If i create a value prompt, then user cannot change it to calendar, in case and he wants to choose another date.
i downloaded some html tag, but it does not work.
this is the tag,
<script>
var today = new Date();
var first = new Date(today.getFullYear(), 0, 1);
var strYesterday = [today.getUTCFullYear(), first.getMonth()+1, first.getDate()].join("-");
genSelectDateHTML("txtDate", 'formWarpRequest', "Par_Date", 'XML', "", strYesterday, , 'Gregorian', 'editBox', 'editBox', , "", "", 1, RANGE_EQUAL_VALUE, true, false, false, false, false, false, "", "", "", "", "", "");
</script>
Does someone know HTML items and how it should work with prompts???
Thank you very much in advance,
MK