Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
Elinah
@elirabalison
I know also that it's an UIDReferenceField. Is it possible to restrict the field, like nothing will appears on click on the field if the client is not selected? Then, if a client is selected, the dropdown will show only the contact which is associeted to that client?
mayhane
@mayhane
Hi everbody, I want to make 'unique field validator' for 'Client Batch ID' when add new batch. How can I do this ??
Pau Soliva
@Espurna
@XenoLight There is an old document posted in the community forum (https://community.senaite.org/t/21-cfr-part-11-compliance-gap-analysis/321). It may be outdated, but it gives you a broad idea about its status.

Hi guys, I want to create a sample but I have a problem when I try to load the contact assign to the client. on the first click, the contact dropdown shows all contacts in the system. On the second click, only contacts associated to the client appear. How can I fix this please?

@elirabalison Yes... I think his is an issue... Can you kindly report it?

Elinah
@elirabalison
Ok, I'll report it
Elinah
@elirabalison
Hello guys, I have a bug on sample type field when I want to create an analysis request. On my setup there is 461 data but when I click on the sample type field only 30 appears. How can I fix this please?
Ronald Munjoma
@ronna
Hi @elirabalison I think the system is only showing the first 30. There should be a next button at the right bottom side of the drop down list. Have you tried searching for the sample type?
Elinah
@elirabalison
image.png
Yes, but as you say only the first 30 appear
image.png
in my config I have 461 data
Ramon Bartl
@ramonski
Hi @elirabalison, this is a known limitation because of performance reasons. The filter field shows per default only 30 items and you have to type the first 3 characters to narrow down the displayed results of the other items.
NEWAGE-Labs
@NEWAGE-Labs

On the Sample ADD screen, the 'Contact' field automatically re-populates once the user has selected a 'Client'.

We want to add a 'Contact' field to our Batch ADD screen that performs that same functionality, but we noticed that simply re-creating the ReferenceUID field on the Batch does not perform the update.

Does anyone know where the functionality for that update lives?

We expected that to be functionality related to the Field or Widget, not the browser, but for 2.x is the functionality possibly in Javascript, and in senaite/core/browser/static/js/bika.lims.analysisrequest.js or senaite/core/browser/static/js/bika.lims.analysisrequest.add.js?

Elinah
@elirabalison
Hello @ramonski , thank you for answer, I've change the default data to show to 50. But what kind of performance problem may happen? Is it related to the memory?
Ramon Bartl
@ramonski
The reference field searches all of the results at once, but it should rather only load only the results of one pagesize, and the rest when requested by the user. Loading all means increased load on the server, increased memory consumption and therefore, a slower response time for everyone.
Improving that would be a great opportunity for contribution @elirabalison.
NEWAGE-Labs
@NEWAGE-Labs

Is there a way (convenient or not) to make a DateTime field editable inside a Listing View? We've been digging through the browser viewlet code and listing view javascript, but are struggling to locate what needs to be modified/added.

We were hoping using the "input_class": "datetimepicker_nofuture" could provide the functionality, but we're not having any success.

NEWAGE-Labs
@NEWAGE-Labs

Nevertheless, you need to add a custom react component field like e.g. the StringField:
https://github.com/senaite/senaite.core.listing/blob/master/src/senaite/core/listing/react/components/StringField.coffee
But change the input type to date: https://github.com/senaite/senaite.core.listing/blob/master/src/senaite/core/listing/react/components/StringField.coffee#L58

We found an old conversation on the topic, and it appears as though there is still no date nor datetime field. We will look into it for Senaite.App.Listing 2.x. If we come up with a solution we'll let everyone know.

Elinah
@elirabalison
Hi everyone, I tried to launch bin/test from the buildout directory but I got this error -bash: bin/test: No such file or directory
So how can I do if I want to launch test?
Tadas Varkalis
@olnyone_gitlab
hi, is there a way to set samples to be visible only for specific departments? im tring to configure my analysis profiles so than samples from one profile is visible for olny one department and other profile by olny the other department, but all users can see all the samples
Jeff Bullard
@Jeff-DFWEnv
@elirabalison You need to have test in your buildout.cfg. parts = test and a [test] section. See the buildout.cfg here for an example.https://github.com/senaite/senaite.lims/blob/1.x/buildout.cfg
valeriozhang
@valeriozhang
im trying to make a jsonapi call to create a record
my subpath
/senaite/@@API/senaite/v1/create
{
"portal_type": "Client",
"title": "Test Client",
"ClientID": "TEST-01",
"parent_path": "/senaite/clients"
}
my body
{
"_runtime": 0.0012619495391845703,
"message": "You are not allowed to access 'clients' in this context",
"success": false
}
my response
any ideas why i am getting this error?
when i use this as a body
{
"portal_type": "Client",
"title": "Test Client",
"ClientID": "TEST-01",
"parent_uid": "c952f2f727ac4704b42374cb8b20d83a"
}
parent_path -> parent_uid
it created a record
but i get {
"_runtime": 0.03247499465942383,
"message": "You are not allowed to create this content",
"success": false
}
401 unauthorized
and a wierd client record gets created
Febriana Pangestu
@fpangestu_gitlab
Hi! I have several samples with results and I would like to combine the samples into a project (not sure where I can combine them) and have a calculation/ analysis under the PROJECT. Does anyone know how to do it??
gbmorrison
@gbmorrison
Hi All, having a strange issue with permissions. When our Lab Manager saves a new batch an error is thrown - checking the logs the message is 'The action against the <em>batch.2021-02-08.4854563382</em> object could not be carried out. One of the following constraints caused the problem: <br><br>The object does not support this operation.<br><br>-- OR --<br><br>The currently logged-in user does not have the <b>Copy or Move</b> permission respective to the object.'
Paul VanderWeele
@faytrow

{
"_runtime": 0.0012619495391845703,
"message": "You are not allowed to access 'clients' in this context",
"success": false
}

Are you including authentication in the request?

Paul VanderWeele
@faytrow
Has anyone had any success sending requests to Senaite.JSONAPI using cURL??? All my cURL requests fail to get converted correctly into a Dictionary by the API. I think it has to do with escaped quotation marks in the BODY of the request, but it happens even when I call the request using the -d @data.jsonparameter style of POST calling with cURL.
Paul VanderWeele
@faytrow

And is there a proper syntax for creating multiple objects in 1 request? I tried using a format like

[
    {
        Object 1...
    },
    {
        Object 2...
    }
]

But it failed to converted into a proper list of dictionaries. Is there a better format?

Paul VanderWeele
@faytrow
It doesn't look like it can actually even take multiple objects. The function get_request_data() that creates the data expects a Dictionary, and throws an error when json.loads(data) returns a List type (List of Dictionaries) instead.
David Bain
@pigeonflight
Is it too way out to consider using Senaite as a lunch order management platform?
gauravkittz
@gauravkittz
i'm not a developer, but want to understand senaite.impress. Can anyone please help me with adding range remark to published results?
gauravkittz
@gauravkittz
please can someone help me with publishing of range comment from specs in impress
Stefan Gruber
@grulisco
@pigeonflight: I would rather look for a kind of "classic" billing application. The paradigms of samples, analyses and results of LIMS barely fit your needs.
yofori
@yofori
Hi, has any one had any success with sending notification by SMS. I will appreciate any help here. Thanks
NEWAGE-Labs
@NEWAGE-Labs
Is there any way to include a "Date of Analysis" in a 2Dimensional CSV instrument import (Senaite 2.x)? We see the option in the XML format, but that does not appear functional at this time.
rjwswenson
@rjwswenson
Hello, I am just beginning an investigation into Senaite, but is there a customer portal or customer portal functionality as well? E.g. Can clients with client roles log in, complete test order requests, and if we wanted to offer an API, allow them to generate an API key so that developers can then use the API key to import or exchange data via API?
Elinah
@elirabalison
Hello, I tried to bulk sampling with admin roles. The problem is that sample button doesn't appear in the admin session. How can I fix that please? Note that if I logged out and use a Sampler session the button appear and it's possible to bulk sampling.
pratiklodha95
@pratiklodha95
with senaite.sync archived, what is the best way to sync data across platforms