How to set a default form from sub-grid

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 04:24:06

问题


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.


回答1:


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. 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!



来源:https://stackoverflow.com/questions/16107663/how-to-set-a-default-form-from-sub-grid

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!