我正在尝试使用Rblpapi软件包通过R访问Bloomberg。我正在执行以下命令
library(Rblpapi)
con <- blpConnect()
opt <- c("START_DT"="19990101", "END_DT"="20160101")
bds("CPI YOY Index","ECO_RELEASE_DT_LIST", options = opt, con = con)
blpDisconnect(con)
我收到以下错误,&#34;错误:子元素&#39;(null)&#39;不存在。&#34;。它与选项有关。我可以使用这些选项在excel中获取数据,所以我不确定缺少什么。非常感谢任何帮助。
答案 0 :(得分:0)
当你省略开始和结束日期时,我可以正常工作:
EditText UserNameEt;
EditText EmailEt;
String email;
String username;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_add_patient);
UserNameEt = (EditText) findViewById(R.id.et1);
EmailEt = (EditText) findViewById(R.id.et2);
username = UserNameEt.getText().toString();
email = EmailEt.getText().toString();
final TextView tv = (TextView) findViewById(R.id.tv);
ParseQuery<ParseObject> lotsOfWins = ParseQuery.getQuery("User");
lotsOfWins.whereEqualTo("email",email);
ParseQuery<ParseObject> fewWins = ParseQuery.getQuery("User");
fewWins.whereEqualTo("username", username);
List<ParseQuery<ParseObject>> queries = new ArrayList<ParseQuery<ParseObject>>();
queries.add(lotsOfWins);
queries.add(fewWins);
ParseQuery<ParseObject> query = ParseQuery.or(queries);
query.findInBackground(new FindCallback<ParseObject>() {
@Override
public void done(List<ParseObject> objects, ParseException e) {
if (true) {
tv.setText("Patient found");
} else {
tv.setText("Patient Not found");
}
}
});
String Result = tv.getText().toString();
if (Result=="Patient found"){
Button fill = (Button) findViewById(R.id.button);
fill.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Intent i = new Intent(AddPatient.this,Patients.class);
startActivity(i);
}
});
}
}
}
另请注意,我们更喜欢将错误报告等作为GH的发行票。