Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support csv-external for defining an external instance not necessarily used for a select #271

Closed
ggalmazor opened this issue Mar 12, 2019 · 4 comments · Fixed by #522
Closed

Comments

@ggalmazor
Copy link
Contributor

getodk/xforms-spec#88 introduces a new external itemsets in csv feature to the specs. This has been already implemented in JavaRosa with getodk/javarosa#397 and it looks like we could implement this in PyXForm now too.

@lognaturel
Copy link
Contributor

lognaturel commented Apr 10, 2019

I'm pretty sure using secondary external CSV instances as itemsets already works using select_one_from_file/select_multiple_from_file. However, the resulting XML needs some manual edits because of #286. Does that sound right, @MartijnR?

Perhaps the "todo" here is to add type=csv-external by analogy to #107

@MartijnR
Copy link
Contributor

However, the resulting XML needs some manual edits because of #286.

Yes indeed.

Perhaps the "todo" here is to add type=csv-external by analogy to #107

Yes, I agree.

lincmba added a commit to lincmba/pyxform that referenced this issue May 14, 2019
fixes XLSForm#271

Signed-off-by: Lincoln Simba <[email protected]>
@MartijnR
Copy link
Contributor

MartijnR commented Jun 3, 2020

Everybody still on board with adding csv-external (similar to the existing xml-external)?

There are a bunch of cases that could result in an XML and CSV instance to be added with the same id. I think those should all output an error and fail to transform (as they currently do for similar situations using xml-external and select_..._from_file)

  • xml-external and csv-external are both present and have the same name
  • csv-external | somefile and select_one_from_file somefile.xml
  • csv-external | somefile and select_multiple_from_file somefile.xml

@MartijnR
Copy link
Contributor

MartijnR commented Jun 3, 2020

Oops, I see there is a PR already but it appears to be abandoned. It could perhaps serve as a base for a new PR.

@lognaturel lognaturel changed the title Support external CSV itemsets Support csv-external for defining an external instance not necessarily used for a select Dec 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants