Hi Jeff,
I am following your instruction above mentioned in our ASP page.
I have an "Bank Details" tab in Order page.In that page I want to select bank name (SSA) field.
In Bank Master entity I stored "Bank Name" and "Currency".
record = CRM.FindRecord("orders", "orde_orderquoteid="+UseId);
var currency = record.Orde_currency;
EntryBankDetail = CRM.GetBlock("BankName");
BankIDBlock = CRM.GetBlock("entry");
with(BankIDBlock)
{
EntryType = 56;
LookUpFamily = 'bankdetails';
DefaultType = 20; //with current entity
SearchSQL = "bank_currency="+currency;
FieldName = "orde_bankname";
Caption = "Bank Name:";
CaptionPos = CapTop;
Width = 30;
NewLine = false;
}
EntryToDisplay = EntryBankDetail.AddBlock(BankIDBlock);
Container.AddBlock(EntryToDisplay);
The SearchSQL is working fine. But after choose the bank name I am not able to save that value in the order page. Its become null only.
Any work around I need to do..?
Thanks in Advance