Categories
Mastering Development

Check for special characters in every JSON field

I have a JSON obj like below – let json = { “mobileNumber”: “9876543210”, “firstName”: “firstName”, “environment”: “environment”, “MORE_DATA”: { “sessionId”: “sessionId”, “check”: “before”, “mobileTrue”: “some<>!” } } I want to check if all the JSON fields do not have special characters in them. I can individually access each field and test it like this […]

Categories
CMS Development Magento

How to import orders programmatically

Hi am currently looking for a way on how to import orders from magento 1 to 2 i have already extracted orders data from magento 1 using standalone script but now the challenge is how to import that csv file in magento 2. i have tried to create a custom order in magento 2 by […]

Categories
Development

Spring Boots – org.hibernate.id.IdentifierGenerationException

This is my first Spring boot application and I am getting org.hibernate.id.IdentifierGenerationException. I went through other StackOverflow questions and tried options mentioned. Added unique and nullable for Id. This is not an auto generated id and my Entity looks like below: @Entity @Table(name=”TBL_EMPLOYEES”) public class EmployeeEntity { @Id @Column(name=”emp_id”, unique=true, nullable=false) private Long emp_id; @Column(name=”first_name”) […]

Categories
Development

Cannot get arrey out of “request-reply” module

I am trying to create a JSON array for our web app from a MSSQL database. For this I use the following components: telekom/webhook:receive telekom/mssql:selectAction select * from [dbo].[perso] telekom/request-reply:reply { “personalnr”: personalnr, “firstname”: firstname, “name”: name, “email”: email, “holidays”: holidays } You can see in the dashboard that all 20 data records are read […]

Categories
Database Development MySQL SQL

I am running a web app and want to update my SQL Server user profile database with C# code but no matter what I do I cannot get it to work

I am trying to create a MyAccount page for a website I am making using ASP.NET and Bootstrap with html and C# running in the background for our objects. We are using SQL Server to run our databases and I am having a LOT of troubles getting my updates to go through. I am using […]

Categories
Database Development MySQL SQL

I am running a web app and want to update my SQL user profile database with C# code but no matter what I do I cannot get it to work

I am trying to create a MyAccount page for a website I am making using ASP.Net and Bootstrap with html and C# running in the background for our objects. We are using SQL to run our databases and I am having a LOT of troubles getting my updates to go through. I am using a […]

Categories
Development Java Javascript

Jakarta EE Javascript – reloading the page gives the initial list after deletion

I am trying to understand how can be realized the standard task of displaying a list of persons in web app using JavaScript & Jakarta EE. The ready code that I am using shows correctly the table for first time loading and when deleting an item, it is removed from the list. But after reloading […]

Categories
Development

Update global dictionary/list from within an @app.route in Flask

I’m trying to find a way to update a dictionary (global) from within a function in a flask app. I want to store information about users that create an account in a dictionary like this. user { ‘key’: {‘key1′:’value1’, ‘key2′:’value2′} } But I can’t seem to be able to update the dict or list from […]

Categories
Development

.NET Core seems to transform my POST request into GET requests

I am sending POST request to my .NET CORE app with Postman and Insomnia, and my breakpoints in the [HttpPost] methods are hit, but the body is empty, and on debugging Visual Studio shows me that the request is a GET Request. My StartupClass: namespace MyBuildingRestfulWebWithCore { public class Startup { public Startup(IConfiguration configuration) { […]

Categories
Development HTTP

post http request : The getter ‘length’ was called on null flutter

I want to create a user when I call my API. I created a Future with the URL and I call my model in the screen page. I get all data in my form but when I call my API, I have this error : The getter ‘length’ was called on null… User model : […]