Run function when open layout

Hi,
   I need to run a function when open a layout, I follow the "How to Run Planning Sequences on Save and Other Events" paper, but fail.
   After get into debug, I notice that in the following code
IF lr_lay->is_ready_for( cl_upwb_bsp_appl=>ce_get_data ) = cb_true.
      CONCATENATE l_id '_before' INTO l_id_seq.
ENDIF.
The if statement is not satisfy, therefore "CONCATENATE l_id '_before' INTO l_id_seq." statement never executed.
Anybody know how to fix it?
Thanks!

I understand is that when open the layout, the function should run according to the how to paper, but it not run.in debug, I find out that "IF lr_lay->is_ready_for( cl_upwb_bsp_appl=>ce_get_data ) = cb_true."
is false, therefore,the statement "CONCATENATE l_id '_before' INTO l_id_seq." is not run, therefore,the function is not run. However  since the code is standard from the how to paper, I can not find the reason.

Similar Messages

  • Run function when hit enter

    Hi Guys,
       According to the "How To…Run Planning Sequences on Save and other events (WEB)" paper we can run functions when click save button or open the layout. Anybody know how to  make the function run when the user hit enter key. We had done this at my previous clint, but forget the detail.
    Thanks

    Hi JW,
    To run functions on save, do the following:
    1. define your planning function or planning sequence (which is a Function Pushbutton) in the web interface builder,
    2. On the Planning Layout, equate "Function After Data Change" to the planning function defined above.
    Trust this is what you are looking for.
    Cheers,
    FM.

  • How to run functions when changing states?

    Hi everybody
    I want to run function when changin states
    For example I change my state and write something on Panels title and when this state appears i want to read my title and to do smth
    How can I do it. Where is my mistake?
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application
        xmlns:mx="http://www.adobe.com/2006/mxml" verticalAlign="middle"
        width="340" height="250"
        layout="absolute"
    currentStateChange="StateChangez();">
    <mx:Script>
    <![CDATA[
    public function StateChangez():void
    if (currentState=='a')
    //Alert.show('a');
    if (Panel1.title=='New')
    Alert.show('New');
    else
    Alert.show('Edit');
    else
    Alert.show('b');
    ]]>
    </mx:Script>
    <mx:states>
      <mx:State name="a">
       <mx:RemoveChild target="{button1}"/>
       <mx:RemoveChild target="{button2}"/>
       <mx:AddChild position="lastChild">
        <mx:Panel x="0" y="40" width="340" height="210" layout="absolute" id="Panel1">
        </mx:Panel>
       </mx:AddChild>
       <mx:RemoveChild target="{button3}"/>
      </mx:State>
      <mx:State name="b">
       <mx:RemoveChild target="{button2}"/>
       <mx:RemoveChild target="{button1}"/>
       <mx:RemoveChild target="{button3}"/>
       <mx:AddChild position="lastChild">
        <mx:Label x="10" y="222" text="b"/>
       </mx:AddChild>
      </mx:State>
    </mx:states>
    <mx:Script>
      <![CDATA[
       import mx.controls.Alert;
      ]]>
    </mx:Script>
    <mx:Button label="New" x="10" y="10" id="button1" click="currentState='a';Panel1.title='New';"/>
    <mx:Button x="68" y="10" label="Edit" id="button2" click="currentState='a';Panel1.title='Edit';"/>
    <mx:Button x="10" y="218" label="b" click="currentState='b';" id="button3"/>
    <mx:Button x="265" y="10" label="Read" click="StateChangez()"/>
    </mx:Application> 
    Message was edited by: AtomicRussian

    Hi,
    I think your event handler "StageChangez()" is called before your Panel title is set. Try first change title, then change currentState.
    Oh yes my mistake, you are adding it when state changes. You can put your Panel's title change in StageChangez() and after that you can do some actions.
    Regards,
    Adrian
    Message was edited by: AdrianWiecek

  • Execute Planning Function while opening layout

    Hi all,
    I would like execute planning function while opening excel layout. Can anyone help me?

    Hi guys,
    Check out the following thread.......Business Planning
    Yes, you can do it depending on which version of SEM/BW Planning you are on...
    Good luck,
    Rael

  • Run vi when opened

    Hello,
    I'm trying to get the subVI to run when the front panel is opened.  It works manually (when the "Vi Properties/Executon/Run when opened" is enabled) but never does when I try to open it from another VI.  I have uploaded the little program which I was playing with.  If you guys can help me it would be great
    The program opens another VI (with name given by the user) from the same folder...
    Attachments:
    Openvi.vi ‏17 KB

    hello,
    i think that you just have to insert the "invoke node" and select "run vi".
    See the attached picture.
    Software developer
    www.mcm-electronics.com
    PS: Don't forget to rate a good anwser ; )
    Currently using Labview 2011
    PORTUGAL
    Attachments:
    runvi.PNG ‏8 KB

  • Automatically run query when open webpage

    Hi experts,
    I am newbie in Jdeveloper. I created the webpage following the "Search" tutorial. But now I need to run the query when I open the page, no need to input parameter and click on "Go" button.
    Thanks in advance
    Best Regards
    Hieu

    Hi,
    In controller write the code
    import oracle.apps.fnd.framework.OAApplicationModule;
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    am.invokeMethod("callAM");
    In AM create new method
    public void callAM() {
    NewVOImpl vo = getNewVO1();
    vo.executeQuery();
    Thanks
    Jegan

  • BEx iView doen't function when opened in a new window

    Hi all-
    I have a BEx iview (BI 7.0) running in Enterprise Portal (7.0). Everything works fine until I choose the iView personalization option to open the iView in a new window. The window opens correctly, however all of the BI functions (filter, settings, variable screen, etc) no longer work.
    The browser errors I receive are:
    -sapbi_dd_smartHoverParents.length is null or not an object
    -Access is denied (with URL to backend BI server)
    Any ideas?

    this is a personalization issue or in other words personal folders in KM issue.
    make sure your eu_role has the right permissions....
    pcd:portal_content/every_user/general/eu_role/com.sap.km.home_ws/com.sap.km.hidden/com.sap.km.urlaccess/com.sap.km.docs
    this path should have the everyone user group and end user permissions ticked.
    also read this blog for more details :
    http://rahulursportal.blogspot.com/2009/06/portal-favorites.html

  • Reports in Favorite Reports did not run when open

    In SCOM 2012, I have run a few reports with the report template in the default SCOM management pack and saved them in the Favorite Report. When I open the saved reports at the Favorite Report again, they suppose to be run automatically. However, when I open
    the report, it stopped at the parameters page and I need to click the run button explicitly. Does any one know why it is so and how can I make it run automatically when I open the reports which I have saved in the Favorite Report.
    Thanks a lot for any advice. 
     

    Thanks a lot for your comment. 
    First of all, there is no error at all and no message in the event log that related to this issue. The report saved in Favorite Reports did able to run successfully without any error just only I need to click the run button manually. Suppose it should run
    automatically, right?
    Second, there actually two MS (say MS01 and MS02) and both of them point to the same SSRS. Say for example, the report saved in the Favorite Reports at the Operation console on MS01 will not run automatically when open it. The behavior is the same when using
    the Operation console on MS02 to open that particular report saved on MS01. 
    However, when I save a report in the Favorite Reports at the Operation console on MS02, it will run automatically when I reopen it. Then I use the Operation console on MS01 to reopen this report, it will run automatically as expected.
    In short, report saved in MS01 got problem no matter where you open it. Report saved in MS02 got no problem no matter where you open it. It is very weird and I don't know what setting in SCOM 2012 would affect this behavior. In a big head right now...

  • Numbers operating slow especially when opening

    It seems that since the last update my Numbers software is operating very slowly.
    Is anyone else experiencing this problem ?

    No problems here.
    Does it run slowly when opening legacy (Numbers 2) documents?  Or when you create new documents too?
    It's possibly a bad installation.  You could try going to LaunchPad and deleting Numbers 3 (the icon with four columns), then redownloading it from the Mac App Store.
    SG

  • I recently updated to latest iTunes and now my pc freezes.  I have a Tosiba 32bit running Windows Vista. Itunes will no longer connect to the store and I get error 42408 when opening ITunes. Please help!!

    When I open iTunes I get the error message 42408.
    I have googled and tried various solutions including
    - uninstalling, downloading and reinstalling. I have done that about 5 times.
    - sending the desktop icon to the rubbish bin and recreating a shortcut.
    - de-authorising the audible account. My computer goes thru the de- authorisation process and says that the account is deauthorised then when I go to re-authorise under Advanced all that is showing is to de-authorise the account. Weird.
    - contacted a tech guy locally and he has no clue. He's thinking it's probably a conflicting software problem. Obviously.
    I have to uninstall the iTunes program just so I can use the internet as the new version slows/freezes everything and makes doing anything on my computer ridiculous.
    Everything on my computer runs fine when Itunes is uninstalled. Great. not.
    I would appreciate some further guidance as unfortunately iTunes seems to have complete control over my life. LOL! Basically if iTunes fails the rest follows... It's a dominoe effect...

    Update:
    I contacted Apple Support and they agreed to waive the $40.00 tech support charge this one time which was very nice condsidering their update caused major problems with my computer. I realise I don't have to accept the updates but when they are released world wide to the public I do expect them to work relatively smoothly.
    To cut a long story short after following the tech support advice and uninstalling and reinstalling itunes 10.5 for the seventh time and more than a week of going in circles and days spent away from my business trying to fix the problem - I gave up.  Because, as a non computer geek,  (no offense - I think cg's are amazing)  what I need is a functioning computer and phone to run my business that can be both relied on - all the time. That is what I paid for and expected when I bought Apples' very smart iPhone - I did not expect to be plagued by an update to a program that causes chaos for over 7 days. (And to be frank I've had problems with iTunes for the whole time I have been using it. From importing cd's to purchasing problems. gah!)
    I may be one tiny person in a very large universe but I believe a certain standard can and should be expected when handing over hard earned cash to a company with a good reputation.
    I'm very disappointed with Apple.
    Unfortunatley they have lost a customer...
    This is how I fixed the problem:
    Yesterday I bought a new smartphone - the Samsung Galaxy phone uses the Android Market and the Kies program. The phone is as good as if not better than the iPhone. The Kies program runs very smoothly on my computer. Downloading Apps is a breeze. My new phone is about the same size as the iPhone and a tad lighter.
    Problem solved!
    As a side note - I will now save about $250.00 per year on my new prepaid phone plan with Boost compared to staying with my previous post-paid plan. I also get unlimited standard national calls in Australia plus unlimited texting too! Not bad for $40.00 a month.
    While this solution worked for me it may not suit everybody.

  • Missing function when running a .exe labview program

    Hi
    everyone,
    I have used
    a subvi taken from the RoboIO library  ( http://www.roboard.com/labview/Labview_RoBoIOv15b.zip) to make up a program in order to run a
    .exe version of it on another computer that doesn’t have Labview (just Run Time Engine
    SP1 is installed).
    The .exe
    works fine on the Labview computer (after adding to the Build/Data directory the
    RoboIO.dll, RoboIOv15b, winIo and WInIO.dll files.). I have no conflict message
    when opening the Project explorer manager dependancies.
    When I
    launch the .exe on the second computer I get a message saying it can't find the
    function I was talking about at the beginning of my post. (running another .exe without
    this function works fine on this second computer)
    It’s the
    first time I am using a .exe on a "non-labview computer", so I must be doing something
    wrong : not creating correctly the .exe program
    Would anybody
    have an idea what could be  the problem?
    Thansk a lot,
    User

    Hi
    To deploy an application in a computer that doesn't have LabVIEW you could create an instaler than an exe.
    You can find how to create an instaler in the LabVIEW help.
    Regards,
    Nicolas M.
    National Instruments France
    #adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
    Journées Techniques LabVIEW 2012 : du 27 septembre au 22 novembre
    2 sessions en parallèle : Débuter a...

  • Need help. I am running a 27 in imac with 16 gigs of ram. Photoshop runs really fast, except when opening files. It takes 5-10 minutes to open even a small file of 1 meg. I cleaned and validated all the fonts and removed all questionable fonts. Reset pref

    Need help. I am running a 27 in imac with 16 gigs of ram. Photoshop runs really fast, except when opening files. It takes 5-10 minutes to open even a small file of 1 meg. I cleaned and validated all the fonts and removed all questionable fonts. Reset preferences and still have problem. Slow to open and in force quit "Photoshop not responding" At this point should I uninstall and start over.

    What are the performance Preferences?

  • I just upgraded from Express to Pro.  When I open a project in Finder and neither Express nor Pro are running, it always opens in Express.  "Open With ..." says Express is the default.  How can I make Pro the default instead?

    I just upgraded from Logic Express to Pro.  When I open a project in Finder and neither Express nor Pro are running, it always opens in Express. I now want projects to open in Pro.  "Open With ..." says Express is the default.  How can I make Pro the default instead?

    Well, when I've done things like that it always sems like a good idea to keep an application that you know the file will definitely open in...

  • My 3 year-old macbook pro is very slow. I have run disk utility and virus scan with no improvement. The "beach ball" will spin for minutes at a time when opening, closing or changing windows. Apple Store looked at it a few months ago with no help.

    my 3 year-old macbook pro is very slow. I have run disk utility and virus scan with no improvement. The "beach ball" will spin for minutes at a time when opening, closing or changing windows. Apple Store looked at it a few months ago with no help. What can I do?

    Under CPU: 3.5% user; 5% system; 91% idle; 441 threads; 90 processes.
    Under System: out of 2GB - 54.7MB free; 530MB wired; 603MB active; 862MB inactive; 1.95GB used.
    Is too much of the system memory tied up? If so, what can I do to free some up?

  • Is it possible to have a VI "run when opened" when accessed via Internet Explorer?

    I am trying to get a remote panel application to "run when opened" when is accessed via Internet explorer. I have multiple remote panel licenses on the server and the VI is Re-entrant. The application works well except for this issue. Having the VI "Run When Opened" via IE is very important to the user. As is, when IE opens, the user must click on the panel image once to get the VI's attention and then again on the start arrow to run the program. Is there any way around this or a way to simplify the process?
    Thanks.
    Solved!
    Go to Solution.

    This is actually the intended operation of remote front panels, however, we can simplify the operation to meet closer with what your customer wants.  Basically, if you were to always have your program run in somewhat of an idle state, you can use the Application Control>>Property node for 'RemotePanel.ConnToClients' property to determine when a user is connected and run the proccess of the program as soon as a connection is detected.  When no connection is detected you could have the program run in an idle state.  The attached screenshot shows a general way to do this.  Have a good evening!
    -Bob
    -Bob
    Attachments:
    idle state.JPG ‏45 KB

Maybe you are looking for

  • Trouble connecting to Wireless Network with T40

    Hi, My girlfriend and I are on vacation and renting an apartment with wireless access and though she is able to connect with her much newer laptop I am having trouble. My laptop is an IBM T40 (2373), running Win2000 with the following wireless card C

  • Run report in Oracle Application from command line

    Hi All, I have a requirement that i have to generate a report through command line and save the output as pdf in a folder on the server. How can i achieve this task. Is any body have some idea plz reply quickly. We have a UAT at 10th of this month. T

  • Creating demo version for a flashlite game

    hi i have a flashlite game which was developed by a freelance developer. i need to create a demo version of my game, where the game just runs for a minute and then closes. i have lost track of the original developer of my game. i don't have much know

  • OIM connector timezone

    Hello everyone, Whenever I set AD account expiration date in OIM, the date get populated minus 1 day in AD. I also have to set the AD reconciliation timestamp to GMT time. I saw "Target Locale: TimeZone" setting in the connector documentation but I c

  • BSOD - Updated BIOS - Windows doesn't load

    Hi, I've been running my system since August with out any problems, however today I decided to download MSI Live Update since I've never update anything on the motherboard before (except for the GPU driver). So I checked the boxes to update the BIOS,