on 07-04-2009 3:50 PM
Hi,
when i am using datefromxmlformat function as below is working fine.
datefromxmlformat(GenericSort_0.Output{/Rowsets/Rowset/Row [#Local.Index#]/TARGETDATE},"MM/dd/yy")
If the variable TARGETDATE has no value, it is terminating the BLT.
Please suggest me.
Thanks,
Vijaya
Edited by: Vijaya Rekha on Jul 4, 2009 8:20 PM
Hi,
I am not sure what exactly you are going to do after this.
Please use a conditional action just before that this datetoxmlfformat function used.
Like this.
GenericSort_0.Output{/Rowsets/Rowset/Row[#Local.Index#]/TARGETDATE} != " "
Then if the value is there do what ever you want to do, else in the error loop handle the error.
If you need any other help, expalin the scenario a little bit.
Regards,
kishore
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kishore,
My idea to get the date in dashboard. If the date field has date it is showing in desired date format. For that format I am using datefromxmlformat( datetime, toformat )
Now I am checking if any null date, After that I am applying datefromxmlformat. But i am not getting.
Is there any other way to do that
Thanks,
Vijaya
Hi Vijaya,
I made a slight mistake in the earlier post. Don't check for null date it is not working. I dont know the reason.
GenericSort_0.Output{/Rowsets/Rowset/Row[#Local.Index#]/TARGETDATE} != ""
Remove the space between "". It is working fine for me.
But if you give the space inbetween as like this " ". It does not give the expected result
Hope it solves your problem.
Regards,
Kishore
Hi kishore,
Thanks for your suggession.
I am checking the nulldate like this
stringif(GenericSort_0.Output{/Rowsets/Rowset/Row[#Local.Index#]/TARGETDATE} != "",datefromxmlformat(GenericSort_0.Output{/Rowsets/Rowset/Row[#Local.Index#]/TARGETDATE},"MM/dd/yy"),"")
It is throwing an error.
Thanks,
Vijaya
Hi Vijaya
What error it is throwing?
Instead of
stringif(GenericSort_0.Output{/Rowsets/Rowset/RowLocal.Index#/TARGETDATE} != "",datefromxmlformat(GenericSort_0.Output{/Rowsets/Rowset/RowLocal.Index#/TARGETDATE},"MM/dd/yy"),"")
you try like this:
stringif(GenericSort_0.Output{/Rowsets/Rowset/Row[#Local.Index#]/TARGETDATE} != "",datefromxmlformat(GenericSort_0.Output{/Rowsets/Rowset/Row[#Local.Index#]/TARGETDATE},"MM/dd/yy"),"")
Hi,
This happened to me also. To over come this , instead of using it link editor place a if condition above assignment.
In the yes loop you format the date and in the else loop use the null value.
Thats the way you can overcome this problem.
When the value is not there it should go to the esle codition but it validates the yes condition which throws the error.
Hope this solve the problem.
Regards,
Kishore
User | Count |
---|---|
11 | |
6 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.