set variable to defaultValue of date column

Questionsset variable to defaultValue of date column
abdelilah dourhmani asked 1 month ago

how can i set a variable $datechange to column date as defaultValue

3 Answers
Abu answered 1 month ago

If this variable is based on $_GET then you can simply put it in defaultValue property of editoptions.

If it’s coming from $_POST then you need to preserve it in session and then use it.

https://www.gridphp.com/docs/misc-faqs/#q-how-to-load-grid-based-on-_post-data-from-other-page

If it doesn’t solve, share grid code as well.

abdelilah answered 3 weeks ago
Abu answered 2 weeks ago

Hello,

I reviewed the code but I don’t find any variable $datechange in it. Please explain where are you trying to set this variable value. Also tell that from where this variable is populated (get/post?)

Your Answer

19 + 20 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?