PublishedPhoto:getPhoto() needs to be called from a task context?

Does publishedPhoto:getPhoto() need to be called from a task context? It appears to bail out in an ugly manner if not.
If so, this is really, really inconvenient.

I think I see what you mean, somewhat.
You can't just write a button handler, (lest you risk having errors that aren't caught...), you have to wrap it in a task with a context, and associate an error handler with it...
It took me a long time to come to that realization. I now have boring boilerplate code that I always use for wrappage so I forget about the old days...
Would you, or how would you suggest Adobe improve this "mess"?
Me? - dunno, maybe build that boilerplate stuff into Lr?, i.e. Lr traps any errors not caught by the handler so at least an error message can be displayed. And should they always be asynchronous? If so, should recursion always be guarded against? Maybe so - and if one wanted to be able to fire multiple concurrent tasks they still could by creating their own tasks that aren't guarded. Would there ever be a need for it *not* to be asynchronous?
Haven't given this too much thought...
But, I did just check - there is significant overhead in calling a function with a context vs. plain (without creating and destroying a context). So, it may be wise to wrap loops instead of wrapping functions called in a loop.
Sometimes I think if Adobe was just clearer in the documentation, it would be an improvement, i.e. if it said in the api doc for button action functions that errors would be deep sixed, and functions requiring async tasks would fail, and provide an example of how to trap errors in an action handler...
R

