这是我的模特
OColumn state_order = new OColumn("state_order", OSelection.class)
.addSelection("draft","New")
.addSelection("paid","Paid")
.addSelection("cancel","Cancelled")
.addSelection("done","Posted")
.addSelection("invoiced","Invoiced")
在我的片段中,我需要读取state_order值 这是我的代码
public void onViewBind(View view, Cursor cursor, ODataRow row) {
OControls.setText(view, R.id.state, row.getString("state_order"));
}
但他告诉我虚假的价值 我能做些什么!
答案 0 :(得分:0)
字段function openNewSheet() {
var spreadsheetId = YOUR_ID_HERE;
var url = "https://docs.google.com/spreadsheets/d/"+spreadsheetId;
var html = "<script>window.open('" + url + "');google.script.host.close();</script>";
var userInterface = HtmlService.createHtmlOutput(html);
SpreadsheetApp.getUi().showModalDialog(userInterface, "Open Sheet");
}
必须存在于服务器中,且名称相同
即使它有效,您也会获得state_order
而不是draft
,并且要获取值(而不是键),您需要添加本地计算列:
Draft Quotation