Skip to content

Commit

Permalink
fix sdmx helper command builder (add missing dataflow)Ã
Browse files Browse the repository at this point in the history
  • Loading branch information
amattioc committed May 14, 2024
1 parent c79f526 commit b670db1
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion BUILD
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20240430-1150
20240514-1518
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public ToolCommandsFrame(String dataflow, String queryString, String provider) t
panel.add(rCommandLabel, gbc_rCommandLabel);

if(SDMXVersion.V2 == SDMXClientFactory.getProviders().get(provider).getSdmxVersion())
rCommandText = new JTextField("result <- getTimeSeries(provider='" + provider + "', id='" + queryString + "');");
rCommandText = new JTextField("result <- getTimeSeries(provider='" + provider + "', id='" + dataflow + "/" + queryString + "');");
else
rCommandText = new JTextField("result <- getTimeSeries2(provider='" + provider + "', dataflow='" + dataflow + "', filter='" + queryString + "');");
rCommandLabel.setLabelFor(rCommandText);
Expand All @@ -129,7 +129,7 @@ public ToolCommandsFrame(String dataflow, String queryString, String provider) t
panel.add(matlabCommandLabel, gbc_matlabCommandLabel);

if(SDMXVersion.V2 == SDMXClientFactory.getProviders().get(provider).getSdmxVersion())
matlabCommandText = new JTextField("result = getTimeSeries('" + provider + "', '" + queryString + "');");
matlabCommandText = new JTextField("result = getTimeSeries('" + provider + "', '" + dataflow + "/" + queryString + "');");
else
matlabCommandText = new JTextField("result = getTimeSeriesTable2('" + provider + "', '" + dataflow + "', '', '" + queryString + "');");
matlabCommandLabel.setLabelFor(matlabCommandText);
Expand All @@ -152,7 +152,7 @@ public ToolCommandsFrame(String dataflow, String queryString, String provider) t
panel.add(sasCommandLabel, gbc_sasCommandLabel);

if(SDMXVersion.V2 == SDMXClientFactory.getProviders().get(provider).getSdmxVersion())
sasCommandText = new JTextField("%gettimeseries(provider=\"" + provider + "\", tsKey=\"" + queryString + "\", metadata=1);");
sasCommandText = new JTextField("%gettimeseries(provider=\"" + provider + "\", tsKey=\"" + dataflow + "/" + queryString + "\", metadata=1);");
else
sasCommandText = new JTextField("NOT AVAILABLE");
sasCommandLabel.setLabelFor(sasCommandText);
Expand All @@ -175,7 +175,7 @@ public ToolCommandsFrame(String dataflow, String queryString, String provider) t
panel.add(stataCommandLabel, gbc_stataCommandLabel);

if(SDMXVersion.V2 == SDMXClientFactory.getProviders().get(provider).getSdmxVersion())
stataCommandText = new JTextField("getTimeSeries " + provider + " " + queryString + " \"\" \"\" 0 0");
stataCommandText = new JTextField("getTimeSeries " + provider + " " + dataflow + "/" + queryString + " \"\" \"\" 0 0");
else
stataCommandText = new JTextField("NOT AVAILABLE");
stataCommandLabel.setLabelFor(stataCommandText);
Expand Down
Binary file modified RJSDMX/inst/java/SDMX.jar
Binary file not shown.
Binary file modified STATA/jar/SDMX.jar
Binary file not shown.

0 comments on commit b670db1

Please sign in to comment.