Quantcast
Channel: ProjeQtOr free project management software - ProjeQtOr free project management software - Recent Topics - ProjeQtOr
Viewing all articles
Browse latest Browse all 6784

[SOLVED] Question about datefieldbox in object detail - by: keloniton

$
0
0
Hello dear Mr babynus, How are you.
I appreciate if you help me with the following question.
my question concept: I want to add a button undert the regular projeqtor datetextbx in objectdetail. then by clicking that button a window opens and some inputs are taken. the results of inputs will have effect in the datetextbox.
What i did: Then, i need to have the id of datetextbox to assign a value to it. In order to do this, i simply added a button under the </div> of datetextbox in view/objectdetail.php as follows:
echo '<button id="thebutton" onclick=processingfunction ( " ' . $classObj . '_' . $col . ' ");>UN</button>';
Based on line 782 of view/objectdetail the input of processingfunction would be the id of the datetextelement. Then, in view/projecqtor.js i added the following function:
function processingfunction(input) {
dijit.byId(input).set('value','2016-12-12');
}
Logically the date must be dedicated to datetextbox, but it does not work. do you have any idea?
let me appreciate your time and help
thanks in advance

Viewing all articles
Browse latest Browse all 6784

Trending Articles