Reading Attributes from different context nodes in the same view
Hi,
I have added a new field as part of an enhancement for Trade Promotions. This field is a checkbox and part of the context node TRADE in the view TPMOE/HeaderEOF. This field will be checked or unchecked using a logic in the background.
The logic will be based on an attribute (Fund Plan ID) which is part of another context node FUNDPLAN in the same view.
How can I read the attribute of FUNDPLAN context node in TRADE context node?
A sample code will be quite helpful as I am new to CRM 2007.
Thanks,
Abhishek
Edited by: Abhishek Periwal on Oct 16, 2008 2:35 PM
Hi Abhishek,
If I understand your question correctly, you would like to access the Fund plan ID (in a different context node) in the getter setter methods of the check box attribute which you have added.
The code snippet mentioend by sudeep works perfectly fine when you are making any checks in the view implementation class. But since you are in the getter setter methods of the context class, this doesnot work as "me" always refers to the class instance in which you are present.
Now in this case what you need to do is :
1) create an attribute <view_controller> in your context class. Here the context is TRADE. The type of this attribute wud be same as the view controller class CL_TPMOE_HEADEREOF0_IMPL
2) Go to the view controller class and redefine the method
DO_VIEW_INIT_ON_ACTIVATION. This method is called only once when the view is loaded for the first time.
3) In this method, put the following code
me->typed_context->(Trade)->[view_controller] = me.
by the above code, you are setting the newly created attribute to the view controller instance.
4) The next step would be, go back to your getter setter methods or what ever it may be, try referring to the Fund plan ID by the code snippet mentioned below
data: lr_entity type ref to cl_crm_bol_entity.
lr_entity ?= me->[view_controller]->typed_context->[the context node in which the fund plan id is present]->get_current().
lv_field_value = lr_entity->get_property_as_String( **pass the field name here ).
This should definitely resolve the problem.
Thanks,
Vinay
Similar Messages
-
Retrieve data from other context node within the same context
Hi Experts,
I want to redefine method BUILD_TABLE for a table context node and I need to access data from another context node within the same context. I have looked through the methods of class CL_BSP_WD_CONTEXT_NODE_TV but could not find a mean of retrieving the other context nodes.
Any ideas?
Thanks a lot. Your help is appreciated.
Cheers,
JensHi Jens,
Check this [wiki|http://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=201066680] it should be helpful.
Regards,
Shobhit -
Reading attributes of different context nodes
Hello,
I want to read attributes of BP_DATA/TaxNumberList Node: BUILHEADER from Node BUILTAXNUMBER.
I have tried all without success. In GENIL Browser they are not related.
What can i do?
Best Regards
JMHi
I checked in the Model Browser. Seems 'BuilTaxNumber' has 'BuilHeader' as parent.
Can you validate once in TCODE GENIL_MODEL_BROWSER for ONEORDER Component set.
Regards,
Masood Imrani S. -
Access attribute of a context node in another context node of the same view
Hi all,
I want to acess value of an attribute PERNR of context node CUSTOMERS in another context node AUTHENTICATION of the same view. A sample syntax would be helpful .
Thanks,You didn't specify your version of Oracle so here are two options. If 10.2 or greater, use XMLTable, else use the ExtractValue option.
-- The WITH simply simulates your existing table that I do not have.
WITH fake_tab AS
(SELECT XMLTYPE('<?xml version="1.0" encoding="ISO-8859-1"?>
<Settings>
<Setting Name="A1" Value="N"/>
<Setting Name="A2" Value="N"/>
<Setting Name="A3" Value="SOMEVALUE"/>
<Setting Name="A4" Value="N"/>
<Setting Name="A5" Value="Y"/>
<Setting Name="A6" Value="N"/>
</Settings>
') tab_col
FROM dual)
-- For 10.2 and higher use this SELECT
SELECT a5
FROM fake_tab,
XMLTABLE('/Settings'
PASSING fake_tab.tab_col
COLUMNS
a5 VARCHAR2(10) PATH 'Setting[@Name="A5"]/@Value');
-- For 10.1 and before
SELECT ExtractValue(tab_col, '/Settings/Setting[@Name="A5"]/@Value')
FROM fake_tab; -
How to use attributes from different context nodes in one view?
I am VERY new to the concept of CRM and currently working on creating an alternate version of the BP_HEAD_SEARCH. With help from SAPPRESSs book 'SAP CRM Web Client' i was ble to create my own simple Z-component.
However after going back and forth the book and the forum (including this [article|https://wiki.sdn.sap.com/wiki/display/CRM/Howtoaddanexistingfieldtoasearchpageofadifferent+component]) i was not able to find a solution to my problem. My current search uses BuilHeaderAdvancedSearch as context node for searching. But the search should also be able to use attributes from BuilActivity, which is directly related to BuilHeader. I can't seem to find a way to get attributes from BuilActivity into the search window of my component without having to change SAP-Standard.
Is this really the only way? Please advise on possible code and insertion point.Any suggestions?
-
Can I create different Coherence nodes in the same cluster with defferent?
Can I create different Coherence nodes in the same cluster with defferent cache-config.xml file ?
Can a cache be distributed in these deffirent nodes?Yes. You can create different Coherence nodes in the same cluster with defferent cache-config.xml files as long as you use the same tangosol-coherence.xml file and the same tangosol-coherence-override.xml file. But you cannot store the cache data in the different nodes (started with different cache-config file). In other word, a node only create caches in their own's modes which are started with the same cache-config.xml file.
See the following demo:
I start a cache server using the cache config file examples-cache-server.xml. Then I start a storage-disabled cache console (cache client) using the cache config file coherence-cache-config.xml. Both of them using the same tangosol-coherence.xml file and the same tangosol-coherence-override.xml file.
The cache server uses a cache service PartitionedPofCache. But the client side is using the Distributedcache service. The cluster address is same 224.3.5.2.
The cluster name is also samme. They know each other.
D:\coherence\lib>D:\examples\java\bin\run-cache-server.cmd
D:\coherence\lib>D:\examples\java\bin\run-cache-server.cmd
The system cannot find the file D:\coherence.
The system cannot find the file C:\Oracle\Middleware\jdk160_11.
2009-12-22 12:09:31.400/4.987 Oracle Coherence 3.5.2/463 <Info> (thread=main, member=n/a): Loaded operational configurat
ion from resource "jar:file:/D:/coherence/lib/coherence.jar!/tangosol-coherence.xml"
2009-12-22 12:09:31.450/5.037 Oracle Coherence 3.5.2/463 <Info> (thread=main, member=n/a): Loaded operational overrides
from resource "jar:file:/D:/coherence/lib/coherence.jar!/tangosol-coherence-override-dev.xml"
2009-12-22 12:09:31.470/5.057 Oracle Coherence 3.5.2/463 <D5> (thread=main, member=n/a): Optional configuration override
"/tangosol-coherence-override.xml" is not specified
2009-12-22 12:09:31.540/5.127 Oracle Coherence 3.5.2/463 <D5> (thread=main, member=n/a): Optional configuration override
"/custom-mbeans.xml" is not specified
Oracle Coherence Version 3.5.2/463
Grid Edition: Development mode
Copyright (c) 2000, 2009, Oracle and/or its affiliates. All rights reserved.
2009-12-22 12:09:33.864/7.451 Oracle Coherence GE 3.5.2/463 <Info> (thread=main, member=n/a): Loaded cache configuration
from "file:/D:/examples/java/resource/config/examples-cache-config.xml"
2009-12-22 12:09:39.983/13.570 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=n/a): Service Cluster joined t
he cluster with senior service member n/a
2009-12-22 12:09:43.187/16.774 Oracle Coherence GE 3.5.2/463 <Info> (thread=Cluster, member=n/a): Created a new cluster
"cluster:0xD3FB" with Member(Id=1, Timestamp=2009-12-22 12:09:38.06, Address=192.168.8.80:8088, MachineId=24656, Locatio
n=process:144, Role=CoherenceServer, Edition=Grid Edition, Mode=Development, CpuCount=1, SocketCount=1) UID=0xC0A8085000
000125B75D888C60501F98
2009-12-22 12:09:43.508/17.095 Oracle Coherence GE 3.5.2/463 <D5> (thread=Invocation:Management, member=1): Service Mana
gement joined the cluster with senior service member 1
2009-12-22 12:09:46.582/20.169 Oracle Coherence GE 3.5.2/463 <D5> (thread=DistributedCache:PartitionedPofCache, member=1
): Service PartitionedPofCache joined the cluster with senior service member 1
2009-12-22 12:09:46.672/20.259 Oracle Coherence GE 3.5.2/463 <Info> (thread=DistributedCache:PartitionedPofCache, member
=1): Loading POF configuration from resource "file:/D:/examples/java/resource/config/examples-pof-config.xml"
2009-12-22 12:09:46.702/20.289 Oracle Coherence GE 3.5.2/463 <Info> (thread=DistributedCache:PartitionedPofCache, member
=1): Loading POF configuration from resource "jar:file:/D:/coherence/lib/coherence.jar!/coherence-pof-config.xml"
2009-12-22 12:09:47.734/21.321 Oracle Coherence GE 3.5.2/463 <Info> (thread=main, member=1): Started DefaultCacheServer.
SafeCluster: Name=cluster:0xD3FB
Group{Address=224.3.5.2, Port=35463, TTL=4}
MasterMemberSet
ThisMember=Member(Id=1, Timestamp=2009-12-22 12:09:38.06, Address=192.168.8.80:8088, MachineId=24656, Location=process
:144, Role=CoherenceServer)
OldestMember=Member(Id=1, Timestamp=2009-12-22 12:09:38.06, Address=192.168.8.80:8088, MachineId=24656, Location=proce
ss:144, Role=CoherenceServer)
ActualMemberSet=MemberSet(Size=1, BitSetCount=2
Member(Id=1, Timestamp=2009-12-22 12:09:38.06, Address=192.168.8.80:8088, MachineId=24656, Location=process:144, Rol
e=CoherenceServer)
RecycleMillis=120000
RecycleSet=MemberSet(Size=0, BitSetCount=0
Services
TcpRing{TcpSocketAccepter{State=STATE_OPEN, ServerSocket=192.168.8.80:8088}, Connections=[]}
ClusterService{Name=Cluster, State=(SERVICE_STARTED, STATE_JOINED), Id=0, Version=3.5, OldestMemberId=1}
InvocationService{Name=Management, State=(SERVICE_STARTED), Id=1, Version=3.1, OldestMemberId=1}
DistributedCache{Name=PartitionedPofCache, State=(SERVICE_STARTED), LocalStorage=enabled, PartitionCount=257, BackupCo
unt=1, AssignedPartitions=257, BackupPartitions=0}
2009-12-22 12:12:29.737/183.324 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): Member(Id=2, Timestamp=20
09-12-22 12:12:29.541, Address=192.168.8.80:8089, MachineId=24656, Location=process:1188, Role=CoherenceConsole) joined
Cluster with senior member 1
2009-12-22 12:12:30.498/184.085 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): Member 2 joined Service M
anagement with senior member 1
2009-12-22 12:12:31.860/185.447 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): TcpRing: connecting to me
mber 2 using TcpSocket{State=STATE_OPEN, Socket=Socket[addr=/192.168.8.80,port=8089,localport=2463]}
2009-12-22 12:12:51.338/204.925 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=1): Member 2 joined Service D
istributedCache with senior member 2The following command starts a cache client.
D:\coherence\bin>coherence.cmd
D:\coherence\bin>coherence.cmd
** Starting storage disabled console **
java version "1.6.0_11"
Java(TM) SE Runtime Environment (build 1.6.0_11-b03)
Java HotSpot(TM) Server VM (build 11.0-b16, mixed mode)
2009-12-22 12:12:21.054/3.425 Oracle Coherence 3.5.2/463 <Info> (thread=main, member=n/a): Loaded operational configurat
ion from resource "jar:file:/D:/coherence/lib/coherence.jar!/tangosol-coherence.xml"
2009-12-22 12:12:21.355/3.726 Oracle Coherence 3.5.2/463 <Info> (thread=main, member=n/a): Loaded operational overrides
from resource "jar:file:/D:/coherence/lib/coherence.jar!/tangosol-coherence-override-dev.xml"
2009-12-22 12:12:21.365/3.736 Oracle Coherence 3.5.2/463 <D5> (thread=main, member=n/a): Optional configuration override
"/tangosol-coherence-override.xml" is not specified
2009-12-22 12:12:21.415/3.786 Oracle Coherence 3.5.2/463 <D5> (thread=main, member=n/a): Optional configuration override
"/custom-mbeans.xml" is not specified
Oracle Coherence Version 3.5.2/463
Grid Edition: Development mode
Copyright (c) 2000, 2009, Oracle and/or its affiliates. All rights reserved.
2009-12-22 12:12:29.316/11.687 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=n/a): Service Cluster joined t
he cluster with senior service member n/a
2009-12-22 12:12:29.356/11.727 Oracle Coherence GE 3.5.2/463 <Info> (thread=Cluster, member=n/a): Failed to satisfy the
variance: allowed=16, actual=20
2009-12-22 12:12:29.356/11.727 Oracle Coherence GE 3.5.2/463 <Info> (thread=Cluster, member=n/a): Increasing allowable v
ariance to 17
2009-12-22 12:12:29.807/12.178 Oracle Coherence GE 3.5.2/463 <Info> (thread=Cluster, member=n/a): This Member(Id=2, Time
stamp=2009-12-22 12:12:29.541, Address=192.168.8.80:8089, MachineId=24656, Location=process:1188, Role=CoherenceConsole,
Edition=Grid Edition, Mode=Development, CpuCount=1, SocketCount=1) joined cluster "cluster:0xD3FB" with senior Member(I
d=1, Timestamp=2009-12-22 12:09:38.06, Address=192.168.8.80:8088, MachineId=24656, Location=process:144, Role=CoherenceS
erver, Edition=Grid Edition, Mode=Development, CpuCount=1, SocketCount=1)
2009-12-22 12:12:29.977/12.348 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=n/a): Member 1 joined Service
Management with senior member 1
2009-12-22 12:12:29.977/12.348 Oracle Coherence GE 3.5.2/463 <D5> (thread=Cluster, member=n/a): Member 1 joined Service
PartitionedPofCache with senior member 1
2009-12-22 12:12:30.578/12.949 Oracle Coherence GE 3.5.2/463 <D5> (thread=Invocation:Management, member=2): Service Mana
gement joined the cluster with senior service member 1
SafeCluster: Name=cluster:0xD3FB
Group{Address=224.3.5.2, Port=35463, TTL=4}
MasterMemberSet
ThisMember=Member(Id=2, Timestamp=2009-12-22 12:12:29.541, Address=192.168.8.80:8089, MachineId=24656, Location=proces
s:1188, Role=CoherenceConsole)
OldestMember=Member(Id=1, Timestamp=2009-12-22 12:09:38.06, Address=192.168.8.80:8088, MachineId=24656, Location=proce
ss:144, Role=CoherenceServer)
ActualMemberSet=MemberSet(Size=2, BitSetCount=2
Member(Id=1, Timestamp=2009-12-22 12:09:38.06, Address=192.168.8.80:8088, MachineId=24656, Location=process:144, Rol
e=CoherenceServer)
Member(Id=2, Timestamp=2009-12-22 12:12:29.541, Address=192.168.8.80:8089, MachineId=24656, Location=process:1188, R
ole=CoherenceConsole)
RecycleMillis=120000
RecycleSet=MemberSet(Size=0, BitSetCount=0
Services
TcpRing{TcpSocketAccepter{State=STATE_OPEN, ServerSocket=192.168.8.80:8089}, Connections=[]}
ClusterService{Name=Cluster, State=(SERVICE_STARTED, STATE_JOINED), Id=0, Version=3.5, OldestMemberId=1}
InvocationService{Name=Management, State=(SERVICE_STARTED), Id=1, Version=3.1, OldestMemberId=1}
Map (?):
2009-12-22 12:12:49.505/31.906 Oracle Coherence GE 3.5.2/463 <Info> (thread=main, member=2): Loaded cache configuration
from "jar:file:/D:/coherence/lib/coherence.jar!/coherence-cache-config.xml"
2009-12-22 12:12:51.358/33.729 Oracle Coherence GE 3.5.2/463 <D5> (thread=DistributedCache, member=2): Service Distribut
edCache joined the cluster with senior service member 2
<distributed-scheme>
<!--
To use POF serialization for this partitioned service,
uncomment the following section
<serializer>
<class-
name>com.tangosol.io.pof.ConfigurablePofContext</class-
name>
</serializer>
-->
<scheme-name>example-distributed</scheme-name>
<service-name>DistributedCache</service-name>
<backing-map-scheme>
<local-scheme>
<scheme-ref>example-binary-backing-map</scheme-ref>
</local-scheme>
</backing-map-scheme>
<autostart>true</autostart>
</distributed-scheme>But when I try to store data into cache from the client side, it report error message: it's staorage-disabled. It shows that this cache console cannot store the data in the existing cache server because then using different cache config files.
Map (ca3): cache ca2
<distributed-scheme>
<!--
To use POF serialization for this partitioned service,
uncomment the following section
<serializer>
<class-
name>com.tangosol.io.pof.ConfigurablePofContext</class-
name>
</serializer>
-->
<scheme-name>example-distributed</scheme-name>
<service-name>DistributedCache</service-name>
<backing-map-scheme>
<local-scheme>
<scheme-ref>example-binary-backing-map</scheme-ref>
</local-scheme>
</backing-map-scheme>
<autostart>true</autostart>
</distributed-scheme>
Map (ca2): put 1 one
2009-12-22 14:00:04.999/6467.370 Oracle Coherence GE 3.5.2/463 <Error> (thread=main, member=2):
java.lang.RuntimeException: Storage is not configured
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$BinaryMap.onMissing
Storage(DistributedCache.CDB:9)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$BinaryMap.ensureReq
uestTarget(DistributedCache.CDB:34)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$BinaryMap.put(Distr
ibutedCache.CDB:22)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$BinaryMap.put(Distr
ibutedCache.CDB:1)
at com.tangosol.util.ConverterCollections$ConverterMap.put(ConverterCollections.java:1541)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache$ViewMap.put(Distrib
utedCache.CDB:1)
at com.tangosol.coherence.component.util.SafeNamedCache.put(SafeNamedCache.CDB:1)
at com.tangosol.coherence.component.application.console.Coherence.processCommand(Coherence.CDB:581)
at com.tangosol.coherence.component.application.console.Coherence.run(Coherence.CDB:39)
at com.tangosol.coherence.component.application.console.Coherence.main(Coherence.CDB:3)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.tangosol.net.CacheFactory.main(CacheFactory.java:1400) -
Reading the Context Node in the same Component
Dear Gurus,
I have made enhancement to standard view and functionality is working fine.
Now i need to read the different context node (Different view) from the same component.
I try to do the way Webdynrpo read the context node but here there is Wizard and i stucked :-(.
Can you plz suggest or post small code to read context node.
Regards.
****Poorna****Hi,
If those two views are assinged to one viewset in runtime repositoty, you can read the secod view by following code:
lv_viewname = me->get_viewarea_content( 'Upper' ). " here(me =view1)
IF lv_viewname IS NOT INITIAL.
lr_viewctrl = me->get_subcontroller_by_viewname( lv_viewname ).
IF lr_viewctrl IS BOUND.
from here you can read the context nodes.
Regards,
S Reddy -
Cannot read attribute of another context node in a context node
Hello Sap gurus,
such a long time that I do not post any issue. Now unfortunately time has come down.
My functional requirement is that whenever the status of an opportunity is changed from "Won" to "Booked", then I have to retrieve the Status reason previously marked for the status "Won" and paste into the attribute Status_Reason (CON_KEY) for status "Won".
In order to do that I need to read the context node BTADMINH or ZBTCUSTOMERH from the context node BTSUBJECT, in the method GET of attribute CON_KEY.
I have implemented the following code in the method GET_CONC_KEY of the context node BTSUBJECT.
DATA:
lr_entity TYPE REF TO cl_crm_bol_entity,
lr_comp TYPE REF TO ZL_BT111H_O_DETAILS_IMPL,
lv_ref_guid TYPE crmt_object_guid,
lr_collection TYPE REF TO cl_crm_bol_bo_col,
lr_bdc type ref to if_crm_ui_data_context.
TRY.
lr_entity ?= lr_comp->ZTYPED_CONTEXT->ZBTCUSTOMERH->collection_wrapper->get_current( ).
lv_ref_guid = lr_entity->get_property_as_string( iv_attr_name = 'REF_GUID' ).
CATCH cx_sy_ref_is_initial.
ENDTRY.
Whenever I try to read the context node BTADMINH or ZBTCUSTOMERH from BTSUBJECT I got always the same dump:
OBJECTS_OBJREF_NOT_ASSIGNED ZL_BT111H_O_DETAILS_CN06======CP CRM
Somethins is defitenely wrong and I am at the moment stuck with this code.
Please any help is really welcome.
Thanks in advance,
AndreaHi Andrea,
Sorry I got it wrong , for lr_comp you will have to take reference from controller IMPL class.
DATA:
lr_entity TYPE REF TO cl_crm_bol_entity,
lr_comp TYPE REF TO ( component controller IMPL class),
lv_ref_guid TYPE crmt_object_guid,
lr_collection TYPE REF TO cl_crm_bol_bo_col,
lr_bdc type ref to if_crm_ui_data_context,
comp_controller type cl_bsp_wd_component_controller.
lr_comp ?= me->comp_controller.
IF lr_comp IS BOUND.
TRY.
lr_entity ?= lr_comp->ZTYPED_CONTEXT->ZBTCUSTOMERH->collection_wrapper->get_current( ).
lv_ref_guid = lr_entity->get_property_as_string( iv_attr_name = 'REF_GUID' ).
CATCH cx_sy_ref_is_initial.
ENDTRY.
ENDIF.
Hope it helps.
Regards,
Manjeet Singh. -
Load balancing within the same ACE across two different contexts residing on the same vlan
I'm working on a design that requires traffic be sent to a different context in the same ACE. The question I have is can this be done when both reside on the same VLAN. Would the traffic in this case be handled at layer 2 instead of layer 7. Would I have to create a seperate subnet in order to provide loadbalancing?
|__________________|
| | vlan 5 | |
| |
| |
Context A |
|
|
Context B
Thanks, Jerilynby design, two contexts on the same box in the same vlan can't communicate. You have to use an external L3 device.
A workaround may be to use two diferent vlans and then bridge between them with a loopback cable. -
Hi
My wife and I share the same Mac.
She has her session and I have mine thus each of us has our iTunes session with our own music and settings.
She has her iTunes account and I have mine too.
And..;)...she has her Iphone and of course I also have mine.
So, the big question:
Both like music that the other has bought but we do not want to buy it twice! (through her account and mine).
Is there a way to share music I purchase so she can have it in her iTunes session and therefore have it also on her iPhone when she syncs..and of course viceversa for me too?
It goes without saying that although we like music the other one has, we do not like all of the music, so basically we want to have the possibility to share those special songs we like so we can have them both in our phones and individual Itunes sessions.
Was that clear or I lost you???
Any answer will be greatly appreciated.
Thanks in advanceFirst of all if you havent done it yet i think u shold authorize the mac on both accounts on itunes. You also can switch the accounts on your Iphones at itunes while you are in the internet adn download the music.
This is just an idea you should think of. For sure there are other ways I dont know. -
How to read the attribute in another context node from setter method
Hi,
As part of the requirement
i need to read the STRUCT.E_MAIL ( attribute ) present in INDEPENDANTEMAIL context node from the SET_S_SRUCT method of the context node HEADER.
I tried th following but it didnt work out....
Get the Custom Controller Path
*lr_cuco ?= controller->get_custom_controller( controller_id = 'BP_HEAD/IndComm').
*IF lr_cuco IS BOUND.
Get the Entity
*lr_entity ?= lr_cuco->typed_context->independantemail->collection_wrapper->get_current( ).
*ENDIF.
*CHECK lr_entity IS BOUND.
Get the Trade Event Type.
*lv_email = lr_entity->get_property_as_string( 'E_MAIL' ).
also i tried ...
data:
*lv_value type string,
*lr_property type ref to if_bol_bo_property_access.
*lr_property = collection_wrapper->get_current( ).
*lv_value = lr_property->GET_PROPERTY_AS_STRING( importing iv_attr_name = 'E_MAIL'
returining ev_result = lv_email ).
but it didnt workout ......
Any suggestions ...................
Regards,
Sijo...Hi,
Both Context node are available in view then refer this link.
Reading Attributes from different context nodes in the same view
Relationship name for context node INDEPENDENTMAIL is 'BuilIndependantEmailRel'
Regards
Gaurav -
Reading Attributes from same context node of different attributes
Hi,
I want read Attributes from same context nodes of diifrent attributes.
I have attribute A and B of same node, want to get read value from atrribute A into B.
Regards,
Brahmajisolved
DATA: lv_current TYPE REF TO if_bol_bo_property_access.
DATA: lv_value type String.
IF iterator IS BOUND.
lv_current = iterator->get_current( ).
ELSE.
lv_current = collection_wrapper->get_current( ).
ENDIF.
CALL METHOD current->get_property_as_string
EXPORTING
iv_attr_name = 'ZZAFLD00004Y'
RECEIVING
rv_result = lv_value . -
How to read the value from one context node in other in the same view.
Hi,
I am working on enhanced component ICCMP_BP_CP/BuPaContactPersonCreate , i need to read the partner_guid from Customer context node in contactpersonaddress context node.
Could you please guid me how to achieve this? if possible, please explain me with some sample code.
i am trying this code in GET_FAXFAX method of contactpersonaddress-faxfax, but it is throwing me the type cast exception.
data: lr_entity type ref to cl_crm_bol_entity.
data: lv_test type string.
lr_entity ?= collection_wrapper->get_current( ).
lr_entity = lr_entity->get_related_entity( 'BuilContactPersonAddressRel' ).
Thanks in advance.
Regards,
Kamesh Bathla
Edited by: Kamesh Bathla on Jun 25, 2009 7:46 PMproblem solved by writing the code in context node class CREATE_CONTPERSADDRESSVALNODE method
coll_wrapper = customer->get_collection_wrapper( ).
TRY.
entity ?= coll_wrapper->get_current( ).
CATCH cx_sy_move_cast_error.
ENDTRY.
IF entity IS BOUND.
CONTPERSADDRESSVALNODE->on_new_focus( focus_bo = entity ).
DATA: lr_collection TYPE REF TO cl_crm_bol_entity,
lv_fax TYPE string,
lv_fax_ext TYPE string,
lv_tel TYPE string,
lv_tel_ext TYPE string,
entity_addr TYPE REF TO if_bol_bo_property_access, "#EC *
coll_wrapper1 TYPE REF TO cl_bsp_wd_collection_wrapper.
lr_parrent type
lr_collection = entity->get_related_entity( 'BuilStandardAddressRel' )."'BuilContactPersonAddressRel' ).
IF lr_collection IS BOUND.
coll_wrapper1 = contpersaddressvalnode->get_collection_wrapper( ).
TRY.
entity_addr ?= coll_wrapper1->get_current( ).
CATCH cx_sy_move_cast_error.
ENDTRY.
getting fax number
CALL METHOD lr_collection->if_bol_bo_property_access~get_property_as_value
EXPORTING
iv_attr_name = 'FAXFAX'
IMPORTING
ev_result = lv_fax.
***setting fax number
CALL METHOD entity_addr->set_property
EXPORTING
iv_attr_name = 'FAXFAX'
iv_value = lv_fax. -
How to read the details in the context node of the custom controller
Hi friends,
My requirement is i enhanced the component ICCMP_BP_DETAILS , now on EH_ONSAVE i want to read the details of the Context node in the Custom COntroller .
In custom controller from ICCMP_BP_DETAIL/CuCoBPDuplicate From this in context node CUSTOMER is there in that attributes first name last name is there i want to read those details
so can u pls provide the logic for this how can i get the values.
am very new to the BSP programming
Regards
YogeshHi Suchitha,
when i am following the above code the lr_entity is not Bound, so can u pls suggest is there any thing is missing
i used the below mention code but lr_entity is not bound
DATA: lr_cuco type ref to CL_ICCMP_BP_CUCOBPDUPLICA_IMPL.
lr_entity type ref to cl_crm_bol_entity.
lr_cuco ?= me->get_custom_controller( 'ICCMP_BP_DETAIL/CuCoBPDuplicate') .
CHECK lr_cuco IS BOUND.
lr_entity ?= lr_cuco->typed_context->customer->collection_wrapper->get_current( ) .
CHECK lr_entity IS BOUND .
lr_entityIF_BOL_BO_PROPERTY_ACCESSGET_PROPERTY_AS_VALUE( iv_attibute = 'FIRST_NAME' ev_attribute = lv_firstname ) .
Please correct the code if any thing is missing
Regards,
Yogesh -
Hello,
Can the SidHistory attribute be moved from one User account to a different User account in the same Forest/Domain manually with Active Directory Users and Computers or with something like Powershell? it would seem to me this is a safe operation.
Thanks for your help! SdeDotHi,
In addition, please also take a look at the below thread:
copy SIDHistory from one account to another in the same domain
http://social.technet.microsoft.com/Forums/en-US/2ca8727c-b3fd-4ef8-9747-99295f0cd61c/copy-sidhistory-from-one-account-to-another-in-the-same-domain?forum=winserverDS
Hope this helps
Best regards
Michael
If you have any feedback on our support, please click
here.
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Maybe you are looking for
-
Printing multiple copies of a picture on the same page
In the past I was able to print multiple wallet size pictures on one page. Now with iPhoto 08 there seems no option to do this. It appears that the only way I can do it is to make duplicates and then highlight them to print them. Does anyone know how
-
If you buy something for money and you delete it, will you get your money back?
Can someone please answer?
-
Does DW create .swf files?
Hello, I have Creative Suite 2, and have been asked by a client (I am also a web developer, but mainly using ASP) to rescue their website. Their designer has *lost* the original files which were written in Dreamweaver, so he tells me, and I don't hav
-
HOW TO CONFIGURE TL-WA901ND TO MY MACBOOK AIR, HOW TO CONFIGURE TL-WA901ND TO MY MACBOOK AIR
HOW TO CONFIGURE TL-WA901ND TO MY MACBOOK AIR, HOW TO CONFIGURE TL-WA901ND TO MY MACBOOK AIR
-
How to store images or Folders in "/i/" (image directory) located in XDB
Hi All, Technical Description: Oracle APEX Version: Application Express 4.1.0.00.32 Database Version: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product OS: Mac OS Now my question is: How to upload images and theme folders from front en