I am trying to add the com.webMethods.caf.faces.data.object.DateRange model to my portlet. This is to allow users to specify a start and stop date to limit the search. Much like one does when searching through process instances in mywebMethods server.
My problem however is I can not figure out how to get the values from the portlet passed to my IntegrationServer? Do I need to write some custom java code behind the scene?
All I need is to get the string from the picker passed to the underlying service being calling, once that’s done I can fix the rest on the IS side where I understand what to do
Being more precise… You can directly bind the “date” and “fixed range” properties to your IS service input parameters.
If the user has selected one of the “relative ranges”, then you will need to set the input parameters to “DateRange.calculateStart()”, “DateRange.calculateEnd()” in the java code.
May be I am answering too late , but the question is still relevant.
Hope this may help somebody at somepoint.
So, here what I did to map the input Data from the DateRange input control to the two String fields
DateFrom
DateTo
Go to the bindings view , portlet bean and create a new property(say dateRangeInput) , select the data type as
“com.webMethods.caf.faces.data.object.DateRange dateRangeInput”
Bind the value from the DateRangeInput control to the variable created.
Created a action say Search and added the below code to the search action :-