在asp.net中设计salesforce UI [英] Designing salesforce UI in asp.net
本文介绍了在asp.net中设计salesforce UI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我使用Soap API将salesforce与asp.net集成,使用它是否可以在salesforce中按照 asp页面自动设计UI部件。
(例如)在salesfoce中,我有三个字段(文本,电话和电子邮件),我是否可以在.net页面设计此UI。如果我删除了salesforce中的任何字段,同样的字段也应该在asp.net网页中删除。
是否可以?
谢谢,
Rajeshkumar
I integrated salesforce with asp.net using Soap API ,by using this whether I can design the UI part automatically in
asp page as per in the salesforce.
(for eg)In salesfoce I have three fields(text,phone and email), whether i can design this UI in .net page . If I delete any field in salesforce the same field should be deleted in asp.net web page also.
Is it possible?
Thanks,
Rajeshkumar
推荐答案
这真的很难,因为通常,Web是基于客户端 - 服务器模型,这对许多应用程序来说是一个非常严苛的限制:一切都发生在客户端的请求,HTTP请求上,并且没有任何东西可以推动客户端执行某些操作,例如您想要的刷新。有些人通过定期轮询和刷新来解决这些问题,这是一个真正的跛脚和浪费的交通和其他资源。
因为问题很难,我可以给你只是提示大方向。您真正需要的是服务器推送。请参阅:
http://en.wikipedia.org/wiki/Push_technology [< a href =http://en.wikipedia.org/wiki/Push_technologytarget =_ blanktitle =New Window> ^ ],
比较: http://en.wikipedia.org/wiki/Pull_technology [ ^ ],
参见:http://en.wikipedia.org/wiki/Client-server [ ^ ]。
那么,该怎么办?我建议看看SignalR产品,其中包括实现其服务器推送模型:
http: //en.wikipedia.org/wiki/SignalR [ ^ ],
http://www.asp.net/signalr [ ^ ]。
祝你好运,
-SA
This is really difficult, because, normally, Web is based on the client-server model, which is a really draconian limitation for many applications: everything happens on the client's request, HTTP request, and there is nothing to push a client to do some action like the refresh you want. Some solve such problems by periodic polling and refresh, which is a real lame and a great waste of traffic and other resources.
As the problem is difficult, I can give you only a hint for general direction. What you really need is called server push. Please see:
http://en.wikipedia.org/wiki/Push_technology[^],
compare: http://en.wikipedia.org/wiki/Pull_technology[^],
see also: http://en.wikipedia.org/wiki/Client-server[^].
So, what to do? I would advise to look at SignalR product which, among other things, implements its server push model:
http://en.wikipedia.org/wiki/SignalR[^],
http://www.asp.net/signalr[^].
Good luck,
—SA
可以检索自定义字段,因此salesforce中的自定义字段以__c结尾,因此我们可以很容易识别它。
`
for(int i = 0; i< _fields.Length; i ++)
{
Field _fieldproperty = _fields [i];
if(_fieldproperty.name.EndsWith(__ c))
{
string Labelname = _fieldproperty.label;
}
}
The custom fields can be retrieved by, Hence custom fields in salesforce ends with "__c" so we can easily identify it.
`
for (int i = 0; i < _fields.Length; i++)
{
Field _fieldproperty = _fields[i];
if (_fieldproperty.name.EndsWith("__c"))
{
string Labelname = _fieldproperty.label;
}
}
这篇关于在asp.net中设计salesforce UI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文