About Me

About Me
Working with SOA technologies , implementing solution using IBM BPM , IBM Integration Designer,IBM WODM and IBM DataPower

About me

View Mahesh Dondeti's profile on LinkedIn

upcoming posts on IBM Bluemix,Devops,Worklight,Node js.

Tuesday 2 June 2015

Typical Date Requirements in IBM BPM(Lombardi) Coahes

Typical Date Requirements in IBM BPM(Lombardi) Coahes


Requirement1:-

For example If you are designing a coach to get detailed statement in Bank Account, In a coach  we have two date  fields "From" and "To". If the user chooses any date in "From" field, all the previous date in the "To" field should be disabled , the user can choose only dates which is after the "From" date.

How we will disable other dates (before “from” date)  in Data control?

  1. Create a Human service  and take Heritage coach.
  2. Drag  two Date Selector(From and To date) Controls and Custom Html Control to the coach.
  3. Change control id of date controls to (From and  To)
  4. Paste  below script to Cutsom Html Control.

    <script> var fromDate = dijit.byId("From");
             var toDate = dijit.byId("To");
             dojo.connect( fromDate.dateBoxWidget,
                        'onChange', function()
                       {
toDate.dateBoxWidget.constraints.min = fromDate.dateBoxWidget.getValue();
} );
dojo.connect(toDate.dateBoxWidget, 'onChange', function()
{ fromDate.dateBoxWidget.constraints.max = toDate.dateBoxWidget.getValue();
} );
</script>











Requirement2:-

For example If you are designing a coach to book an appointment with doctor , In a coach  we have one  date  field "Appointment Date”. When user click on Date control it should disable previous date .

How we will disable previous dates (before “current” date)  in Data control?

  1. Create a Human service  and take Heritage coach.
  2. Drag two Date Selector(From and To date) Controls and Custom-Html Control to the coach.
  3. Change control id of date control to ("From" and  " To")
  4. Paste below script  in Cutsom-Html Control.





I hope this post helps you. So far this is my best effort to explain. Please correct me if I do anything wrong.


"Nothing will work unless you do."



Please share your valuable suggestions and feedback to my mail id"mdondetisbit@gmail.com" to improve myself.




Please post any issues/query’s related to BPM,WODM and DATA POWER  to "mdondetisbit@gmail.com








1 comment:

  1. Nice job. Keep posting more. Enterprise application integration is a sophisticated answer to a complex challenge that requires an experienced, knowledgeable technology partner to get it right.

    ReplyDelete