74 questions
-1
votes
2
answers
64
views
How can i can implement user behavior detection ? like usual login pattern. And for unusual time it will trigger a validation through otp
I have made a login system with keycloak token generation using endpoints. I want to implement a tool or library which we can use to detect user behavior on basis of login time. If a log in time is ...
0
votes
1
answer
64
views
Hide Items from item sublist drop down on Purchase Order - Netsuite
I want to hide some items from item sublist dropdown on purhcase order, the conditions are
if user has subsidiary "1", then only it can see items which have "special items" ...
0
votes
0
answers
72
views
React userEvent.type not typing
I can't figure out why userEvent.type is not actually typing. I've used async/await. I even tried to use ".then()" but it just skips that code block. The actual application works fine. I can ...
0
votes
1
answer
138
views
How to pass parameters from Netsuite client script to user event script?
I hope you are well. I have my user event script to create custom button on netsuite message record. I have client script to refresh the page on button click. I am able to get selected template value ...
0
votes
1
answer
54
views
Can we retain selected value after reloading the page user event beforeload?
I hope you are well.
I'm working on a record creation. I select the value from dropdown field. After that reload the record, I need to:
Retain the selected value from the dropdown.
Repopulate the ...
0
votes
1
answer
26
views
How to retain values on invoice after throwing an error using user event script?
I have developed line level amount validation user event script. I throw error if amount is invalid. When user enters invalid amount, user can see error but once he go back those lines go away from ...
0
votes
1
answer
277
views
How to show alert or popup in a user event script?
I am doing item line amount validation. I want to restrict user from saving the invoice record if user adds negative amount on any of the item amount line.
Is there any way to show alerts or popups ...
0
votes
2
answers
1k
views
How to test shift+tab key press in React Testing Library?
I have this simple test in React Testing Library. I am using RTL version 12 and "@testing-library/user-event" version "^13.5.0". Moving focus with userEvent.tab() works well, but ...
1
vote
1
answer
6k
views
How to blur an input field using Testing Library UserEvent?
How can I blur an input field using @testing-library/user-event? I know there's fireEvent.blur, but is there an alternative with userEvent?
-1
votes
1
answer
77
views
pygame timer not counting down linear or lagging badly [duplicate]
I'm making a simple word search style game and trying to get a timer but the timer is decreasing too quickly before it settles.
TIMER_EVENT = pygame.USEREVENT + 1
pygame.time.set_timer(TIMER_EVENT, ...
0
votes
1
answer
171
views
NetSuite Email send with diff author
I am trying to send bulk email to multiple recipients but there is one problem which is I have to send the mail not my current user id I have to change current user id and give another how can I ...
0
votes
2
answers
167
views
I have customrecord in which I have to set value of status to approved. I have used record.setValue, it is changing in the log but not in the record
var currentStatus = reversalRecord.getValue({
fieldId: 'status'
});
log.debug('Current Status before Set:', currentStatus);
reversalRecord.setValue({
fieldId: '...
2
votes
1
answer
1k
views
How to select text in React Testing Library
Using react testing library I would like to highlight text
How do I do that with React Testing Library
const textElement = screen.getByTestId('text-editor').children[0].children[0];
// TODO: ...
0
votes
0
answers
111
views
Creating objects of user defined classes with scene builder and javafx
I'm facing a really disturbing problem. I'm working on a simple chess project game using javafx and scene builder. I have created the board (without pieces) as 8×8 gridpane then I added 64 square with ...
1
vote
1
answer
931
views
Ignore braces as special characters in userEvent.type
I'm using @testing-library/user-event to try to type in a text box containing JSON. Sadly, it appears that because { is a special character in the string, I get an error when running this:
await ...