Default value to view attribute using other attribute of same row
Some time requirement will come in development to set some view-obejct attribute based on other attribute. This post will guide you how to achieve this functionality without even using the groovy expression.
Here in this post I am using ViewRowImpl to achieve this requirement.
I defined ViewRowImpl as shown below
By checking include accessors means setter/getter for each attribute is generated in ViewRowImpl class.
Here we have 3 column SUID, ID and Name on save i want to copy id data to SUID fields.
public void setId(Number value) {
setAttributeInternal(ID, value);
setAttributeInternal(SUID, value);
}
setAttributeInternal(ID, value);
setAttributeInternal(SUID, value);
}
above code successfully set ID column data to SUID.
find the sample application with source and table script Application
There are two methods
ReplyDelete1) public void setSuid(Number value) {
setAttributeInternal(SUID, value);
}
2) public void setId(Number value) {
setAttributeInternal(ID, value);
setAttributeInternal(SUID, value);
}
Is second method overriding the value of SUID that is set by first method? and I think we should also use the same method execution sequence....
This is because requirement was to override the SUID by ID.
DeleteYou can do the same decoratively as well. At the default expression of suid set the expression like #{object.id} and in the control hints of suid add the dependent on id filed.
ReplyDeleteit is work on Application module run, but when i run it on fragments, an error appear "suid is required" although the value is appear in the attribute?
ReplyDeleteI appreciate you sharing this article. Really thank you! Much obliged.
ReplyDeleteThis is one awesome blog article. Much thanks again.
sap online training
software online training
sap sd online training
hadoop online training
sap-crm-online-training
Pretty good post. I just came across your site and wanted to say that I’ve really enjoyed reading your posts. In any case I’ll be subscribing to your feed and I hope you will keep a good work!Cheer!
ReplyDeleteoracle online training
sap fico online training
dotnet online training
qa-qtp-software-testing-training-tutorial
Hi Amit,
ReplyDeleteHope you would help me out in resolving the below requirement about how to do it in oracle OAF:
I had a employee table with name, salary, %increase, total salary and the table has only employee and salary information, this i have to show in a editable table format which i am able to show:
Here are the requirements:
1. when the user enters %increase the total should automatically calculate like (salary + (salary*%increase/100))
employee salary [%increase] total salary
======================================
abc 1000 2 1020
xyz 2000 3 2060
2. when the user enters total salary then %increase should automatically calculate
employee salary %increase [total salary]
======================================
abc 1000 2 1020
xyz 2000 3 2060
3. when the user clicks [Add2%] button then %increase for all the rows should show as 2 and also the total salary column should automatically calculate as per the %increase and salary
employee salary [%increase] [total salary]
=======================================
abc 1000 2 1020
xyz 2000 2 2040
[Add2%] button clicked
Hope you would help me, how to handle these requirements.
Thanks in advance,
Rhea
Hi Amit,
ReplyDeleteHope you would help me out in resolving the below requirement about how to do it in oracle OAF:
I had a employee table with name, salary, %increase, total salary and the table has only employee and salary information, this i have to show in a editable table format which i am able to show:
Here are the requirements:
1. when the user enters %increase the total should automatically calculate like (salary + (salary*%increase/100))
employee salary [%increase] total salary
======================================
abc 1000 2 1020
xyz 2000 3 2060
2. when the user enters total salary then %increase should automatically calculate
employee salary %increase [total salary]
======================================
abc 1000 2 1020
xyz 2000 3 2060
3. when the user clicks [Add2%] button then %increase for all the rows should show as 2 and also the total salary column should automatically calculate as per the %increase and salary
employee salary [%increase] [total salary]
=======================================
abc 1000 2 1020
xyz 2000 2 2040
[Add2%] button clicked
Hope you would help me, how to handle these requirements.
Thanks in advance,
Rhea
Hi Amit,
ReplyDeleteHope you would help me out in resolving the below requirement about how to do it in oracle OAF:
I had a employee table with name, salary, %increase, total salary and the table has only employee and salary information, this i have to show in a editable table format which i am able to show:
Here are the requirements:
1. when the user enters %increase the total should automatically calculate like (salary + (salary*%increase/100))
employee salary [%increase] total salary
======================================
abc 1000 2 1020
xyz 2000 3 2060
2. when the user enters total salary then %increase should automatically calculate
employee salary %increase [total salary]
======================================
abc 1000 2 1020
xyz 2000 3 2060
3. when the user clicks [Add2%] button then %increase for all the rows should show as 2 and also the total salary column should automatically calculate as per the %increase and salary
employee salary [%increase] [total salary]
=======================================
abc 1000 2 1020
xyz 2000 2 2040
[Add2%] button clicked
Hope you would help me, how to handle these requirements.
Thanks in advance,
Rhea
Hi Amit,
ReplyDeleteHope you would help me out in resolving the below requirement about how to do it in oracle OAF:
I had a employee table with name, salary, %increase, total salary and the table has only employee and salary information, this i have to show in a editable table format which i am able to show:
Here are the requirements:
1. when the user enters %increase the total should automatically calculate like (salary + (salary*%increase/100))
employee salary [%increase] total salary
======================================
abc 1000 2 1020
xyz 2000 3 2060
2. when the user enters total salary then %increase should automatically calculate
employee salary %increase [total salary]
======================================
abc 1000 2 1020
xyz 2000 3 2060
3. when the user clicks [Add2%] button then %increase for all the rows should show as 2 and also the total salary column should automatically calculate as per the %increase and salary
employee salary [%increase] [total salary]
=======================================
abc 1000 2 1020
xyz 2000 2 2040
[Add2%] button clicked
Hope you would help me, how to handle these requirements.
Thanks in advance,
Rhea
I was recommended this web site by means of my cousin.
ReplyDeleteI am now not certain whether this post is written through him as nobody else recognise such precise about my difficulty. You're amazing! Thank you!
selenium training in Tambaram
selenium training in Velachery
selenium training in Omr
selenium training in Annanagar
selenium training in Chennai
Antalya
ReplyDeleteAntep
Burdur
Sakarya
istanbul
YFK1R
Bursa
ReplyDeleteMersin
izmir
Rize
Antep
JK33
whatsapp goruntulu show
ReplyDeleteshow
R6Q
whatsapp görüntülü show
ReplyDeleteücretli.show
TVWJY
https://titandijital.com.tr/
ReplyDeletetrabzon parça eşya taşıma
zonguldak parça eşya taşıma
kayseri parça eşya taşıma
edirne parça eşya taşıma
WVBH2
izmir evden eve nakliyat
ReplyDeleteyalova evden eve nakliyat
çorum evden eve nakliyat
eskiÅŸehir evden eve nakliyat
sivas evden eve nakliyat
QH2
şırnak evden eve nakliyat
ReplyDeletemuÄŸla evden eve nakliyat
hatay evden eve nakliyat
niÄŸde evden eve nakliyat
ardahan evden eve nakliyat
38KÄ°
kırşehir evden eve nakliyat
ReplyDeletegiresun evden eve nakliyat
tekirdaÄŸ evden eve nakliyat
ardahan evden eve nakliyat
izmir evden eve nakliyat
7UÄ°SJP
3FCB6
ReplyDeletePursaklar Boya Ustası
Erzurum Lojistik
Ankara Evden Eve Nakliyat
Kütahya Parça Eşya Taşıma
Bingöl Şehir İçi Nakliyat
Çerkezköy Ekspertiz
Adıyaman Şehir İçi Nakliyat
Altındağ Fayans Ustası
Sakarya Şehir İçi Nakliyat
1730F
ReplyDeleteÇerkezköy Marangoz
Karabük Lojistik
Tokat Evden Eve Nakliyat
Eryaman Fayans Ustası
Çorum Şehirler Arası Nakliyat
Bitmex Güvenilir mi
Sakarya Şehirler Arası Nakliyat
Karapürçek Fayans Ustası
Zonguldak Şehir İçi Nakliyat
A4128
ReplyDeleteBartın Şehirler Arası Nakliyat
Yenimahalle Fayans Ustası
Osmaniye Lojistik
Osmaniye Şehir İçi Nakliyat
Rize Şehir İçi Nakliyat
Çerkezköy Oto Lastik
Isparta Parça Eşya Taşıma
Ä°zmir Evden Eve Nakliyat
Isparta Şehir İçi Nakliyat
6FBE3
ReplyDeleteÇerkezköy Oto Lastik
Çorum Şehirler Arası Nakliyat
Çankaya Boya Ustası
Tunceli Şehirler Arası Nakliyat
Adıyaman Parça Eşya Taşıma
Btcturk Güvenilir mi
Flare Coin Hangi Borsada
Tekirdağ Boya Ustası
Erzurum Evden Eve Nakliyat
9F3E1
ReplyDeletetunceli yabancı sohbet
ığdır sohbet sitesi
sinop canlı sohbet odası
bitlis kızlarla canlı sohbet
uşak parasız sohbet
kilis ücretsiz sohbet uygulaması
hatay görüntülü sohbet uygulamaları ücretsiz
trabzon bedava sohbet
aksaray telefonda rastgele sohbet
A24BE
ReplyDeleteçorum telefonda kadınlarla sohbet
hakkari telefonda rastgele sohbet
Trabzon Sohbet Sitesi
yabancı görüntülü sohbet uygulamaları
ordu yabancı canlı sohbet
erzurum rastgele sohbet
Adana Mobil Sohbet Siteleri
Amasya Canlı Sohbet Odası
kırıkkale sesli sohbet siteleri
56575
ReplyDeleteBinance Borsası Güvenilir mi
Periscope Takipçi Hilesi
Twitter Beğeni Satın Al
Binance Hesap Açma
Discord Sunucu Üyesi Satın Al
Soundcloud Takipçi Satın Al
Binance Referans Kodu
MEME Coin Hangi Borsada
Telegram Abone Hilesi
9F9724AA0A
ReplyDeleteinstagram takipci satis