ID |
Date |
Icon |
Author |
Author Email |
Category |
OS |
ELOG Version |
Subject |
69130
|
Wed Apr 1 15:16:43 2020 |
| Stefan Ritt | stefan.ritt@psi.ch | Question | Windows | 3.14 | Re: How to add bulk client list at once |
Options are limited to 200. To add options dynamically, use
Extendable options = <name>
as desribed in the manual.
Stefan
Sunilkumar wrote: |
Please let me know how to add Button for adding client next to Client Mnemonics.
I need to add bulk client lists in the Elog page there are 1000+ clients .
I need to select client from the drop down list if its not there i need to add them using Add Client Button
Please let me know the steps.
|
|
69132
|
Wed Apr 1 19:27:53 2020 |
| Sunilkumar | sunilanaveri@gmail.com | Question | Windows | 3.14 | Re: How to add bulk client list at once |
Hi Stefan
Thanks for Response , It helped me lot .
is it possible to give refence to include 1000 clients in one file and adding that referece file to Roptions ?
Once we click Client Mnemonic it should fetch the data from that file and return the Client Name .
Stefan Ritt wrote: |
Options are limited to 200. To add options dynamically, use
Extendable options = <name>
as desribed in the manual.
Stefan
Sunilkumar wrote: |
Please let me know how to add Button for adding client next to Client Mnemonics.
I need to add bulk client lists in the Elog page there are 1000+ clients .
I need to select client from the drop down list if its not there i need to add them using Add Client Button
Please let me know the steps.
|
|
|
69133
|
Wed Apr 1 20:01:26 2020 |
| Stefan Ritt | stefan.ritt@psi.ch | Question | Windows | 3.14 | Re: How to add bulk client list at once |
No, that's not possible with elog.
Sunilkumar wrote: |
Hi Stefan
Thanks for Response , It helped me lot .
is it possible to give refence to include 1000 clients in one file and adding that referece file to Roptions ?
Once we click Client Mnemonic it should fetch the data from that file and return the Client Name .
Stefan Ritt wrote: |
Options are limited to 200. To add options dynamically, use
Extendable options = <name>
as desribed in the manual.
Stefan
Sunilkumar wrote: |
Please let me know how to add Button for adding client next to Client Mnemonics.
I need to add bulk client lists in the Elog page there are 1000+ clients .
I need to select client from the drop down list if its not there i need to add them using Add Client Button
Please let me know the steps.
|
|
|
|
69322
|
Tue Mar 23 23:05:20 2021 |
| Chris Körner | chris.koerner@physik.uni-halle.de | Question | Linux | 3.14 | automatically obtain entry ID from search |
Hi,
in our application I want to have, let's say in the simplest case, two logbooks. One as a database of samples we fabricated and one as a logbook for measurements. When a measurement on a sample is done and an entry is submitted to the 2nd logbook, I want to automatically edit or reply to the corresponding entry in the 1st logbook. For example I want to append a line in the free text field to have a full log of what happened to a sample there. We reference our samples with a unique auto-generated ID in both logbooks. Is is somehow possible to search the 1st logbook for that ID or any other attribute and obtain the elog entry ID since the elog client will need that ID for editing an entry? |
69323
|
Wed Mar 24 10:01:34 2021 |
| Stefan Ritt | stefan.ritt@psi.ch | Question | Linux | 3.14 | Re: automatically obtain entry ID from search |
You would have to do that on the scrip level. Use "curl" to search a logbook. Like following URL would search for all entries in this forum where you are the authoer, then return the entries in CSV format:
https://elog.psi.ch/elogs/Forum/?mode=CSV1&Author=k%F6rner
Then you can parese this CSV file and extract the entry ID, which you can pass to the elog client to submit a new entry to the other logbook.
Stefan
Chris Körner wrote: |
Hi,
in our application I want to have, let's say in the simplest case, two logbooks. One as a database of samples we fabricated and one as a logbook for measurements. When a measurement on a sample is done and an entry is submitted to the 2nd logbook, I want to automatically edit or reply to the corresponding entry in the 1st logbook. For example I want to append a line in the free text field to have a full log of what happened to a sample there. We reference our samples with a unique auto-generated ID in both logbooks. Is is somehow possible to search the 1st logbook for that ID or any other attribute and obtain the elog entry ID since the elog client will need that ID for editing an entry?
|
|
69329
|
Wed Mar 24 18:02:07 2021 |
| Sebastian Schenk | sebastian.schenk@physik.uni-halle.de | Question | Linux | 3.14 | Re: automatically obtain entry ID from search |
Hi Chris,
Additional the the HTTP request sugested by Stefan you could also use the search functionality of the elog python module.
For the HTTP request you may also need a way to provide credentials or transmit cookies, if the elog needs authentification.
I think your request to alter the samples logbook will be called with "execute new" or similar at submit time of the entry to the measurement logbook.
Then both methods will have the issue that elogd is still processing the submit and can't answer new requests until the old is finished.
Have a look at https://elog.psi.ch/elogs/Forum/69328 for possible workarounds.
Best wishes,
Sebastian
Stefan Ritt wrote: |
You would have to do that on the scrip level. Use "curl" to search a logbook. Like following URL would search for all entries in this forum where you are the authoer, then return the entries in CSV format:
https://elog.psi.ch/elogs/Forum/?mode=CSV1&Author=k%F6rner
Then you can parese this CSV file and extract the entry ID, which you can pass to the elog client to submit a new entry to the other logbook.
Stefan
Chris Körner wrote: |
Hi,
in our application I want to have, let's say in the simplest case, two logbooks. One as a database of samples we fabricated and one as a logbook for measurements. When a measurement on a sample is done and an entry is submitted to the 2nd logbook, I want to automatically edit or reply to the corresponding entry in the 1st logbook. For example I want to append a line in the free text field to have a full log of what happened to a sample there. We reference our samples with a unique auto-generated ID in both logbooks. Is is somehow possible to search the 1st logbook for that ID or any other attribute and obtain the elog entry ID since the elog client will need that ID for editing an entry?
|
|
|
Draft
|
Thu Oct 21 14:57:14 2021 |
| Chris Körner | chris.koerner@physik.uni-halle.de | Bug report | Linux | 3.14 | wrong server HTTP status code when login failed |
Hi,
I am trying to access elog through a python client (https://github.com/paulscherrerinstitute/py_elog) and found a strage strange behavior which may be related server side problem. The python script generates get/post messages via the python requests library. This works fine so far and I can view and post messages. However, if a wrong user/password is provided, the server still returns HTTP status code "200 OK", although login failed. Instead, it should return something like "401 Unauthorized". This behavior later causes problems since the python client thinks login was successful. After experimenting around I think this could be caused by a server side misconfiguration. Any ideas?
I am not sure if this imformation is important: We use LDAP as user/password provider for elog. |
69402
|
Thu Oct 21 15:17:52 2021 |
| Chris Körner | chris.koerner@physik.uni-halle.de | Bug report | Linux | 3.14 | wrong server HTTP status code when login failed |
Hi,
I am trying to access elog through a python client (https://github.com/paulscherrerinstitute/py_elog) and found a strage strange behavior which may be related server side problem. The python script generates get/post messages via the python requests library. This works fine so far and I can view and post messages. However, if a wrong user/password is provided, the server still returns HTTP status code "200 OK", although login failed. Instead, it should return something like "401 Unauthorized". This behavior later causes problems since the python client thinks login was successful. After experimenting around I think this could be caused by a server side misconfiguration. Any ideas?
I am not sure if this imformation is important: We use LDAP as user/password provider for elog. |