Re: Retaining text in search input boxes

2020-03-29 Thread Dick Arnold
Your solution was to set the 'value' attribute to the value that was 
entered in the input box.  That worked for the text input with the 
exception of the ones that got their value from a drop down list.  Please 
see my html code elsewhere in this post.  If you have any ideas, I would 
really appreciate it.  Thanks for your previous ideas.

On Saturday, February 15, 2020 at 1:16:18 PM UTC-6, OnlineJudge95 wrote:
>
> On Sun, Feb 16, 2020 at 12:22 AM Dick Arnold  > wrote:
>
>> I have a personnel database which has to be edited to keep it current.
>> I have created search parameters to find the person to edit.
>> The exact name of the person is not always known, therefore the name 
>> field for searching can contain only a few of the characters.  This can 
>> create a list of several people.
>> After the search parameters are entered a "Search" button is clicked and 
>> the output, if any, is displayed in a table.
>> If the search parameters need to be improved, I want the original 
>> (current) search argument to be retained in the argument field so I do not 
>> need to re-type ALL the search parameters, just the ones I want to change.
>>
>> I have not been able to find a way to retain the value in the search 
>> input box,
>>
>> Does anyone know how to accomplish this?
>>
>> Here's the input for one of the input boxes.
>>
>> 
>>
>
> Set an attribute of value in your input tags, and use the form object in 
> your view to populate it. For reference 
> https://stackoverflow.com/questions/4880306/django-multiple-forms-and-keep-field-data-input-after-submission?rq=1
>  
>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to django...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/92cfccd1-5916-4817-ae46-c612aa462610%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/e49c313a-185c-4764-90c7-bbf748fef11a%40googlegroups.com.


Re: Retaining text in search input boxes

2020-03-27 Thread Dick Arnold
Sorry about the amount of time it has taken me respond to your post.  I 
have been in the hospital.
I have been able to fix everything except the drop down boxes.  I'll show 
some code first.


  
Contact Type
  
  

  
  P Player
  V Vendor

  
  


I've been able to use the 'value' attribute to retain the search option 
that was chosen.  The field is actually defined as 'character' with a max 
length of 1.  This technique does not work for drop down lists.  The input 
field (box) still contains nothing.  I erased the 'hidden' word as I 
couldn't decide what it did.  It created a second input field (box) below 
the original box, so now I have two input boxes for this operation.  The 
second box does show the correct, one character value that was entered.  
But is need to put it in the first box, not the second. 

