如何从子网格设置默认表单 [英] How to set a default form from sub-grid

查看:75
本文介绍了如何从子网格设置默认表单的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在联系人实体中创建了一个子网格,以显示该联系人的相关潜在客户记录。根据客户的要求,我们还具有通过该子网格从联系人实体创建新潜在客户的功能。到这里一切都很好。每个产品系列都有两个潜在客户表格。说家用家具潜在客户表格和办公家具潜在客户表格。我正在寻找一种功能,可以将家庭家具销售线索表单设置为默认表单,以便从联系人实体中的子网格打开。

I've created a sub-grid in Contacts Entity to show related lead records for the contact. Due to the client requirement, We also have the functionality to create a new lead from contact entity through this sub-grid. Everything is fine till here. We have two lead forms created by each product line. Say Home Furniture Lead form and Office Furniture Lead form. I'm looking for an ability to set the Home furniture lead form as a default form to open from the sub-grid in contacts entity.

当用户单击从联系人列表中的子网格添加新线索时,默认情况下,它应打开家用家具表单。如果有人可以建议实现此目的的方法或代码,那将是很好的。

When the user clicks Add new lead from the sub-grid in contacts form, it should by default open Home Furniture form. If someone can suggest a way or a code to accomplish this, that would be great.

推荐答案

如果您在此页面,您可以指定打开表单所用的表单ID。因此,您有两个选择:

If you look at the description for extraqs on this page you can specify the form id to open the form with. So you have two options:


  1. 使用javascript编辑子网格中的url。不确定是否可以,但是应该可以。

  2. 调用 OpenEntityForm javascript。

  1. Use javascript to edit the url within the subgrid. Not sure if this is possible, but it should be.
  2. Call the OpenEntityForm javascript in the onload of the lead form, after determining the correct product line, passing in the correct form id.

如果您选择了第一种方法,请告诉我们!

If you get option 1 to work, let us know!

这篇关于如何从子网格设置默认表单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