Thanks for the reply. Your words ring so very true, I have only scratched the surface of what Scriptcase can do. I made the purchase based on the RAD capabilities. The grids and forms are so easily built and very solid in overall performance. I also agree the “best” way has had me wrapped around the axle a bit.
My intent for the post was to initially get an idea of the “temperature” of the forum, many framework and programmer forums can be a bit snarky about certain questions. Most of my work has been done in PHP, using JQuery, Ajax and some JS. I have to confess that I am somewhat self-taught and have cobbled together my portfolio by leveraging tutorials and the occasional manual to build a set of tools as I have needed them.
In any event, most of my projects have been for small businesses or schools and are designed to create forms which normalize data entry by controlling input and using foreign keyed values to ensure referential integrity.
The particular application I want to build is the second phase of the ordering process, that is scheduling the delivery. The customers can place orders to be delivered throughout the season. So I created an order and orderDetail table. My goal is to present the user doing the scheduling with the list of orderDetail items (less any that have already been delivered) . I have done this before using a view that shows the ordered items yet to be delivered, by customer.
This data is then fed to another Master/Detail application delivery, deliveryDetail that once modified will be inserted into database tables of the same name.
I have generally used Ajax to retrieve the records from the view and organize the data into an HTML table. This table has allows the user to modify the quantity field (should they need to reduce the remaining ordered amount due to spreading out the original order over several deliveries), change pricing, apply volume discounts and modify delivery instructions.
I also want to populate the master form with the customer information (delivery address, contacts and instructions) entered by the person scheduling the delivery.
Scriptcase does an amazing job showing label fields on select fields. But I wondered if there is a way to flow an array of data from the customer table to several fields (address, city, state, contact_name, contact_phone etc.) in the master form. I am thinking this should be a php method that queries the database using the customerId value form the select field and then maps each field in the returned record to a variable which is then assigned to the field in the Scriptcase app. This of course triggered by an OnChange Ajax event.
This is a very new way of thinking about the way I have been doing things in the past, so I appreciate your patience and look forward to any advice or documentation which you think would be helpful.