Search found 571 matches

by unixkd
Fri Jul 21, 2023 3:01 pm
Forum: eXpress++ Support
Topic: I NEED A UNIQUE NUMBER GENERATOR FUNCTION
Replies: 8
Views: 7725

Re: I NEED A UNIQUE NUMBER GENERATOR FUNCTION

Hi Roger If it needs to be unique, you can't use a random generator. Is the uniqueness needed for a database record id? Not intend for database id. It is transaction document ID. I am thinking of something deriviable from Date()+Seconds()+Computer ID. The computer ID must be SERVER ID for all connec...
by unixkd
Thu Jul 20, 2023 9:44 pm
Forum: eXpress++ Support
Topic: I NEED A UNIQUE NUMBER GENERATOR FUNCTION
Replies: 8
Views: 7725

I NEED A UNIQUE NUMBER GENERATOR FUNCTION

Hi All

I need a function that can generate Unique number.

What I found close to it is ot4xb function cGenRndStr(10,.T.) but it generate alpha numeric strings

Thanks

Joe
by unixkd
Thu Jul 20, 2023 1:28 am
Forum: CXP / Web Development
Topic: PowerWeb app example - Article Codebook with 1.000.000 Recs (Part 6)
Replies: 10
Views: 17932

Re: PowerWeb app example - Article Codebook with 1.000.000 Recs (Part 6)

Can PowerWeb be used with SQLExpress ? I don't use Alaska DBEs

Thanks

Joe
by unixkd
Fri Jun 09, 2023 4:32 am
Forum: eXpress++ Support
Topic: Chilkat JSON Object
Replies: 15
Views: 12179

Re: Chilkat JSON Object

Hi Tom This is the detailed session log from my request. ---- Sending ---- POST /mapi/1/sessions/cenima-test/pepperoni-lekki202301 HTTP/1.1 Host: uat1.numero.co Accept: */* Accept-Encoding: UTF-8 Content-Type: application/json Content-Length: 1488 Content-Encoding: identity Authorization: Basic Y2Vu...
by unixkd
Fri Jun 09, 2023 3:06 am
Forum: eXpress++ Support
Topic: Chilkat JSON Object
Replies: 15
Views: 12179

Re: Chilkat JSON Object

Hi Tom

Thanks for your response

Chilkat has Http:PostJson2() with a simple example which I think should be easier to use.

I tried it and now I am getting error 404: The requested resource could not be found but may be available again in the future.

Any clue

Joe.
by unixkd
Thu Jun 08, 2023 12:53 am
Forum: eXpress++ Support
Topic: Chilkat JSON Object
Replies: 15
Views: 12179

Re: Chilkat JSON Object

Hi Chris Thanks for your response. It is a request to a rest-api with the json in the body I tried the code below, it return nil. Pls what am I doing wrongly and is there any means to get the error info ? #include "ASINET.CH" Function NumeroUpload() LOCAL cJsonText := Numero():New():JsonTemplate():c...
by unixkd
Wed Jun 07, 2023 11:23 am
Forum: eXpress++ Support
Topic: Chilkat JSON Object
Replies: 15
Views: 12179

Re: Chilkat JSON Object

Hi Tom I need your help to finalise this assignment: I need to upload the json content to the test server detail given to me below: Hi Joe, I’ve setup the credentials on our UAT server for development/testing: URL: https://uat1.numero.co/mapi/1/sessions/cenima-test/{THEATRE_ID} User: cenima-test Pas...
by unixkd
Tue Jun 06, 2023 12:40 pm
Forum: eXpress++ Support
Topic: Chilkat JSON Object
Replies: 15
Views: 12179

Re: Chilkat JSON Object

Hi Tom

Worked PERFECTLY !!!

I cannot thank you enough, you are great

Joe
by unixkd
Tue Jun 06, 2023 7:45 am
Forum: eXpress++ Support
Topic: Chilkat JSON Object
Replies: 15
Views: 12179

Re: Chilkat JSON Object

I am using the code below to generate the template but not getting the desired result Function NumeroJsonTemplate() Local json := CreateObject('Chilkat_9_5_0.JsonObject') json:EmitCompact := 0 success := json:UpdateString("theatre.name", "Megaplex") success := json:UpdateString("theatre.address", "2...
by unixkd
Tue Jun 06, 2023 7:20 am
Forum: eXpress++ Support
Topic: Chilkat JSON Object
Replies: 15
Views: 12179

Chilkat JSON Object

Hi ALL I have a requirement to generate data according to the JSON format below. I am using Chilkat JSON object class but finding it difficult. Anybody with solution will be greatly appreciated. Note I am using Xbase++ 1.9 Thanks Joe Example request: { "theatre": { "name": "Megaplex", "address": "24...