Sigma Php Ajax framework, Ajax Components, GUI Builder
February 11, 2012, 07:34:36 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Add new record with SigmaGrid  (Read 1652 times)
stani
Jr. Member
**
Posts: 14


View Profile
« on: February 03, 2009, 01:42:29 AM »

Hello Steven,

I had posted this problem earlier, but you were on vacation it seems, hence I never heard from you. Im using SigmaGrid for one of my project and I need to do the following:

1) Grid at http://www.themotoroilevaluator.com/admin/php/crud/viewoilData.php  uses loadurl and saveurl  for dynamically loading data from the database
2) the user clicks on + sign or the Add new record button on this page (currently not provided)
3) A blank row appears on the grid
4) the first column is a drop down
5) When the user selects an item from the drop down, I want to go back to the database and pick values for the remaining fields for the new row. After fetching those values I want to show those values in the respective fields.
6) User if required can change those values before clicking on the SAVE button.
7) On clicking SAVE button, data is saved to the database.

Steven, I would like to know if #5 is doable using SigmaGrid and if yes, how should we approach towards it.

A reply will be highly appreciated as I have been waiting for this reply for a long long time.

Warm regards,
Stan
Logged
steven
Moderator
Hero Member
*****
Posts: 546



View Profile
« Reply #1 on: February 03, 2009, 01:47:51 AM »

I really understand your requirement.
You can't do that unless you change some sigma grid code by your self.
Logged

Sigma AJAX Data Grid - Easy to Integrate with PHP, ASP Classic, ASP.NET & Java
Sigma PHP Ajax Framework - WYSIWYG GUI Builder With Tree, Grid, Treegrid, Dialog, Tab & More Component
humi
Hero Member
*****
Posts: 284


View Profile
« Reply #2 on: February 03, 2009, 05:53:34 AM »

If you wanted something simple, without editing the grid. Do a static html form, written in JavaScript to do what you need, and place that above the grid.

Because as of this version (SigmaGrid 2.1.02) The grid is not capable of reading user input before it has been saved.

You can test this by enter information, and using:


This will show that the grid cannot read it. And hopefully in a later version, this will be resolved, and added to the feature list.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!