Closed Bug 12554 Opened 25 years ago Closed 25 years ago

[RDF, JS] Can't make changes to RDF datasource persistent in JS

Categories

(Core Graveyard :: RDF, defect, P3)

defect

Tracking

(Not tracked)

VERIFIED INVALID

People

(Reporter: tao, Assigned: waterson)

Details

How do I make my changes to RDF datasource persistent (serialize to
the .rdf)? I thought that datasource.Flush() would do it.

Does it work in JavaScript function? The console said "Flush()" is not a
function (instead of crashing) in my Aug-19-99 NT build.

Anyway, you can try it out by uncommenting the ds.Flush() line in
chrome/global/content/default/strres.js and clicking on
"QA| Languages|en-US".
Summary: [RDF, JS] Can't make changes to RDF datasource persistent in JS → [RDF, JS] Can't make changes to RDF datasource persistent in JS
Try it this way:

ds.QueryInterface(Components.interfaces.nsIRDFRemoteDataSource).Flush();
Yup, that does it! But, why would the flush() function live in the "remote"
data source?
This thread eventually ends up discussing why we decided to do this:

news://news.mozilla.org/37616ECC.554F286E%40netscape.com

Tao, if this is working, can you INVALID the bug?
QA Contact: phillip → tao
You own this bug; you need to INVLID it. But, I had changed the QA contact to
me so I can verify it.

Thanks
Status: NEW → RESOLVED
Closed: 25 years ago
Resolution: --- → INVALID
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.