Forum Search:
phpHtmlLib
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » phpHtmlLib » Widgets » user actions with 'DefaultGuiDataList'
user actions with 'DefaultGuiDataList' Thu, 11 March 2004 15:02 Go to next message
UweBaumann  is currently offline UweBaumann
Messages: 9
Registered: March 2004
Newbie

From: dip0.t-ipconnect.de
Hello,
which possibilities there are to react with the class 'DefaultGuiDataList'. Indicating the data from the data base (MYSQL) is functioned. Now I would like to change still data in the data base. In the first step I use 'action_button' to call another PHP file. This did not function however. Thanks a lot for Informationen how can i do this.


Uwe Baumann
Re: user actions with 'DefaultGuiDataList' Thu, 11 March 2004 15:12 Go to previous messageGo to next message
phphtmllib  is currently offline phphtmllib
Messages: 776
Registered: September 2002
Location: Cool, CA
Senior Member
Administrator

From: irc.sh.nu
action_button() returns a button object. What you want to do is 2 fold.

In the user_setup() method for your DefaultGUIDataList child

call add_action_column() to set up the column data you want to work on.

and override the actionbar_cell() method.
to return the action_button().

this will create a left or right action column with a checkbox for that row. Then the action_button that lives in the actionbar will submit the action based on the checked rows.
Re: user actions with 'DefaultGuiDataList' Fri, 12 March 2004 00:00 Go to previous messageGo to next message
UweBaumann  is currently offline UweBaumann
Messages: 9
Registered: March 2004
Newbie

From: 195.145.144
In my Program i have do so. I can see the 'action_button' in the 'action_column'. I have also a Radiobox for the rows. But when i push the Button there are no effects.


Uwe Baumann
Re: user actions with 'DefaultGuiDataList' Fri, 12 March 2004 11:23 Go to previous messageGo to next message
phphtmllib  is currently offline phphtmllib
Messages: 776
Registered: September 2002
Location: Cool, CA
Senior Member
Administrator

From: irc.sh.nu
do you have a url that I can see your page and possibly a .phps to see the code?
Re: user actions with 'DefaultGuiDataList' Fri, 12 March 2004 11:54 Go to previous messageGo to next message
UweBaumann  is currently offline UweBaumann
Messages: 9
Registered: March 2004
Newbie

From: dip0.t-ipconnect.de
Now i have run the code on my local machine. The following file contains the PHP Code and the HTML output.

  • Attachment: lstKunde.zip
    (Size: 3.87KB, Downloaded 1152 times)


Uwe Baumann
Re: user actions with 'DefaultGuiDataList' Fri, 12 March 2004 12:00 Go to previous messageGo to next message
phphtmllib  is currently offline phphtmllib
Messages: 776
Registered: September 2002
Location: Cool, CA
Senior Member
Administrator

From: irc.sh.nu
after a quick look at your html output, it seems the form name is
pear::mysql_list, which I doubt will enable javascript to work properly. I am guessing you are getting js errors when you click the button.

The name of the <form> comes from the title of the datalist which happens

$pearlist = new pearmysqllist("PEAR::MySQL List", 600, "KundenNr", TRUE);

Try changing it to just 'Pear MySQL List" and see if that helps.
Re: user actions with 'DefaultGuiDataList' Fri, 12 March 2004 12:33 Go to previous messageGo to next message
UweBaumann  is currently offline UweBaumann
Messages: 9
Registered: March 2004
Newbie

From: dip0.t-ipconnect.de
Without 'PEAR::' the button do what i want.

Thanks for quickly help !!


When i looked the Code 'DefaultGUIDataList' i think i have found a little bug. I have changed the folloing row from 'old' to 'new'. With the old row the Program can't find the arrow_right.gif.

old:
// $td->push(html_img("/phphtmllib/images/widgets/arrow_right.gif ")); ##ub

new:
$td->push(html_img($this->get_image_path()."/arrow_right.gif "));


Uwe Baumann
Re: user actions with 'DefaultGuiDataList' Fri, 12 March 2004 12:54 Go to previous message
phphtmllib  is currently offline phphtmllib
Messages: 776
Registered: September 2002
Location: Cool, CA
Senior Member
Administrator

From: irc.sh.nu
thanks for the heads up on the bug. I'll get it fixed in cvs.
Previous Topic:Advanced Search Example in datalist widget
Next Topic:function add_action_column type +[html_img_a,html_a]
Goto Forum:
  


Current Time: Wed Jun 19 00:44:04 PDT 2013

Total time taken to generate the page: 0.26085 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.0.
Copyright ©2001-2009 FUDforum Bulletin Board Software