I tried another technique, but it does the same thing.  Here is that code 
(it's for a different drop down list):


  
Level of Play
  
  


  A Advanced
  N Novice  
  O Open
  U Unknown 

  
  

  
function retainLParm() {
  document.getElementById("ltype_id").defaultValue="{{ltype_id}}";
} 
  

Have I missed something that was In your post?  I've read and tried every 
thing I could.  I'm getting very frustrated.  The problem is...  I'm a 
mainframe programmer.  Python and Django and HTML and CSS are all brand new 
for me.  I'm getting better though.

Thanks for any help.

On Thursday, February 20, 2020 at 4:55:23 AM UTC-6, Mr Guro wrote:
>
> For drop downs use JavaScript script or JQuery to set the value of the 
> value of the selected item.For input use an if on the value if it's 
> populated then the input value is equal to the attribute us you put it 
> .Another option is to use the default on attribute but make it an empty 
> string so you don't have none when attribute is empty .
>
> On Thu, Feb 20, 2020, 12:14 PM Dick Arnold  > wrote:
>
>> I used a value of {{attribute value}}.  so it is nor a fixed value, but 
>> is the value submitted.  Doesn't work well for drop down input fields.  
>> still researching.
>>
>> On Saturday, February 15, 2020 at 12:50:59 PM UTC-6, Dick Arnold wrote:
>>>
>>> I have a personnel database which has to be edited to keep it current.
>>> I have created search parameters to find the person to edit.
>>> The exact name of the person is not always known, therefore the name 
>>> field for searching can contain only a few of the characters.  This can 
>>> create a list of several people.
>>> After the search parameters are entered a "Search" button is clicked and 
>>> the output, if any, is displayed in a table.
>>> If the search parameters need to be improved, I want the original 
>>> (current) search argument to be retained in the argument field so I do not 
>>> need to re-type ALL the search parameters, just the ones I want to change.
>>>
>>> I have not been able to find a way to retain the value in the search 
>>> input box,
>>>
>>> Does anyone know how to accomplish this?
>>>
>>> Here's the input for one of the input boxes.
>>>
>>> 
>>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to django...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/77088a26-742b-4bb4-8f2f-b74c5375119d%40googlegroups.com
>>  
>> 
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/3f152d2b-6a10-4c15-af82-c47bb010032a%40googlegroups.com.


Re: Retaining text in search input boxes

2020-02-20 Thread onlinejudge95
+1

On Thu, Feb 20, 2020 at 4:25 PM Farai M  wrote:

> For drop downs use JavaScript script or JQuery to set the value of the
> value of the selected item.For input use an if on the value if it's
> populated then the input value is equal to the attribute us you put it
> .Another option is to use the default on attribute but make it an empty
> string so you don't have none when attribute is empty .
>
> On Thu, Feb 20, 2020, 12:14 PM Dick Arnold  wrote:
>
>> I used a value of {{attribute value}}.  so it is nor a fixed value, but
>> is the value submitted.  Doesn't work well for drop down input fields.
>> still researching.
>>
>> On Saturday, February 15, 2020 at 12:50:59 PM UTC-6, Dick Arnold wrote:
>>>
>>> I have a personnel database which has to be edited to keep it current.
>>> I have created search parameters to find the person to edit.
>>> The exact name of the person is not always known, therefore the name
>>> field for searching can contain only a few of the characters.  This can
>>> create a list of several people.
>>> After the search parameters are entered a "Search" button is clicked and
>>> the output, if any, is displayed in a table.
>>> If the search parameters need to be improved, I want the original
>>> (current) search argument to be retained in the argument field so I do not
>>> need to re-type ALL the search parameters, just the ones I want to change.
>>>
>>> I have not been able to find a way to retain the value in the search
>>> input box,
>>>
>>> Does anyone know how to accomplish this?
>>>
>>> Here's the input for one of the input boxes.
>>>
>>> 
>>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/77088a26-742b-4bb4-8f2f-b74c5375119d%40googlegroups.com
>> 
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CAMeub5MC4smYxE%2BJjksURBP0aEWtCN%3DTf0-ZeDh8AgmdLy42eg%40mail.gmail.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAD%3DM5eS77KgQL8eB1sp%3DZKLMUCjkfXGE0_fe0d5b%2BDKHZhdJpQ%40mail.gmail.com.


Re: Retaining text in search input boxes

2020-02-20 Thread Farai M
For drop downs use JavaScript script or JQuery to set the value of the
value of the selected item.For input use an if on the value if it's
populated then the input value is equal to the attribute us you put it
.Another option is to use the default on attribute but make it an empty
string so you don't have none when attribute is empty .

On Thu, Feb 20, 2020, 12:14 PM Dick Arnold  wrote:

> I used a value of {{attribute value}}.  so it is nor a fixed value, but is
> the value submitted.  Doesn't work well for drop down input fields.  still
> researching.
>
> On Saturday, February 15, 2020 at 12:50:59 PM UTC-6, Dick Arnold wrote:
>>
>> I have a personnel database which has to be edited to keep it current.
>> I have created search parameters to find the person to edit.
>> The exact name of the person is not always known, therefore the name
>> field for searching can contain only a few of the characters.  This can
>> create a list of several people.
>> After the search parameters are entered a "Search" button is clicked and
>> the output, if any, is displayed in a table.
>> If the search parameters need to be improved, I want the original
>> (current) search argument to be retained in the argument field so I do not
>> need to re-type ALL the search parameters, just the ones I want to change.
>>
>> I have not been able to find a way to retain the value in the search
>> input box,
>>
>> Does anyone know how to accomplish this?
>>
>> Here's the input for one of the input boxes.
>>
>> 
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/77088a26-742b-4bb4-8f2f-b74c5375119d%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAMeub5MC4smYxE%2BJjksURBP0aEWtCN%3DTf0-ZeDh8AgmdLy42eg%40mail.gmail.com.


Re: Retaining text in search input boxes

2020-02-20 Thread Dick Arnold
I should have said {{attribute name}}, not value.

On Saturday, February 15, 2020 at 12:50:59 PM UTC-6, Dick Arnold wrote:
>
> I have a personnel database which has to be edited to keep it current.
> I have created search parameters to find the person to edit.
> The exact name of the person is not always known, therefore the name field 
> for searching can contain only a few of the characters.  This can create a 
> list of several people.
> After the search parameters are entered a "Search" button is clicked and 
> the output, if any, is displayed in a table.
> If the search parameters need to be improved, I want the original 
> (current) search argument to be retained in the argument field so I do not 
> need to re-type ALL the search parameters, just the ones I want to change.
>
> I have not been able to find a way to retain the value in the search input 
> box,
>
> Does anyone know how to accomplish this?
>
> Here's the input for one of the input boxes.
>
> 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/265f0a2c-a231-4c98-a7a6-cac499f0bb9d%40googlegroups.com.


Re: Retaining text in search input boxes

2020-02-20 Thread Dick Arnold


On Thursday, February 20, 2020 at 4:14:18 AM UTC-6, Dick Arnold wrote:
>
> I used a value of {{attribute value}}.  so it is nor a fixed value, but is 
> the value submitted.  Doesn't work well for drop down input fields.  still 
> researching.
>
> On Saturday, February 15, 2020 at 12:50:59 PM UTC-6, Dick Arnold wrote:
>>
>> I have a personnel database which has to be edited to keep it current.
>> I have created search parameters to find the person to edit.
>> The exact name of the person is not always known, therefore the name 
>> field for searching can contain only a few of the characters.  This can 
>> create a list of several people.
>> After the search parameters are entered a "Search" button is clicked and 
>> the output, if any, is displayed in a table.
>> If the search parameters need to be improved, I want the original 
>> (current) search argument to be retained in the argument field so I do not 
>> need to re-type ALL the search parameters, just the ones I want to change.
>>
>> I have not been able to find a way to retain the value in the search 
>> input box,
>>
>> Does anyone know how to accomplish this?
>>
>> Here's the input for one of the input boxes.
>>
>> 
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/5357664f-e6f7-46b8-85e2-28a81d5db59d%40googlegroups.com.


Re: Retaining text in search input boxes

2020-02-20 Thread Dick Arnold
I used a value of {{attribute value}}.  so it is nor a fixed value, but is 
the value submitted.  Doesn't work well for drop down input fields.  still 
researching.

On Saturday, February 15, 2020 at 12:50:59 PM UTC-6, Dick Arnold wrote:
>
> I have a personnel database which has to be edited to keep it current.
> I have created search parameters to find the person to edit.
> The exact name of the person is not always known, therefore the name field 
> for searching can contain only a few of the characters.  This can create a 
> list of several people.
> After the search parameters are entered a "Search" button is clicked and 
> the output, if any, is displayed in a table.
> If the search parameters need to be improved, I want the original 
> (current) search argument to be retained in the argument field so I do not 
> need to re-type ALL the search parameters, just the ones I want to change.
>
> I have not been able to find a way to retain the value in the search input 
> box,
>
> Does anyone know how to accomplish this?
>
> Here's the input for one of the input boxes.
>
> 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/77088a26-742b-4bb4-8f2f-b74c5375119d%40googlegroups.com.


Re: Retaining text in search input boxes

2020-02-17 Thread onlinejudge95
On Sun, Feb 16, 2020 at 11:26 AM maninder singh Kumar <
maninder.s.ku...@gmail.com> wrote:

> Wouldn't the value field make it fixed ?
>
Sure but you can always grab what value to insert from your views. If it is
the first time form is being filled than simply use nothing as value, if
the user tries to submit the form and have an error then just fill the
values with corresponding data

>
>
> [image: --]
>
> Maninder Kumar
> [image: http://]about.me/maninder.s.kumar
> 
>
>
>
>
> On Sun, Feb 16, 2020 at 12:22 AM Dick Arnold  wrote:
>
>> I have a personnel database which has to be edited to keep it current.
>> I have created search parameters to find the person to edit.
>> The exact name of the person is not always known, therefore the name
>> field for searching can contain only a few of the characters.  This can
>> create a list of several people.
>> After the search parameters are entered a "Search" button is clicked and
>> the output, if any, is displayed in a table.
>> If the search parameters need to be improved, I want the original
>> (current) search argument to be retained in the argument field so I do not
>> need to re-type ALL the search parameters, just the ones I want to change.
>>
>> I have not been able to find a way to retain the value in the search
>> input box,
>>
>> Does anyone know how to accomplish this?
>>
>> Here's the input for one of the input boxes.
>>
>> 
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Django users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to django-users+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/django-users/92cfccd1-5916-4817-ae46-c612aa462610%40googlegroups.com
>> 
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/CABOHK3SPDFdvajS9GyqhxHSvXw5eEQpHU9ax7NOtFhsM4W_wyg%40mail.gmail.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAD%3DM5eSrte_tF0h6gVpmaG6iJZ7piXiekJjUL4d2zMQgL5SiZA%40mail.gmail.com.


Re: Retaining text in search input boxes

2020-02-15 Thread maninder singh Kumar
Wouldn't the value field make it fixed ?


[image: --]

Maninder Kumar
[image: http://]about.me/maninder.s.kumar





On Sun, Feb 16, 2020 at 12:22 AM Dick Arnold  wrote:

> I have a personnel database which has to be edited to keep it current.
> I have created search parameters to find the person to edit.
> The exact name of the person is not always known, therefore the name field
> for searching can contain only a few of the characters.  This can create a
> list of several people.
> After the search parameters are entered a "Search" button is clicked and
> the output, if any, is displayed in a table.
> If the search parameters need to be improved, I want the original
> (current) search argument to be retained in the argument field so I do not
> need to re-type ALL the search parameters, just the ones I want to change.
>
> I have not been able to find a way to retain the value in the search input
> box,
>
> Does anyone know how to accomplish this?
>
> Here's the input for one of the input boxes.
>
> 
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/92cfccd1-5916-4817-ae46-c612aa462610%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CABOHK3SPDFdvajS9GyqhxHSvXw5eEQpHU9ax7NOtFhsM4W_wyg%40mail.gmail.com.


Re: Retaining text in search input boxes

2020-02-15 Thread onlinejudge95
On Sun, Feb 16, 2020 at 12:22 AM Dick Arnold  wrote:

> I have a personnel database which has to be edited to keep it current.
> I have created search parameters to find the person to edit.
> The exact name of the person is not always known, therefore the name field
> for searching can contain only a few of the characters.  This can create a
> list of several people.
> After the search parameters are entered a "Search" button is clicked and
> the output, if any, is displayed in a table.
> If the search parameters need to be improved, I want the original
> (current) search argument to be retained in the argument field so I do not
> need to re-type ALL the search parameters, just the ones I want to change.
>
> I have not been able to find a way to retain the value in the search input
> box,
>
> Does anyone know how to accomplish this?
>
> Here's the input for one of the input boxes.
>
> 
>

Set an attribute of value in your input tags, and use the form object in
your view to populate it. For reference
https://stackoverflow.com/questions/4880306/django-multiple-forms-and-keep-field-data-input-after-submission?rq=1


> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/92cfccd1-5916-4817-ae46-c612aa462610%40googlegroups.com
> 
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAD%3DM5eS8moJTCzxTt_ufn9qOxuhyXQkYAw-N2TS249oVKcweqQ%40mail.gmail.com.


Retaining text in search input boxes

2020-02-15 Thread Dick Arnold
I have a personnel database which has to be edited to keep it current.
I have created search parameters to find the person to edit.
The exact name of the person is not always known, therefore the name field 
for searching can contain only a few of the characters.  This can create a 
list of several people.
After the search parameters are entered a "Search" button is clicked and 
the output, if any, is displayed in a table.
If the search parameters need to be improved, I want the original (current) 
search argument to be retained in the argument field so I do not need to 
re-type ALL the search parameters, just the ones I want to change.

I have not been able to find a way to retain the value in the search input 
box,

Does anyone know how to accomplish this?

Here's the input for one of the input boxes.



-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/92cfccd1-5916-4817-ae46-c612aa462610%40googlegroups.com.