添加功能区项目或调用更新项目的方法后,功能区无法正确刷新.有时在调整窗口大小后可以,但大多数时候面板处于折叠状态.
我尝试了所有我能想到的功能,ReposPanels,RecalcWidths,RecalcLayout等等,但没有任何效果......
我想在数据库中插入或删除后刷新listView ..我搜索,我发现notifyDataSetChanged()但我不知道如何使用它..
有人可以解释一下如何做到这一点?即使以不同的方式......
昨天,我遇到了一个用于显示“视图”(即访问该页面的人数)的网站。当我单击刷新按钮时,计数开始增加。
然后我编写了这个小应用程序来增加观看次数。
browser = new WebBrowser();
for (int index = 0; index < 250000; index++)
{
{
browser.Navigate("url");
System.Threading.Thread.Sleep(100);
}
}
Run Code Online (Sandbox Code Playgroud)
我报告了这个错误,他们已经纠正了它。现在,即使我按 F5 按钮,视图计数也不会增加。但是当我运行上面的程序时,计数开始增加。
有人可以解释一下导航功能和刷新(F5)之间的区别吗?
我目前拥有CRM 2013内部部署的开发环境.在我的自定义实体中,运行以下JavaScript代码:
function UpdateBPF() {
var requests = [];
requests.push(Xrm.Page.getAttribute('description').setRequiredLevel('none'));
requests.push(Xrm.Page.getAttribute('categoryid').setRequiredLevel('none'));
requests.push(Xrm.Page.getAttribute('priority').setRequiredLevel('none'));
requests.push(Xrm.Page.getAttribute('initialtype').setValue(1));
requests.push(Xrm.Page.data.save());
requests.push(event.returnValue = false);
$.when.apply(undefined, requests).always(function () {
Xrm.Page.data.setFormDirty(false);
RefreshForm();
});
};
function RefreshForm() {
Mscrm.ReadFormUtilities.openInSameFrame(window._etc, Xrm.Page.data.entity.getId());
};
Run Code Online (Sandbox Code Playgroud)
我正在做的事情:
切换选项集后我的代码正在做什么:
为什么我将大部分步骤推入请求变量?
什么有效:
CRM 2013在线问题:
我试过保存的内容:
Xrm.Page.data.save()Xrm.Page.data.entity.save()我尝试刷新的内容:
Xrm.Page.data.refresh()Mscrm.ReadFormUtilities.openInSameFrame(window._etc, Xrm.Page.data.entity.getId())Xrm.Utility.openEntityForm("service_ticket", Xrm.Page.data.entity.getId(), null)var url = Xrm.Page.context.getClientUrl();
window.open(url + "/main.aspx?etn=ticket&pagetype=entityrecord&id=" + Xrm.Page.data.entity.getId() + "&newWindow=false", "_blank", null, false);当我调试时,一步一步地通过顶部发布的代码,它获得当时的.when,.apply和.always但SKIPS内部的一切.我认为这总意味着它总是运行...
当我尝试:
Xrm.Page.data.save().then( …Run Code Online (Sandbox Code Playgroud) 我想从Listview中删除一个项目,并在删除项目后一次刷新Listview.怎么可能?
我正在使用从数据库中使用JSON Parsing获取所有项目并在单击按钮时删除所选项目.从数据库中成功删除但Listview一次不刷新.怎么做?
我正在使用Json Parsing.不是本地数据库.
在这种情况下,如何在删除项目时刷新Listview?请指导我.提前致谢.
我的代码是Detail.java文件
public class Detail extends Activity {
ListView lstDetail = null;
/** String */
String urlGetDetailData = null;
/** Declare another variable for Listview */
Adapter1 adapter1 = null;
ArrayList<Detail> myList = new ArrayList<Detail>();
/** Hashmap for ListView */
ArrayList<HashMap<String, String>> dataList = null;
/** JSON Node names */
public static final String TAG_MEMBER_ID = "mem_id";
public static final String TAG_ID = "id";
public static final String TAG_USER_ID = "userid";
public static final String …Run Code Online (Sandbox Code Playgroud) 在我的表单中,我有一个 datagridview,需要每 2 秒自动刷新一次,而无需关闭应用程序。我已使用以下计时器代码来尝试实现这一目标。我已将此代码放置在我的表单加载中,这也是我的 datagridview 代码所在的位置:
Dim timer As New Timer()
timer.Interval = 2000
AddHandler timer.Tick, AddressOf timer_Tick
timer.Start()
Private Sub timer_Tick(ByVal sender As Object, ByVal e As EventArgs)
Me.DataGridView1.Refresh()
End Sub
Run Code Online (Sandbox Code Playgroud)
然而,它所做的只是闪烁,实际上并没有刷新 datagridview。我的数据网格已连接到 Access 数据库并且未绑定,我使用 SQL 进行了绑定。我究竟做错了什么?
我有select和button:
<select id="s">
<option id="o1">O1</option>
<option id="o2">O2</option>
</select>
<button id="a">O1 -> O11</button>
Run Code Online (Sandbox Code Playgroud)
我想O11在按下按钮后看到选择:
$('#s').click(function(){
$('#o1').text('O11');
})
Run Code Online (Sandbox Code Playgroud)
但只有在单击选择后才选择刷新.
我是访问新手,我想要做的是带有条件的选择,因此我使用向导创建了一个查询,并使用表单中的文本设置了条件 ([Forms]![Form1]![Transacao]) 和创建了一个第一次运行查询的按钮效果很好,但是当我输入其他内容并单击该按钮时,数据不会刷新。我必须做什么才能刷新?我试图在按钮的事件点击上添加刷新,但没有奏效。
在此先感谢您的帮助。
我有一个已更新的 TextView,但在我最小化并重新打开应用程序之前我看不到刷新。这是执行该操作的代码。
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
bleAdapter = ((BluetoothManager) getSystemService(BLUETOOTH_SERVICE)).getAdapter();
Set<BluetoothDevice> pairedDevices = bleAdapter.getBondedDevices();
for (BluetoothDevice device : pairedDevices) {
device.connectGatt(this, true, new BluetoothGattCallback() {
@Override
public void onConnectionStateChange(BluetoothGatt gatt, int status, int newState) {
super.onConnectionStateChange(gatt, status, newState);
TextView state;
switch (newState) {
case BluetoothProfile.STATE_CONNECTED:
state = (TextView)findViewById(R.id.state);
state.setText("Connected = True");
state.setTextColor(Color.GREEN);
break;
case BluetoothProfile.STATE_DISCONNECTED:
state = (TextView)findViewById(R.id.state);
state.setText("Connected = False");
state.setTextColor(Color.RED);
break;
}
}
});
}
}
Run Code Online (Sandbox Code Playgroud)
我需要刷新那个 TextView 吗?我做错了什么吗?
我正在用 Angular 5 编写一个应用程序。
我正在使用离子刷新器来刷新页面,如果出现错误或成功返回,我想取消微调器,因此基本上是一个 finally 块。
我需要刷新以停止旋转并在任何结果(成功或错误)中返回到默认位置。
我怎样才能用我的代码实现这一点?这是我尝试过的,但出现错误:
html
<ion-content>
<ion-refresher slot="fixed" (ionRefresh)="refresh($event)"></ion-refresher>
<div *ngIf="data">
{{ data }}
</div>
</ion-content>
Run Code Online (Sandbox Code Playgroud)
成分
export class UserInfoComponent implements OnInit {
data: any;
constructor(private userInfoService: UserInfoService) {}
ngOnInit() {
this.userInfoService
.getEmployeeInfo()
.subscribe((response) => {
this.data = response;
});
}
refresh(event) {
this.userInfoService
.getEmployeeInfo()
//.pipe(
//.finally(() => event.complete())
//)
.subscribe((response) => {
this.data = response;
event.complete(); //this works but what if there was an error
})
//.finally(() => event.complete());
//Property 'finally' does not exist …Run Code Online (Sandbox Code Playgroud)