|
![]() |
#1 |
Участник
|
Цитата:
То есть мой метод visibleCollums должен выглядеть так? X++: void visibleCollums() { // 18.02.2013 Если статус не 11 - поле код причины скрывать if(smm.PhaseId==SalesQuotationLine.Status && smm.IsAskCode==NoYes::Yes) { SalesQuotationLine_ds.object(fieldnum(SalesQuotationLine,StatusReasonCode)).visible(true); SalesQuotationLine_ds.write(); SalesQuotationLine_ds.refresh(); } else { SalesQuotationLine_ds.object(fieldnum(SalesQuotationLine,StatusReasonCode)).visible(false); } //Если стоит галка "запрашивать основное предложение -показывать основное предложение) if(smm.PhaseId == SalesQuotationLine.Status && smm.IsAskMainQuotationId == NoYes::Yes) { SalesQuotationLine_ds.object(fieldnum(SalesQuotationLine,QuotationId)).visible(true); SalesQuotationLine_ds.write(); SalesQuotationLine_ds.refresh(); } else { SalesQuotationLine_ds.object(fieldnum(SalesQuotationLine, QuotationId)).visible(false); } // 3816 18.02.2013 } это уже ведь будет не element, а Table_ds |
|
![]() |
#2 |
Ищущий знания...
|
Цитата:
Сообщение от user_ax
![]() Все поля, которые я хочу скрывать\показывать (их 2) это поля датасоурса.
То есть мой метод visibleCollums должен выглядеть так? X++: void visibleCollums() { // 18.02.2013 Если статус не 11 - поле код причины скрывать if(smm.PhaseId==SalesQuotationLine.Status && smm.IsAskCode==NoYes::Yes) { SalesQuotationLine_ds.object(fieldnum(SalesQuotationLine,StatusReasonCode)).visible(true); SalesQuotationLine_ds.write(); SalesQuotationLine_ds.refresh(); } else { SalesQuotationLine_ds.object(fieldnum(SalesQuotationLine,StatusReasonCode)).visible(false); } //Если стоит галка "запрашивать основное предложение -показывать основное предложение) if(smm.PhaseId == SalesQuotationLine.Status && smm.IsAskMainQuotationId == NoYes::Yes) { SalesQuotationLine_ds.object(fieldnum(SalesQuotationLine,QuotationId)).visible(true); SalesQuotationLine_ds.write(); SalesQuotationLine_ds.refresh(); } else { SalesQuotationLine_ds.object(fieldnum(SalesQuotationLine, QuotationId)).visible(false); } // 3816 18.02.2013 } это уже ведь будет не element, а Table_ds вызывайте element, ведь в нем вызывается нужный нам метод ![]()
__________________
"Страх перед возможностью ошибки не должен отвращать нас от поисков истины." (с) С Уважением, Елизаров Артем |
|
![]() |
#3 |
Участник
|
Цитата:
а, visibleFields, да, но тогда что в нём писать?? X++: SalesQuotationLine_ds.object(fieldnum(SalesQuotationLine,StatusReasonCode_ZTR)).visible(smm.PhaseId ==SalesQuotationLine.Status_ZTR && smm.IsAskCode_ZTR); SalesQuotationLine_ds.object(fieldnum(SalesQuotationLine, QuotationId)).visible(smm.PhaseId ==SalesQuotationLine.Status_ZTR && smm.IsAskMainQuotationId_ZTR); Последний раз редактировалось user_ax; 20.02.2013 в 12:44. |
|
![]() |
#4 |
Ищущий знания...
|
Цитата:
![]()
__________________
"Страх перед возможностью ошибки не должен отвращать нас от поисков истины." (с) С Уважением, Елизаров Артем |
|
|
Опции темы | Поиск в этой теме |
Опции просмотра | |
|