Similar Messages

  • Callback function is called with sys user context.

    1. Create AQ Queue table
    2. Create AQ Queue "MyQueue"
    3. Start Queue "MyQueue"
    4. Register "Subscriber1"
    5. Register "MyQueue"."Subscriber1" with Notification URL : PLSQL:\\Mypackage.SP_Callback
    Till here everything is fine...
    6. Enqueue message into "MyQueue" with "Subscriber1" as recipient.
    7. Now AQ notification is fired and as a result Its calling "Mypackage.SP_Callback".
    Here the problem is "Mypackage.SP_Callback" is called from SYS user context. i.e if i capture the dbuser its "SYS" who is invoking the AQ notification call back method, "Mypackage.SP_Callback".
    Do i have any settings so that "Mypackage.SP_Callback" is called with a specific user account instead of "SYS".
    Please help me...
    Edited by: user13421038 on Jun 30, 2011 5:06 AM

    Hello,
    From what is mentioned in this thread this issue is the same as that discussed in Note 552771.1. The issue should be resolved in 10.2.0.4 and 11.1.0.6 onwards.
    Thanks
    Peter

  • Need to run VI on boot or call from other application

    I am looking for the most basic way to get Labview to run a VI upon bootup or call from another application (without having to hit the run button on the toolbar.) I would rather not have to build an application; I don't want to buy the professional version. I want my data acquisition to recover from a power outage reboot and keep going without human intervention. Is there a way to build an init that launches the VI in run mode? A colleague of mine has convinced me labview is the way to go for a new experiment, but this is one stumbling block that needs to be resolved. Thanks for any help you can give.

    i have used the startup folder to run labview vi's on several machines and it *can* work just fine.
    however, sometimes there is a timimg problem and i get the message 'vi not found,' then labview usually loads the vi and runs - but leaves the error message, which can cause problems with later operations.
    today i had this problem with a 3.4 G HP machine running Win200. Labview 7.1 & DAQmx.
    my work around solution is to use the *MarcroScheduler* program. i call a it from the startup folder. it does the following
    (a) start Labview 7.1
    (b) wait 1 minute
    (c) execute the vi.
    without the wait state, Labview 7.1 will not run the vi properly.
    good luck with your applications.
    cu,
    larryb

  • TS3510 I have 3 different apple devices using the same Apple ID and would like to use FaceTime to call from one device to the other.  Do I need a different Apple ID for one of the devices in order to do that?

    I have 3 different apple devices (iPod Touch, iPad and MacBook Pro) using the same Apple ID and would like to use FaceTime to call from one device to the other.  Do I need a different Apple ID for one of the devices in order to do that?

    I found this on a related question in the Community:
    Yes you can do it. I do it with 4 different devices all using the same Apple ID.
    You need to associate different email addresses for each device in order to use those email addresses as the "contact at" email address. The reason the calls are dropping on you now is that what you are trying to do is like calling yourself on your own phone.
    You can also create new iCloud accounts on each device simply to use for FaceTime, but I'm guessing that the users of the other two devices have their own email addresses which will make this work for you quite easily.
    Take a look at this for more information.
    The seems to go against what Gail said and the issue you raised about buying dup apps was my first concern.  If this other post is correct, how to I set a different "contact at" in the iPod Touch?
    Goose

  • WHAT ABOUT FACE TIME?  I'D LIKE TO KNOW IF YOU NEED A PHONE NUMBER FOR YOURSELF TO USE IT TO CALL FROM YOUR COMPUTER

    WHAT ABOUT FACE TIME?  I'D LIKE TO KNOW IF YOU NEED A PHONE NUMBER FOR YOURSELF TO USE IT TO CALL FROM YOUR COMPUTER

    Do you have iMessage? I think as long as that person has iMessage you can use Face Time to call each other.

  • I need to use a reserved word as parameter name in proc called from URL

    Let me preface this post by saying I already know this is terrible to attempt, but it's short term fix only.
    Ok, so I have to create a procedure that will be called by a vendors application via a API that calls our URL to send data over. The terrible part is
    that the API they have uses the parameter FROM=vendor_data A change is on the way so in the future the API won't use FROM as a paramter, so this isn't something I want to do, but it's a workaround.
    So the nastiness is this..., I can create a procedure that'll compile when I enclose FROM in double quotes "FROM" as my input parameter
    but if I try to call my procedure via URL (as their application will do) the procedure isn't working. I searched for someway to do an inline
    replace of the FROM parameter to something else, but no luck. I'm open to all positive comments. I cannot go outside of Oracle
    to do this, so I can't call a shell script and replace. Basically I need some way to use a reserved word as a parameter name, and then be able to call
    that proc from a URL, or someway to change the FROM in the URL inline. Any help on this admittedly whacky situation would be appreciated much.
    I tried ...\myproc?from=text
    ...\myproc?"from"=text
    ...\myproc?'from'=text
    proc is simple test procedure
    create or replace procedure myproc
    ("from" in varchar2 default 0)
    is
    v_from varchar2(30);
    begin
    v_from:="FROM";
    insert into test(col1) values(v_from);
    end;
    **** Update
    I didn't get any more replies but came to a solution that I thought I'd post. It's much better, more elegant and maybe can help others.
    So instead of using FROM as the parameter name I did some research and decided I can use flexible parameters. Basically you end up having
    2 input parameters for a procedure, one holds a parameter name the other holds the parameter value. They get loaded into arrays
    and you access the values with regular name_array(1), value_array(1), etc. ?v=parameter&v2=value
    Once I figued I could use flexible parameter it took me tons of research to find out the actual syntax. I'll post some examples for others
    later, but was suprised with the lack of resources consideriing how "flexible" they are.
    Thanks again for the replies. Cheers.
    Edited by: Mitz on Jul 29, 2009 11:37 PM

    Scott,
    Thanks for the reply. I'm not familiar with the wwv_flow_epg_include_mod_local, however I know that the
    myproc is available via URL. I passed the my procedure name(myproc) on to the dba a while back to make it "accessible" so, I'm assuming that he
    added it to this the www_flow_epg_mod_local (assuming this has something to do with access control).
    If I modify myproc procedure and remove "FROM" as the input variable, and replace with say,
    IN_FROM I can then call the procedure via the URL ./myproc?in_from=test without any problems.
    I'm pretty confident that it's the "FROM" that is the hurdle and not a security or setup issue. The proc is fine to call from the URL until I got the curveball that the only available parameter was FROM. How the URL should be when inputing to that parameter?
    Edited by: Mitz on Jul 25, 2009 7:36 PM
    Edited by: Mitz on Jul 25, 2009 9:16 PM

  • Need help regarding configuring the WebService Call from RTD to Siebel

    Hi All,
    Can someone help me with the information on how do i configure a Webservice Call from RTD to Siebel?
    Any high-level or granular details on this would be very helpful as I am new working on this product. How can a jax-ws be utilized to achieve the same?
    Thanks in advance.
    Best Regards,
    Hariharan

    If you actually need a portal service though, this will not work. However, you could have the portal service return a Document object, which is basically the text of the HTML file you want to display. Then, when calling the portal service, you can simply output the text to the IPortalComponentResponse object
    I hope this helps
    Darrell

  • Which app i need to load in order to record an iphone call from my iphone

    Hello! Which app i need to load in order to record an iphone call from my iphone

    Just make sure it is legal for you to do so first...
    http://reviews.cnet.co.uk/mobile-phones/how-to-record-calls-on-an-iphone-for-fre e-50005584/
    tt2

  • Do I need an online number to get a call from some...

    Hello,
    Do I need an online number to get a call from someone in Europe who is calling from their computer?

    Hey the question is what you want to do Sir.
    Skype bare and free provides you means to talk voice and video from the application with all your friends who have Skype too on their side. Though you need to connect with them first. Add them manually or through some importing to your contact. There you have the basic capability.
    Then you can add with credit or subscription (I personally think that the subscriptions now with 50% off yearly are absolutely great) a few services. 
    1. Outgoing voice calls to real numbers. They have plans for landlines and mobile with diff prices for diff countries. Again check the promos now for good deals.
    2. Incoming voice calls from real numbers when you buy the online number. Alas its not available for all countries yet.
    3. You can set your ID so when you call / outgoing voice, people can recognize you.
    4. To go number that can let you call long distance and abroad as local call.
    And more I guess.
    I find their outgoing call quality as unparalleled to any other provider. Call quality from Canada to Israel is usually on par as land line and superior to Bell.

  • Need to do a commit in a procedure called from a trigger

    How do I get around the need to do a commit in a procedure that is being executed from a trigger. I know it can't be done but I bet someone has a workaround. Thanks.

    Hi
    Why do you want to do a commit in a procedure called from a trigger?
    Anyway if you are running Oracle 8i+ you can declare the procedure as an Autonomous Transaction and can issue a commit, eventhough it is called from a trigger.
    HTH
    Arvind Balaraman

  • Need FM which tells whether request received(object call) from R3 OR Portal

    Hi All,
    I need to differentiate some logic in a method based on whether it is called from R/3 OR Portal.  I think there is a function module which tells whether the request is from Portal or not.
    Thanks in advance
    Regards,
    Sudhakar.

    Hi Sudhakar,
    Not aware of any such FM. But this is what you can do.
    Any action form portal usually will call an RFC. In that RFC you can use SET parameter (SAP memory). And in your method you can check for that parameter to determine if it was called from portal.
    Regards
    Krishna Kishor Kammaje

  • Need assistance using coherence calls from an ejb, get exception

    I've added some Coherence calls to a simple EJB, that can be called from a plain java client or a jsp. The bean code is attached as well as the call stack for the exceptions, first
    for plain java client, second for jsp. Have also run Web installer, this file
    is attached too.
    Your help would be greatly appreciated.
    Thank you,
    Ken Rubin<br><br> <b> Attachment: </b><br>javaclientexception.txt <br> (*To use this attachment you will need to rename 209.bin to javaclientexception.txt after the download is complete.)<br><br> <b> Attachment: </b><br>jspexception.txt <br> (*To use this attachment you will need to rename 210.bin to jspexception.txt after the download is complete.)<br><br> <b> Attachment: </b><br>ConverterBean.java <br> (*To use this attachment you will need to rename 211.bin to ConverterBean.java after the download is complete.)<br><br> <b> Attachment: </b><br>coherence-web.xml <br> (*To use this attachment you will need to rename 212.bin to coherence-web.xml after the download is complete.)

    Hi CP,
    I had added C:/tangosol/lib/tangosol.jar;C:/tangosol/lib/coherence.jar
    to my classpath originally and could not find the classes. After I copied both jars into
    my Sun/AppServer/lib path, the jars were found, yet I
    get another exception, which is attached.
    My server is Sun Java Application Server 8 Q1.
    Thank you,
    Ken<br><br> <b> Attachment: </b><br>aftercopyinglibs.txt <br> (*To use this attachment you will need to rename 213.bin to aftercopyinglibs.txt after the download is complete.)

  • When i make call from iphone,loudspeaker is being enabled automatically and not able to  hear any sound ..So Please need Full Answer?

    When i make call from iphone,loudspeaker is being enabled automatically and not able to  hear any sound ..

    reset all settings
    settings-general-reset-reset all settings
    now reconnect to wifi
    settings- wifi- click network name- enter password - join
    if issue persists back up and restore as new via iTunes
    Peace, Clyde

  • Need to block spam calls from 201-*

    I'm getting many spam calls from numbers like 201-340-1009, but the right-ward numbers keep changing.
    I'm told this is someone mis-using (or just using) PINGER.  I'd like to just block all
    calls from 201 area code (New Jersey, not waiting for Snookie call).  Can I do this?
    If not, any other recommendations?
    Much Thanks,
    Dave

    You can also list your cell number(s) on the U.S. government's Do Not Call registry by going to https://www.donotcall.gov/default.aspx. I believe this helps, as I haven't been getting spam calls or texts (though I never got very many) after giving my registration there 31 days to become effective. If they do persist in calling, this gives you a mechanism to report them. This way you only have to register your number, not all the numbers that might be trying to call you.
    And (of course) when we go to that site we learn that "Scammers have been making phone calls claiming to represent the National Do Not Call Registry. The calls claim to provide an opportunity to sign up for the Registry." D'oh!

  • Hi I bought my ipad in the US, but I live in Swaziland, Africa. I cannot remember my seurity answers. I need a number I can call from SOuth Africa- the Apple support sent me an 800 - APL - CARE no. which I cannot dial. Help!!!

    HI
    I bought my ipad in the US, but I live in Swaziland, Africa. I cannot remember the answers to my security questions. I have contacted apple support, but they send me an 800 number which I cannot call from here. Help!!! I am so fed up as I cannot purchase anything without answering these two questions.
    Thank you
    SJ

    International Support
    http://support.apple.com/kb/HE57

Maybe you are looking for