Before i want to thanx developpers for their nice work.
Second, my question, my problem :
I use the DB tree and masks :
First i ve my index.php that call my application. The application contain my tree.
When i click on an item, it open a mask, but the mask contain fields that are modified by the value of the clicked item (in normal situation). But mine is not.
I think the problem is that the event do not in the appli script do not refresh the components in the mask. I ve looked for a refresh method to refresh the db source in the mask but i ve not found.
Its not simple i know but i think that a lot of people had the same problem!
Thanks for response and i follow you every week men!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
about you problem... i can imagine you use 2 db_source for the 2 masks... this could be the problem, maybe you should have only 1 db_source shared between the masks or do data_binding (but this could be a bit complex to explain)
let me know
cheers
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi. My name is Jerome Bailey and I have been using P4A for over a year now. After realising that I had to be using the firefox extension to clear the cookies in order to view the changes I made to a mask I wrote a code to refresh a mask. I also added a button to the toolbar to call the function with an icon. A sample of how a page would look with the refresh button is shown here:
function doRefreshOriginalPage(){
$p4a = & p4a::singleton();
$this->destroy();
$p4a->openMask($this->getName());
}
Anyone can add their image to the button but just use the code and refresh the mask without clearing the cookies. If there are any modifications to the code you can let me know. :) I am open to it.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello everybody,
Before i want to thanx developpers for their nice work.
Second, my question, my problem :
I use the DB tree and masks :
First i ve my index.php that call my application. The application contain my tree.
When i click on an item, it open a mask, but the mask contain fields that are modified by the value of the clicked item (in normal situation). But mine is not.
I think the problem is that the event do not in the appli script do not refresh the components in the mask. I ve looked for a refresh method to refresh the db source in the mask but i ve not found.
Its not simple i know but i think that a lot of people had the same problem!
Thanks for response and i follow you every week men!
thank you for your compliments :-)
about you problem... i can imagine you use 2 db_source for the 2 masks... this could be the problem, maybe you should have only 1 db_source shared between the masks or do data_binding (but this could be a bit complex to explain)
let me know
cheers
My applis is an item viewer (with a lot of item type (oracle, appserv, TP, machines) and each as a special max, a special table.
I thank that doing a tree and switching masks would B the best solution to visualize my items...
I you have another solution, i ll take it...
(a detail, i wanted to change icons tree following the type of item... i ve not the simple solution... But its secondary...)
Nicolas.
> (a detail, i wanted to change icons tree following the type of item... i ve not the simple solution... But its secondary...)
we know, it's also because of that that tree_navigators are NOT inside p4a core
:)
Hi. My name is Jerome Bailey and I have been using P4A for over a year now. After realising that I had to be using the firefox extension to clear the cookies in order to view the changes I made to a mask I wrote a code to refresh a mask. I also added a button to the toolbar to call the function with an icon. A sample of how a page would look with the refresh button is shown here:
http://jerome-aneive.blogspot.com/2009/03/refresh-button-with-custom-code-for-p4a.html
The function to create the toolbar is below:
function createToolBar() {
$toolbar = & $this->build('p4a_simple_toolbar', 'toolbar');
//$toolbar = & $this->build('p4a_simple_toolbar', 'toolbar');
$toolbar->buttons->save->setLabel('Save');
//$toolbar->addLabel($toolbar->buttons->save, 'Save Content');
//$toolbar->buttons->save->setTitle('Save Content');
$toolbar->buttons->new->setLabel('New');
$toolbar->buttons->delete->setLabel('Delete');
$toolbar->buttons->print->setLabel('Print Information');
$toolbar->buttons->cancel->setLabel('Cancel');
$toolbar->addSeparator('left');
$refreshMaskDefault = & $toolbar->addButton('refreshMaskDefault', 'reload', 'left');
$refreshMaskDefault->setLabel('Refresh Page');
$this->intercept($refreshMaskDefault, 'onClick', 'doRefreshOriginalPage');
$toolbar->setMask($this);
return $toolbar;
}
The function to refresh the maks is below:
function doRefreshOriginalPage(){
$p4a = & p4a::singleton();
$this->destroy();
$p4a->openMask($this->getName());
}
Anyone can add their image to the button but just use the code and refresh the mask without clearing the cookies. If there are any modifications to the code you can let me know. :) I am open to it.
Hi Jerome and thank you for your post! I think it could be really useful for some users in some contexts (mask that are not scripted from outside)