M mscientist33 Active Member Licensed User Nov 15, 2022 #1 I have one app that is using a KeyValueStore. I have a second app that needs to access and modify a value in that store. Is it possible for one app to have access to another apps KeyValueStore (they will not ever be running at the same time). I have tried to set the xui.SetDataFolder to the same folder and initialize the kvs with the same folderand dat file name but I am not having any luck. Is this possible?
I have one app that is using a KeyValueStore. I have a second app that needs to access and modify a value in that store. Is it possible for one app to have access to another apps KeyValueStore (they will not ever be running at the same time). I have tried to set the xui.SetDataFolder to the same folder and initialize the kvs with the same folderand dat file name but I am not having any luck. Is this possible?
DonManfred Expert Licensed User Longtime User Nov 16, 2022 #3 mscientist33 said: Is this possible? Click to expand... No Upvote 0
Sandman Expert Licensed User Longtime User Nov 16, 2022 #4 You could, of course, place the KVS online and make it accessible for both apps that way. Might not suit your requirements though. Upvote 0
You could, of course, place the KVS online and make it accessible for both apps that way. Might not suit your requirements though.
DonManfred Expert Licensed User Longtime User Nov 16, 2022 #5 Sandman said: You could, of course, place the KVS online and make it accessible for both apps that way. Might not suit your requirements though. Click to expand... That´s 100% not the same ;-) Sure you can create an Onlineserver and use them from both apps. That´s the suggested solution. But he was asking about two apps accessing the same Database on the device. Upvote 0
Sandman said: You could, of course, place the KVS online and make it accessible for both apps that way. Might not suit your requirements though. Click to expand... That´s 100% not the same ;-) Sure you can create an Onlineserver and use them from both apps. That´s the suggested solution. But he was asking about two apps accessing the same Database on the device.
Sandman Expert Licensed User Longtime User Nov 16, 2022 #6 DonManfred said: That´s 100% not the same ;-) Click to expand... Yep, that's 100% true. I was just throwing a wild suggestion out there, in case @mscientist33 had missed that alternative. We wouldn't want anyone to trash their awesome idea just because they didn't think of a way to have two apps communicate. Upvote 0
DonManfred said: That´s 100% not the same ;-) Click to expand... Yep, that's 100% true. I was just throwing a wild suggestion out there, in case @mscientist33 had missed that alternative. We wouldn't want anyone to trash their awesome idea just because they didn't think of a way to have two apps communicate.
M mscientist33 Active Member Licensed User Nov 16, 2022 #7 Yes, unfortunately both apps are on the same device AND the device will not have internet service. I guess I will not use a keyvaluestore and just use a text file. I was hoping by putting the kvs .dat file in a location such as "Documents" that I would be able to access it from either app. Upvote 0
Yes, unfortunately both apps are on the same device AND the device will not have internet service. I guess I will not use a keyvaluestore and just use a text file. I was hoping by putting the kvs .dat file in a location such as "Documents" that I would be able to access it from either app.
cklester Well-Known Member Licensed User Nov 16, 2022 #8 Just for curiosity's sake: Why wouldn't a KVS file be shareable? It seems to be just a "SQLite-like" file, or close enough. Upvote 0
Just for curiosity's sake: Why wouldn't a KVS file be shareable? It seems to be just a "SQLite-like" file, or close enough.
M mscientist33 Active Member Licensed User Nov 16, 2022 #9 cklester said: Just for curiosity's sake: Why wouldn't a KVS file be shareable? It seems to be just a "SQLite-like" file, or close enough. Click to expand... Thats why I really thought it would work. It would be great if it did for cross app settings and data. We can add that to a wish I guess. Upvote 0
cklester said: Just for curiosity's sake: Why wouldn't a KVS file be shareable? It seems to be just a "SQLite-like" file, or close enough. Click to expand... Thats why I really thought it would work. It would be great if it did for cross app settings and data. We can add that to a wish I guess.