I am new to Jheadstart, I just started looking into it. I understood that by using Jheadstart we can simplify the application UI generation and make use of default table/form structures.
It's easy to choose a quick / advanced search options from Application Definition Editor, but if need to create a custom view search form for a requirement, what approach I need to take ?
My requirement is
In a custom search screen
1st Boolean Radio button has a search option with Customer Registered ID
2nd Boolean Radio button has a search option with Customer Last Name & Firm Name as search fields
User can select either of the radio button and search his desired details.
Either of those options and search action should be able to show result in a tabular format below on the same page. Those results include Customer Reg ID , Customer Last Name & Firm Name and some other additional fields.
Does Jhead Start support for this kind of custom features too ? If so how I achieve it ?
first a question. Do you have to have the radio buttons? Couldn't you just let the users enter data in either box? If you can do that it's just a matter of setting up the appropriate view criteria on your view object.
if you do have to have the radio buttons, you'll have to use the JHeadstart style search option (as described in ch. 7 of the JHS Dev Guide) and create some custom templates for generating the search panel with your radio buttons and making sure that they activate/deactivate the search boxes properly.
Thanks for your reply,
As per the requirement in my search form, I need to have Boolean radio buttons, and according to the selection of radio buttons, respective search block should get activated and the other one should get deactivated.
I have seen the easy way of using default Table/Table-Form/Select-Form/Tree/Tree-Form etc features to the page's layout style, all those support in using the existing templates / or to modify the JHS generated pages features.
But for every custom page (let it be search / form / table in a page with different or very specific client requirements like positioning of the fields in a different manner/on different conditional basis than the actual generated pages features) do I need to generate a custom template & incorporate in JHS to use ? is there any other simplified way to work with built in features ?
It's going to depend on just how complex your requirements get. You can make some fairly complex layouts in the JHeadstart editor by grouping items using regions, then grouping those regions using other regions, and you can show/hide those regions based on the values of other fields, all without having to create custom templates. For instance, I have child tabs on some forms that only display if certain checkboxes are selected, and other forms where one group of fields are in their own separate box to the side of the main form.