Maximo Wire - The IBM Maximo Help & Discussion Forum
May 24, 2012, 12:38:54 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to Maximo Wire, the IBM Maximo help forum. Feel free to register and ask any Maximo related questions you like.
 
  Home Help Search Login Register  
*
Pages: [1]   Go Down
  Print  
Author Topic: plzz attribute in another mboset  (Read 937 times)
0 Members and 2 Guests are viewing this topic.
M.Maher
Newbie
*

Karma: 0
Posts: 4


View Profile Email
« on: February 05, 2012, 11:41:48 am »

i want to access to mboset "QuotationLine" from mboset "RFQVendor" from field class
Logged
G Jeevan
Newbie
*

Karma: 2
Posts: 30



View Profile
« Reply #1 on: February 06, 2012, 05:53:58 am »

Hi ,

I assume that your field class extends MboValueAdapter

So one possible solution is to get the MboSet of your required object in your current field class .
This can be done as follows.......

MboSetRemote mboSet = mboValue.getMbo().getMboSet("<&DynamicRelationName>", "<RequiredObject>",< where clause>);

<&DynamicRelationName> = Any name just for dynamic reference

<RequiredObject> = The required MboSet Object  "QuatationLine"

< where clause>= Any Condition if you want.This can be done using SqlFormat also.........

I think this should do it........any updates keep me posted.......

Thanks & Regards

Logged
Dileep Kumar
Newbie
*

Karma: 0
Posts: 26


View Profile Email
« Reply #2 on: February 06, 2012, 07:02:09 am »

The Below code is used to get mboset of the perticular class using relationship in field class

public class Fieldclass extends MboValueAdapter
{

Mbo mbo=getMboValue().getMbo();   
MboSetRemote mboset=mbo.getMboSet("$requisition","XREQSTATUS1","XID=:XID");
MboRemote mbo=mboset.add();
mbo.setValue("MEMO",memo, 11L);

}
Logged
M.Maher
Newbie
*

Karma: 0
Posts: 4


View Profile Email
« Reply #3 on: February 19, 2012, 08:05:38 am »

thank u for help me ..... sorry but i want to ask another question

after commit modify in my MBOSET show modification after press save button , i want to show modification after deselecting field
 
Logged
G Jeevan
Newbie
*

Karma: 2
Posts: 30



View Profile
« Reply #4 on: February 22, 2012, 12:03:10 pm »

hi can u be more specific............... Huh
Logged
M.Maher
Newbie
*

Karma: 0
Posts: 4


View Profile Email
« Reply #5 on: February 26, 2012, 01:35:51 pm »

if i modify in field ,i want to see change on field before save ,but application show me change after save button press
Logged
maurogrz
Global Moderator
Full Member
*****

Karma: 14
Posts: 111



View Profile Email
« Reply #6 on: February 27, 2012, 01:35:20 pm »

in this case you have to use the relation name used by the application to get the application data and not the saved.
also you don't need the where clause.....

Mauro
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Recent

TinyPortal v1.0 beta 4 © Bloc
Powered by MySQL Powered by PHP Powered by SMF 1.1.15 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!