The port 4900 is to hfsql
Trial with 27017
Bonjour visiteur, Merci de vous Inscrire ou de vous connectez pour voir les liens!
-
Bonjour tout le monde ! Veillez consulter la Politique de forum pour comprendre nos règles, Merci a vous !Rejeter la notice
How to link MongoDB with windev & windev mobile?
Discussion dans 'Windev Mobile' créé par sanyad, Avr 8, 2020.
Page 1 sur 2
Used this connection string but not able to connect:
cntMDB is mongoConnection("mongodb+srv://sandeep:sandeep@cluster0-h3pti.mongodb.net/test?retryWrites=true&w=majority")
FOR EACH MyDatabase OF cntMDB.Database
Info(MyDatabase.Name)
END
When I execute a string, no response, no error nothing.
Where I am wrong?
Another code:
cntMDB is mongoConnection
cntMDB = MongoCreate("mongodb+srv://sandeep:sandeep@cluster0-h3pti.mongodb.net/test?retryWrites=true&w=majorit")
FOR EACH MyDatabase OF cntMDB..Database
Info(MyDatabase..Name)
END
This code shows following error :
Error at line 12 of Click BTN_NoName1 process.
A fatal error occurred on the element of 'mongoConnexion' type and prevents from using it.
This error occurred at line 12 of the 'Click BTN_NoName1' process.
The MongoDB <mongodb+srv://sandeep:sandeep@cluster0-h3pti.mongodb.net/test?retryWrites=true&w=majorit> connection string is not valid.
And how to pass parameters for authentication of MongoDb Database by windev mentioned in Environment of MongoDB Container inside docker like
MONGO_INITDB_ROOT_USERNAME: "admin"
MONGO_INITDB_ROOT_PASSWORD: "password"
MONGO_INITDB_DATABASE: "database_name"
When I declared these environment inside docker contained of MongoDB , I can't connect mongodb by Studio3T as well as other 3rd party connector and obviously with windev..
Someone please help.
The port is not 4900 but 27017 on synology.
I don't know Why it work on Windows with 4900.
Hi. "Unit examples (windev): Native access to MongoDB" have been checked and I successfully connected with my Synology NAS Server (DOcker MongoDB) nut I am intended to connect to mongodb.com where my actual database is stored and continuously updated.
The URI script like "mongodb+srv://sandeep:sandeep@cluster0-h3pti.mongodb.net/test?retryWrites=true&w=majority" is for connection with mongodb from windev. I tried with this script like
gclConnection=MongoCreate("mongodb+srv://sandeep:sandeep@cluster0-h3pti.mongodb.net/test?retryWrites=true&w=majority") checked but error saying connection string invalid.
Also tried gclConnection=MongoCreate("mongodb+srv://sandeep:sandeep@cluster0-h3pti.mongodb.net/test?retryWrites=true&w=majority:27017") - Same error
Also tried
gclConnection=MongoCreate("mongodb+srv://sandeep:sandeep@cluster0-h3pti.mongodb.net/test?retryWrites=true&w=majority:27017/Db_planner")
but connection error is still there.
In the example (supplied with windev), connection script example with MongoDB server (mongodb+srv://sandeep:s..... etc) is not supplied so even after a lot of hit and trials, I am not able to connect with Database collection.
Kindly help me to connect with my MongoDB from windev at URI Script
"mongodb+srv://sandeep:sandeep@cluster0-h3pti.mongodb.net/test?retryWrites=true&w=majority"
Database - DB_Planner
TIA
Hello, to interface your windev or windev mobile app to mongodb in docker container you must use a webservice for example in nodejs it's not difficult and if you want i can help you and the group also about that.
sanyad apprécie ceci.
Hi kdev66 & poppy , Thanks for a reply. I successfully interfaced MongoDB in docker container (Of Synology NAS - mongodb://192.168.1.23:27017) and it is working well with my windev Project.
I successfully interfaced same Docker Mongo DB (in my Synology NAS) by the DDNS server. I didn't need Webservice in both cases as MongoDB has native access with windev.
My problem is to interface my app with actual MongoDB server atBonjour visiteur, Merci de vous Inscrire ou de vous connectez pour voir les liens!
which gives a URI string like ""mongodb+srv://sandeep:sandeep@cluster0-h3pti.mongodb.net/test?retryWrites=true&w=majority" to connect with the user app for interfacing with the database.
I am not able to connect my Database Collection on "mongodb+srv://sandeep:sandeep@cluster0-h3pti.mongodb.net/test?retryWrites=true&w=majority" address as windev says wrong connection string. I know that access to MongoDB.com through URI is possible in windev but how?
I need help for the scenario
Please help meby sharing any script of node.js or other webservice to connect WD with MongoDB ..
TIA
Pl
Hello, to interface your windev or windev mobile app to mongodb in docker container you must use a webservice for example in nodejs it's not difficult and if you want i can help you and the group also about that.Cliquez pour agrandir...
Try with
"mongodb+srv://sandeep:sandeep@cluster0-h3pti.mongodb.com/test?retryWrites=true&w=majority"
Tried but
Error comes :
WL call:
Process of 'Click BTN_Connection_to_the_database' (WIN_MongoDB_9042020.BTN_Connection_to_the_database), line 4
'MongoCreate' function, syntax 0
What happened?
The MongoDB <mongodb+srv://sandeep:sandeep@cluster0-h3pti.mongodb.com/test?retryWrites=true&w=majority> connection string is not valid.
Error code: 770800
Level: non-fatal error
Dump of the error of 'wd240big.dll' module (24.0.92.0).
Identifier of detailed information (.err): 770800
Debugging information:
IEWDBig=13.1
Module=<WDBig>
Version=<24.0.92.0>
Fonction (77,15)
Additional information:
EIT_PILEWL :
Click BTN_Connection_to_the_database (WIN_MongoDB_9042020.BTN_Connection_to_the_database), line 4
EIT_DATEHEURE : 13/04/2020 20:35:36
EIT_TYPE_WDFILE : <2>
EIT_IDCODE : <18>
Hello, I'm so sorry to be so late but i tried to have an easy example about webservice to interface windev mobile 24 with mongodb.
My example for webservice is from github so it's easy to understand it's in nodejs.
webservice and database are both in localhost but it's easy to try that online
I did a simple interface in WM to try GET and POST
Page 1 sur 2