Get_related_entities retrieves nothing

Hi everyone !! I have one issue about the "get_related entities",
lv_collection = entity->get_related_entities(
             iv_relation_name = 'BuilAddressPhoneRel' ). . . . me->set_collection( lv_collection )
inside of the "on_new_focus" method of a model node.
The thing is that some BP´s doesn´t have any phone data related and the get_related_entities returns nothing, the collection is just "Initial", the collection_wrapper will not have nothing to wrap ...
The problem is that the user through an inputfield will edit phone data, the "SETTER" method of this field uses an "initial" collection_wrapper when there is not any initial phone data giving me some troubles to save the new value because the initial state of the collection_wrapper...
I try to create an empty with a "entity_factory" of this node with no results.
Any suggestion ?

Hi,
If get related entites returns an empty collection then use create_related_entity to create the relation
(code)
  get collection of dependent nodes
        lv_collection = entity->get_related_entities(
               iv_relation_name = lv_rel_name ).
        IF lv_collection IS NOT BOUND OR lv_collection->size( ) = 0.
          IF entity->is_changeable( ) = abap_true.
                entity = entity->create_related_entity(
                 iv_relation_name = lv_rel_name ).
          ENDIF.
       ENDIF.
(code)
Regards,
Arun

Similar Messages

  • Action  DisplayArgumentsAction retrieve nothing

    Hi, guys
    I had a problem with weblogic wldf instrumentation.
    I configured 2 instrumentation monitors for my app.
    1st: a monitor 'servlet_around_service' with an action 'traceElapsedTimeAction'. It works fine. I can get events data through wls console and every record seems good.
    2nd: a monitor 'servlet_before_service' with an action 'DisplayArgumentsAction'. While, I can get events data through wls console, but however the column 'arguments' of each record is empty. Question is how can I get out the http parameters(which a browser send to a http server through http get or http post)
    any suggestions would be appreciated.
    Edited by: Calvin on 2011-10-10 上午12:25

    Problem solved.
    Use custom monitor and '%' due to security issue.

  • Image Document Service Connector: Can't retrieve metadata from jpeg image

    I'm using SES 10.1.8.4 with the Image Document Service Connector.
    I've entered some metadata IPTC in a buch of images (with picasa, for instance) and added a new file datasource combined with a new pipeline as explained in the Patch Set Readme (p7514463_101840_WINNT)
    After indexing, I can't retrieve nothing of my images with a simple search.
    Did anybody make tests with this new feature ?
    Thank you in advance,
    Patrick.

    Ok, I havn't read all your code because it's quite a lot and I might have the answer for you already.
    Maybe the problem is that your Nokia is still connected to your computer.
    I had the same problem on my Nokia 6021. I installed my app through the Nokia PC Suite. And it showed all the devices, but it couldn't find any services on any of the devices. Which was strange because most devices have some standard services running. The problem was that after installing the app, the Nokia was still connected/paired with the PC. After deleting the pairing, services magically appeared.
    I hope this solves your problem (more than six months after your post ;) ).

  • Retrieve accessibility parameter.

    Hi everyone, I have to retrieve the accessibilty parameter of user so I can display or not some button in webdynpro.
    If I set parameter ID ACCESSIBILITY_MODE with the value X in SU01, when I call method GET_IS_ACCESSIBLE in IF_WD_APPLICATION return value 'X',but if I set trough the portal setting user parameter call method don' retrieve nothing.
    May I have to set both parameters?
    Or exist a method for read the user portal's parameter?
    Thank you so much!

    If you pass a parameter to the URL as '?my_path.my_param=hello' Then you can use my_path as the p_reference_path and my_param as the p_name
    Herman

  • Mail won't retrieve Gmail messages on my iPad

    I have no problems with any other email accounts in Mail on my iPad, but Gmail just won't retrieve emails.  I have done everything that people recommend.  Deleting the account and re-adding using Gmails instructions.  I've made sure IMAP is enabled in Gmail.  I have set a device specific password.  I have disabled captcha in Gmail.  I have also tried: turning off the account and turning it back on (in system), turning of Mail and turning it back on, turning off the iPad and turning it back on.  Everything.  I have deleted and re-added the account 3 times now.  Each time it has verfiied the device specific password, but any time it checks my gmail account, it just says "checking for mail..." and then retrieves nothing.  Help!

    No, it shows absolutely nothing in the "Inbox" area, even when I had my husband send a brand spankin' new message, that I hadn't clicked on or checked in the browser of the iMac Mail client.  I think it's pretty weird, too, but I haven't found anything that will help, other than just checking in the "All Messages" area of the account.

  • Retrieve user name inside oracle application

    Hi,
    I have a form which i installed in the oracle application. One of the fields needs to retrieve the name of the user which has logged into
    the application via WHEN-NEW-FORM-INSTANCE.
    :sponsor is my field (i omitted the block because its only one in the form,so it works like this)
    What i tried :
    :sponsor := user; this retrieves the logon name into my database (which is linked with the logon on the forms builder 6i) e.g. APPS
    :sponsor := GET_APPLICATION_PROPERTY('SSO_USRID'); this retrieves nothing
    :sponsor := GET_APPLICATION_PROPERTY('SSO_USRDN'); this retrieves nothing
    :sponsor := GET_APPLICATION_PROPERTY(USERNAME); this retrieves nothing
    :sponsor := GET_APPLICATION_PROPERTY(CONNECT_STRING); this retrieves my oracle application instance name e.g. TEST
    What i need is the actual user that has logged into the oracle application to access the responsibility that holds my form. This happens with
    the classic logon of Oracle Applications 11i (no SSO or anything like that).
    Thx guys!
    Iulian

    If you are in the eBusiness-suite, there is a package FND_USER where you somehow get the current username from. Ask your question in an eBusiness-suite related forum, maybe here OA Framework

  • Problem w/ image item using 9i BLOB field and InterMedia ORDImage Object

    Hi,dear all,
    I have a problem with image item in Form 6i. Oracle 9i is used as backend DB, and a table contains image data is created for testing:
    create table image_test(
    id number,
    image blob
    In Form 6i, there is no problem to create a block for inserting/updating the image record into the database. However, it can not be used to retrieve image (blob field), the image item remains empty after 'execute query', while the id field can be retrieved. When the same table is created in Oracle 8.1.7, and the exact same form can be used without any problem both in inserting and retrieval. It seems that the Oracle 9i does not use the same way to store BLOB column. Has anybody ever encountered this problem? How to retrieve image (BLOB) in Form 6i from Oracle 9i?
    I tried to use interMedia ORDImage as the data type in Oracle 9i, that is,
    create table image_test(
    id number,
    image ORDSYS.ORDImage
    Same problem, the form can insert record with image, but when retrieving, nothing displayed. Anybody could help! Thanks in advance!

    hi!
    well working with oracle8i and form6i.
    same problem..but i used (instead of blob or clob as datatype..) Long raw..
    it can be saved as usual..i mean Commit..
    and can be retrieved..using Execute_Query..its working fine..
    well if anybody get any other solution..do inform..
    mail_id:
    [email protected]

  • GRC PC 10.0 business rule creation: Wildcard for Currency field

    Hi,
    Currently I am designing a business rule that has standard price as a deficiency. I am using a blank check. But the system wants me to choose a specific currency. I want it to retrieve all records with the deficiency, regardless of currency.
    I've tried using "*" in the currency field, but it retrieves nothing. I am only able to retrieve records when I add a specific currency.
    Why is that? And what can I do to fix this problem?
    Thank you.

    Hi Raphael,
    Have you defined the Currency field as a filter criteria? If yes, can you please remove the field from filter selection and try to execute the rule again.
    Just make sure it comes under output format section.
    regards,
    Rajeshwari

  • Simple query-strange output

    Hi all,
    I have a table x having some data.
    if I do,
    select * from x where dt='31-OCT-08';
    It retrieves the data.
    But if do
    select * from x where dt=last_day(sysdate);
    it retrieves nothing.
    Why is that so?
    Last_day(sysdate)='31-OCT-08'

    MYH wrote:
    Why is that so?
    Last_day(sysdate)='31-OCT-08'Wrong!
    Last_day(sysdate) >'31-OCT-08'
    Boneist already gave the correct answer. Sysdate has a time component. THis time component is still there after you used the last_day function.
    You can check it for yourself by simply testing this condition.
    Proof
    SQL*Plus: Release 9.2.0.2.0 - Production on Wed Oct 22 12:59:22 2008
    Copyright (c) 1982, 2002, Oracle Corporation.  All rights reserved.
    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    SQL> select * from dual
      2  where Last_day(sysdate)='31-OCT-08';
    no rows selected
    SQL>
    SQL> select * from dual
      2  where Last_day(sysdate)>'31-OCT-08';
    D
    X
    SQL> While the point with the datatypes is important it is not the real reason for this behaviour.
    Edited by: Sven W. on Oct 22, 2008 1:02 PM

  • Default forms behaviour

    I have made an absolute default form with f60desm and successfully posted and run it from the web. The problem is, I can't get any data into it. According to the cue cards, an execute query with a blank form should retrieve all records...it doesn't. I even tried a % in a field and it still retrieves nothing. I plugged in a known value to exist in the database it retrieved nothing. What am I doing wrong? (Oracle 8i 8.1.5, Forms 6i, 9iAS)

    yes, it is connected...default makes you log on before it will even bring up the form. It is behaving like this in the form designer, as well, which I had to be connected for the datablock wizard to pull up the table fields.

  • How can I register joltasp?

    I have registered all the joltasp classes located
    in "G:\WINNT\java\trustlib\bea\jolt\pool\asp"
    manually as follows:
    G:\WINNT\java\trustlib>javareg /register /control
    /q /class:bea.jolt.pool.asp.AspDataSet
    /codebase:. /progid:BEAJOLTPOOL.AspDataSet
    /typelib:AspDataSet.tlb
    ...and other nine classes .....
    The registration job is successfully accomplished. In
    bankapp samples for ASP, tellerForm.asp is correctly loaded.
    In the service call, inquiry the balance of 10001 account retrieves Nothing:
    Set output = pool.call(Request("SVCNAME"), Null, Nothing)
    After I replace Null with iodata(0)
    <!--the content of iodata(0) is:
    {SVCNAME=[INQUIRY], ACCOUNT_ID=[10001]}
    //-->
    the sentence retrieves:
    {SBALANCE=[$20343.00], FORMNAM=[CBALANCE]}
    It's right! But another sentence goes wrong:
    Call template.eval(iodata)
    In IIS log files, I found the reason:
    2001-09-26 04:03:23 211.68.68.60 - 211.68.68.60 80 POST /bankapp/tlr.asp |66|80004005|java.lang.ClassCastException:_bea/jolt/pool/Result
    500 Mozilla/4.0+(compatible;+MSIE+5.01;+Windows+NT+5.0)
    the data type of iodata(0) is AspDataSet, but
    the data type of iodata(1) is Result. Although both parents
    are "bea.jolt.pool.DataSet"
    What's the problem? Maybe I should register other classes
    located in "G:\WINNT\java\trustlib\bea\jolt\pool", if so, How
    can I register it?

    Please be aware that this forum is a peer to peer support forum, it is not a direct link to HP support.  To Contact HP click here for information.
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

  • Excel Addin issue

    Hi There,
    I am wondering if the issue happens to others or not, but some of our excel addin users have the following issue:
    They use Excel addin Lock, send and unlock the data, however when they do "Retrieve", there is nothing showing up at excel. (default calculation is executed before the retrieve). However the other users can retrieve from their excel addin.
    Sometime when excel is restart then retrieve works.
    Any idea?

    1.User is able to login to the application but when trying Essbase->retrieve nothing is displayed.So, No problem with the user .... but have you used admin credential and tried?
    2. I took some combination and tried to retrieve but nothing is displayed..no data. No error message also. Have you checked the sessions of a user who is unable to retreive the data??What i mean is session created for that user ???
    3. Now user is receiving "Runtime error 53". file not found "essxcln.xll"I think the file Essxcln.xll is not there...Check in Hyperion->bin->"Essxcln.xll" it should be there...
    if it is available open excel template and goto->tools->addin->Hyperion->bin->select "Essxcln.xll" and click "okay"
    1. Which version of essbase are you using ???
    2. Have you tried in Different system with similar configuration...??
    Edited by: Prabhas on Aug 31, 2011 3:22 AM
    Edited by: Prabhas on Aug 31, 2011 3:27 AM

  • Invalid combinations of joins involving outer joins

    Hi all, I have the following problem
    Scenario: I created 6 custom folders:
    Tasks (with measures)
    Type
    Criticity
    Status
    Owners
    Assignees
    The first folder is used to retrieve how many tasks (COUNT(tasks)) have a particular type or status or a combination between them, and the others 5 are dimensions.
    I create 6 joins starting always from the dimensions in this way (radio buttons):
    Detail item values always exist in master folder (Typical)
    Outer join on detail
    where the master is always a dimension and the detail is always the custom folder with the measures.
    I put the outer join on the custom folder with the measures because I want to show '0' in case I don't have any record on this folder for a specific attribute on a dimension (the join fails).
    I saw that if I put the outer join on the master (dimensions), when the join fails I don't see at all the information regarding that particular dimension.
    For example
    I select 2 folder: Tasks and Assignee
    join: Tasks.task_id (+) = Assignee.task_id
    Result:
    TASK ASSIGNEE
    10 Mr. A
    20 Mr. B
    30 Mr. C
    0 Mr. D
    Just to make a test, If I change the join on Administrator putting :
    Detail item values might not exist in master folder
    Outer join on master
    ...the result is this
    TASK ASSIGNEE
    10 Mr. A
    20 Mr. B
    30 Mr. C
    ...I don't see the last record.
    The customer asked to see always the record with task =0 (if exists), so I joined all the custom folders as I expalned above, but when I try to link (on Discoverer Plus) more than two tasks I have the following error:
    Invalid combinations of joins involving outer joins
    So, my question is this: how can I avoid this error ? Does it exist any trick or another way to link the custom folders (showing always the records with '0' when the join doesn't retrieve nothing ) ?
    Thanks in advance
    Alex

    Well I will take a stab at answering this. The problem is not knowing what is in your custom folders. Also not knowing the specifics on your Discoverer Join definitions. On something like this you may be better going to Oracle support, since they can start a Web Conference and see exactly what you see, and can check out the various possibilities. All we here can do is make guesses, and the guesses could be wrong.
    You do have to be careful in your join definitions in Discoverer. You have to pick the correct table as the Master table, and the correct table as the Detail table. Mess that up and you can mess yourself up. So my first though is check your join definition. Sounds like you want assigned to be the master table. Then tasks would be the detail table.
    Then you want to pick the option that detail items might not exist in master. Which it looks like you have done.
    Then for the other options, Oracle, in my mind, does the opposite of what I would think to pick. If you pick OUTER JOIN ON DETAIL, that will include the Master items with no detail items. So that is what you need to pick.
    Looks like you did the OUTER JOIN ON MASTER, which means will include detail items with no master. Since you had a master with no detail, it will not show, and that is why the Mr. D does not show.
    I always have to do the help on this because it is opposite of what I would expect - my mind thinks outer join on master should include all masters. Nope, it has to be the outer join on detail to do that.
    The master with no detail will probably show a NULL value in the column for the detail, instead of 0. You could convert the null value to display as a 0.
    Hope this helps a bit. Just remember that I am guessing/speculating on a possible cause.
    John Dickey

  • Using excel formulas to circumvent non-existence of data

    Hello,
    If there is no data in my database for a particular month my query retrieves nothing. Accordingly I would like to insert an excel formula in the spread sheet saying something like "If cell is blank then insert next month name"
    Is there a way of excel knowing what the next month name is (for example: what comes after APRIL)? Can I create a list of values in excel to tell it what month comes next?
    Example:
    APRIL - $100
    MAY - $100
    NOVEMBER - $100
    I would like to insert all the months between May and November
    Thanks in advance.

    Hi Alicia,
    It can be done. Have the months from Jan to Dec hardcoded. And write a formula saying
    =if(<value Cell>="",<corresponding cell having the next month>,<cell having the same next month>)
    I hope it solves the issue.
    It can be clearer if you explain the scenario, that way it would be easy to solve.
    Thanks,
    Sara

  • Problem to create a package the download of the source faild

    I want to create package for php-gtk:
    http://gtk.php.net/
    http://www.kksou.com/php-gtk2/index.php
    http://www.kksou.com/php-gtk2/articles/ … -linux.php
    http://gtk.php.net/download.php
    I did this PKGBUILD:
    # Contributor: Nadav Vinik <nadavvin at gmail.com>
    pkgname=php-gtk
    pkgver=2.0.0a
    pkgrel=1
    pkgdesc="GTK+ binding to PHP"
    depends=('')
    source=(http://gtk.php.net/do_download.php?download_file=php-gtk-2.0.0alpha.tar.gz)
    url="http://gtk.php.net"
    build() {
    cd $startdir/src/$pkgname-$pkgver
    tar xvzf php-gtk-2.0.0alpha.tar.gz
    cd php-gtk-2.0.0
    ./buildconf --with-phpize=/usr/local/php-5.1.6/bin/phpize
    ./configure --prefix=/usr/local/php-gtk-2.01 --enable-sourceview --with-php-config=/usr/local/php-5.1.6/bin/php-config
    make || return 1
    make prefix=$startdir/pkg/usr install
    The problem that It failed:
    HTTP request sent, awaiting response... 416 Requested Range Not Satisfiable
    The file is already fully retrieved; nothing to do.
    ==> ERROR: Failed to download do_download.php?download_file=php-gtk-2.0.0alpha.tar.gz
    ==> Aborting...
    Before that it download, however it failed immediately after it download.
    What is the problem?

    Snowman wrote:
    Install pkgconfig and add it as a makedepends. That should fix the build problem.
    In the configure line, change --prefix=/usr/bin to --prefix=/usr
    The PKGBUILD is also missing an arch, licence and md5sums fields.
    thanks it work
    I found a list of dependencies here:
    http://www.kksou.com/php-gtk2/articles/ … -linux.php
    # Contributor: Nadav Vinik <nadavvin at gmail.com>
    pkgname=php-gtk
    pkgver=2.0.0alpha
    pkgrel=1
    pkgdesc="GTK+ binding to PHP"
    depends=('php>5.1.6' 'gtk' 'glib>2.6.0' 'libpng>1.2.8' 'freetype>2.2.1' 'fontconfig>2.4.0' 'cairo>1.2.4' 'pango>1.14.7' 'atk>1.9.1' 'libgnomeprint>2.12.1' 'gtksourceview>1.6.0' 'pkgconfig>0.21')
    source=(http://gtk.php.net/distributions/php-gtk-2.0.0alpha.tar.gz)
    url="http://gtk.php.net"
    build() {
    cd $startdir/src/$pkgname-$pkgver
    ./buildconf --with-phpize=/usr/bin/phpize
    ./configure --prefix=/usr --enable-sourceview
    --with-php-config=/usr/bin/php-config
    make || return 1
    make prefix=$startdir/pkg/usr install
    But I get:
    ==> Making package: php-gtk 2.0.0alpha-1 (Thu Mar 8 10:45:27 IST 2007)
    ==> Checking Runtime Dependencies...
    ==> Missing Dependencies:
    ==>
    requires: php>5.1.6
    requires: glib>2.6.0
    requires: libpng>1.2.8
    requires: freetype>2.2.1
    requires: fontconfig>2.4.0
    requires: cairo>1.2.4
    requires: pango>1.14.7
    requires: atk>1.9.1
    requires: libgnomeprint>2.12.1
    requires: gtksourceview>1.6.0
    requires: pkgconfig>0.21
    ==>
    I follow this explanation:
    * depends: This should contain an array of package names that need to be installed before this program can be run, separated by spaces. The names can optionally be enclosed in single quotes (apostrophes) to prevent possible shell quoting problems, and the array should be enclosed in round brackets. Sometimes a program requires a minimum version of a dependency; In that case, you might want to use the mathematical "larger or equal than" operator, and enclose the whole construct in quotes. Here's an example to add a dependency on the glibc package, and the slang library of at least version 1.8.0: depends('glibc' 'slang>1.8.0')
    From here
    What is the problem?
    Does GTK+ is part of the gtk package?
    I didn't found package of GTK+.
    Another problem.
    Although, it successfully comple and build, The tar.gz file contain only two files FILELIST and PKGINFO
    What is the problem?
    Last edited by nadavvin (2007-03-08 09:13:49)

Maybe you are looking for