set variable to defaultValue of date column

Questionsset variable to defaultValue of date column
abdelilah dourhmani asked 7 months ago

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

3 Answers
Abu answered 7 months 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 7 months ago
Abu answered 7 months 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

20 + 5 =

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?