Call function outside of component?

Hi,
How can I call a public function that lives outside a
component?
I have a "Main.mxml" file that is set as my default
application. In this file I have a public function called
"switchView(). I also have another mxml file called "LoginView". I
want to call the public function in Main.mxml from LoginView.mxml.
Does that make sense? There are certain functions I want to be
available across the board to multiple components. I prefer this
method if possible.
Any help appreciated

you can make it static if possible and do a
Main.switchView(); otherwise, Application.application.switchView()
Please note this is just off the top of my head! I might be
wrong here.
A better would be to raise an event and let your main default
application handle this event and do whatever is required instead
of making them dependent on each other.

Similar Messages

  • Calling function outside of stage scope

    So that it will be easy for me to call a hideNav() function, I put the function outside the stage scope. You can see the end of the stage closure below followed by the various things I've tried that do not work. Suggestions welcomed. The alert fires fine so it's an issue with addressing the back button on the main timeline.
         .... stage script stuff here
      })("stage");
       //Edge symbol end:'stage'
    // If you don't understand a concept, put all the words you know in random order and see if something happens  - but it doesn't
      function hideNav(){
        alert("hide");
        sym.getComposition().getStage().getSymbol("back").hide();
        sym.getComposition().getStage().$("back").hide();
        sym.$("stage").backButton.hide();
        sym.getSymbol("back").hide();
        sym.getParentSymbol().getSymbol("back").hide();
        backButton.hide();
        sym.$("back").hide();
    PS, yes I tried them one at a time. This is just a compilation of my greatest non-hits.

    Here is an example using the stage to call the "back" symbol as well as another symbol calling the "back" symbol:
    //Edge symbol: 'stage'
    (function(symbolName) {
      Symbol.bindElementAction(compId, symbolName, "document", "compositionReady", function(sym, e) {
        //if you want a shortcut method
        sym.hideNav = function(){
          sym.getSymbol("back").hideNav();
      //Edge binding end 
    })("stage");
    //Edge symbol end:'stage'
    //=========================================================
    //Edge symbol: 'back'
    (function(symbolName) {
      Symbol.bindSymbolAction(compId, symbolName, "creationComplete", function(sym, e) {
        sym.showNav = function() {
          //do stuff
          console.log('showing');
        sym.hideNav = function() {
          //do stuff
          console.log('hiding');
      //Edge binding end 
    })("back");
    //Edge symbol end:'back'
    //=========================================================
    //Edge symbol: 'something_else'
    (function(symbolName) {
      Symbol.bindSymbolAction(compId, symbolName, "creationComplete", function(sym, e) {
        //this is an example of another symbol using either method to talk to "back"
        var stage = sym.getComposition().getStage();
        //method 1 (calls the method on the stage, which calls the method on the symbol)
        stage.hideNav();
        //method 2 (calls the method on the symbol directly)
        stage.getSymbol('back').hideNav();
      //Edge binding end 
    })("something_else");
    //Edge symbol end:'something_else'

  • Call Function From MXML Component

    I am using MXML to create components that I use within my
    application. I have one MXML file that contains a list with a
    custom itemRenderer that is in another MXML file. I have an
    actionscript file with a function that I want to call from the
    itemRenderer.
    If I call the function from my main application, everything
    works fine. If I try to call it from one of the other MXML files, I
    get a 1180 Call to a possibly undefined function error.
    Is there a special way that I need to use to call the
    function?
    The main MXML file is in the root directory, the actionscript
    file is in a folder called functions, and the MXML files are in a
    folder called components.
    Thank you for any help.

    I was able to figure out my problem. It was just a simple
    typo of including the wrong file in a Script tag. However, this
    caused more issues and I ended up having to rewrite a large section
    of code to get everything working.
    Thank you for your help.

  • Call function in itemRenderer component?

    I'm doing this exercise to help me with learning flex and
    have been using parts of
    Example:
    modifying data in DataGrid control from Live Docs.
    I want to be able to alter the appearance of specific
    DataGrid cells whose data has changed and am struggling a lot with
    it.
    The code is much the same as that example, but I have created
    a component as an itemRenderer for the first name column, linked as
    follows;
    <mx:DataGridColumn headerText="Some Title"
    itemRenderer="cpnts.irender"/>
    The code for this component is;
    <?xml version="1.0" encoding="utf-8"?>
    <mx:HBox xmlns:mx="
    http://www.adobe.com/2006/mxml">
    <mx:Script>
    <![CDATA[
    public function testFn():void{
    this.setStyle('backgroundColor','#BBBBCC')
    ]]>
    </mx:Script>
    <mx:Label text="{data.first}"/>
    </mx:HBox>
    in any hard coded form for now, how could I call the testFn()
    function in the first cell in the table, from the Application?
    What I'm working towards is a DataGrid used with data which
    changes live, each data cell would go green or red depending on if
    the value increased or decreased for example.
    Thanks in advance, please also let me know if this is wrong
    approach for doing this. Should I maybe be handling and comparing
    changed data in my ArrayCollection and setting other properties
    accordingly? eg: @change[none|higher|lower] then re-populating the
    DataGrid and setting display properties for each cell according to
    that value?
    Thanks again, (I hope I'm making sense by the way, I'm a bit
    low on sleep!)
    Jamie Mason

    Override the data setter.
    override public function set data(value:Object):void
    if(value != null)
    this.setStyle("backgroundColor","#BBBBCC");
    super.data = value;
    }

  • Calling functions in a component before the component UI is used?

    I know this has been asked before, in fact I'm sure I've had this problem and resolved it in the past. However, I can't recall the solution off hand.
    I have a component, which contains a publich function and data. The component has a UI which can be loaded by another function call. Loading the UI works fine, and after its been loaded (and close) calling the first function works fine. However, before hte UI has been loaded calling the function does nothing.
    Any thoughts?

    Load the UI earlier but set the visible and includeInLayout properties to the component to false.
    Then in the function call that used to load the UI, just set those properties to true.
    If this post answers your question or helps, please mark it as such.
    Greg Lafrance - Flex 2 and 3 ACE certified
    www.ChikaraDev.com
    Flex / AIR Development, Training, and Support Services

  • How I can call controller's functions from another component?

    Hi again!
    I make a few web Dynpro components, for example first for user-data processing, second - for project-data processing. In the controller of 1-st controller there is a function getUserById(). In the controller of 2-nd component I need such function. And I don't want to make a dublicate for this function in the controller of 2-nd component. Is there a way to call function in one component from another?

    Hi,
         Yes, you can reuse the component. There are two basic types of component communication. 1. Intra Component communication 2.Inter Component communication.
    1. Intra Component  communication: The two components must be in same DC(project).
    Procedure:Say there are C1,C2 components in a DC.
    Open C2, Open interface controller, create a similar (_parameters and return type_) method to the method C2. Call C2's method in this Interface method.   
    Open C1, select and right click  Used Web Dynpro Components -> Add Used Component. In the wizard, you can browse and select the C2 component,and enter a name to the usage. Then the usage of the interface <b>must </b>be added in properties required controllers of a view/component controller.
    Now we can use the method that is available in the C1 interface controller.     
    You must define method before declaring usage
    <b>2.Inter Component  communication:</b> The two components are in different DCs
    Open DC metadata of C2. Right click on Public part-> create new Public Part.Enter name-> Next -> Select entity type as Web Dynpro Component in wizard,in Select Entities  select the component ,Finish.
    A structure for public part is created.
    Open C1, Open DC metadata of C1. Right click on Used Dcs-> AddUsed DC. Browse to C2's public part.
    Select Finish.
    regards,
    Siva
    Edited by: Siva Rama Krushna on Dec 19, 2007 10:07 AM

  • Calling a Function in a Component

    Hi I know this is simple but I can not get this to work I ahve looked for example but come uo with nothing
    I want to call a function in a  Component
    I created  acompoinent based on a label
    <?xml version="1.0" encoding="utf-8"?><mx:Label 
    xmlns:mx="http://www.adobe.com/2006/mxml"> 
       <mx:Script>
         <![CDATA[
           public var mp3:String; 
         private var soundChannel:SoundChannel; 
    // this function will load and play the sound 
        public function playSound():void{ 
           var urlRequest:URLRequest = new URLRequest(mp3);  
          var sound:Sound = new Sound();     sound.load(urlRequest);
    // will stop sound of no device is found  
         if(soundChannel != null ) {         soundChannel.stop();
         soundChannel = sound.play();
    // this function stops the sound from playing, this need tos work on the sound channel  
        private function stopSound():void
         {        soundChannel.stop();
         ]]>
      </mx:Script>
    </mx:Label>
    calling looks like  
    <?xml version="1.0" encoding="utf-8"?><mx:Application 
    xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" xmlns:uofs="uofs.*" > 
    <uofs:ulable text="hellow" id="b21" x="200" y="300" mp3="jazz.mp3" click="playSound()" /> 
     </mx:Application>
    also how wolud you pass a string in the click
    click="playSound(jazz.mp3)"  or click="playSound("jazz.mp3")"
    do not work  

    ok, thanks i got it
    becouse is called the instance of the component id="b21"  the the click ="b21.playsound()"
    ie use the function playSound in the instance of the compinent b21
    still does not work
    Error #2044: Unhandled IOErrorEvent:. text=Error #2032: Stream Error.
    at uofs::ulable/playSound()[C:\Documents and Settings\Administrator\My Documents\Flex Builder 3\CompinentTest\src\uofs\ulable.mxml:17]
    at CompinentTest/__b21_click()[C:\Documents and Settings\Administrator\My Documents\Flex Builder 3\CompinentTest\src\CompinentTest.mxml:4]
    but that is something diffrent that I will look at next
    thanks for the help

  • How can I call functionality of ALV Grid by event of button outside grid?

    Hello,
    How can I call functionality of ALV Grid by event of button located outside ALV Grid? For example how to fire printing of this ALV Grid by button click elsewhere on the screen (not in toolbar of ALV Grid).
    Best regards,
    Josef Motl

    hi Motl,
    these are steps to create a button in ALV and trigger an event from it..
    1.Use the parameter i_callback_pf_status_set in the function module REUSE_ALV_GRID_DISPLAY
    i_callback_program = gd_repid
    i_callback_pf_status_set = 'SET_PF_STATUS'
    form set_pf_status using rt_extab type slis_t_extab.
    set pf-status 'NEWALVSTATUS'.
    endform.
    You have to copy the standard ALV pf stauts to 'NEWALVSTATUS' and add your button.
    2.You have to do the following to process the new button click.
    i_callback_user_command = 'USER_COMMAND'
    form user_command using i_ucomm like sy-ucomm
    is_selfield type slis_selfield.
    case i_ucomm.
    3. to copy the standard pf status to a new one.go to the ALV screen and take the menu System -> Status.  Then look for the standard pf status. Copy this to Z range and then add your new button.
    reward points if helpful
    regards
    satesh

  • Calling webservice in webdynpro component

    Hi All
         I am working on a scenrio where I need to call a webservice outside SAP system into my webdynpro abap component.Kindly let me know how to achieve this.
    Regards
    Sudheendra

    In Web Dynpro ABAP there is nothing special about calling a web service.  Unlike WD Java, there are not dedicated model object types in WD ABAP.  WD ABAP simply has the ability to interact with other ABAP development object types.  You can call function modules, ABAP classes, even modules in old dynpro apps. 
    So calling the webservice from ABAP therefore is just the process of generating the ABAP Proxy Class.  This is the same process regardless of if you want to use this proxy class from WDA or any other type of ABAP development object.  You can then call the proxy class from WDA just like any other type of ABAP class.  There is a service wizard option in later support package levels that includes an option for ABAP Proxy classes - although it doesn't generate the proxy class it just generates the code and context for the call to an already existing proxy class.  The service wizards in WD ABAP are not required however. They are just shortcut code generators and often can't even generate a complete context for a complex web service proxy - so expect to do some manual adjustment after running the wizard.

  • Approximate operator and recursive call function in abap

    Dear expert,
    Please give me an example about Approximate operator and recursive call function in abap
    thanks so much

    Hi
    About Approximate operator, you can go to tcode 'ABAPDOCU', searching CO,CN,CA etc...each of them have example there.
    And recursive function,
    Say here is a FM,
    FUNCTION recursive_get_number.
    *import im_num type i.
    *export ex_num type i.
    ex_num = im_num + 1.
    IF ex_num GE 100.
       EXIT.
    ELSE.
       CALL FUNCTION recursive_get_number
            EXPORTING
               im_num = ex_num
            IMPORTING
               ex_num = ex_num.
    ENDIF.
    ENDFUNCTION.
    When you call this function from outside with importing parameter '1',  then will return you 100.
    regards,
    Archer.

  • Help:alternate for calling function in where clause

    Hi ,
    In below query i'm calling function in where clause to avoid COMPLETE status records,due to this query taking 700 secs to return result.If i'm remove below function condition it's returning results with in 5 secs.Can you some one advice to any alternate idea for this?
    WHERE mark_status != 'COMPLETE'
    SELECT assessment_school,
      subject,
      subject_option,
      lvl,
      component,mark_status,
      mark_status
      NULL AS grade_status,
      NULL AS sample_status,
      :v_year,
      :v_month,
      :v_formated_date,
      :v_type,
      cand_lang
    FROM
      (SELECT assessment_school,
        subject,
        subject_option,
        lvl,
        programme,
        component,
        paper_code,
        cand_lang,
        mark_entry.get_ia_entry_status(:v_year, :v_month, assessment_school, subject_option, lvl, cand_lang, component, paper_code) AS mark_status
      FROM
        (SELECT DISTINCT ccr.assessment_school,
          ccr.subject,
          ccr.subject_option,
          ccr.lvl,
          ccr.programme,
          ccr.language AS cand_lang,
          ccr.paper_code,
          ccr.component
        FROM candidate_component_reg ccr
        WHERE ccr.split_session_year = :v_year
        AND ccr.split_session_month  = :v_month
        AND EXISTS
          (SELECT 1
          FROM IBIS.subject_component sc
          WHERE sc.year          = ccr.split_session_year
          AND sc.month           = ccr.split_session_month
          AND sc.paper_code      = ccr.paper_code
          AND sc.assessment_type = 'INTERNAL'
          AND sc.subject_option NOT LIKE '%self taught%'
          AND sc.component NOT IN ('PERFORMANCE  PRODUCTION','PRESENTATION WORK','REFLECTIVE PROJECT','SPECIAL SYLLABUS INT. ASSESSMENT')
        AND NVL(ccr.withdrawn,'N') = 'N'
        AND ccr.mark_status       != 'COMPLETE'
        AND EXISTS
          (SELECT 1
          FROM school s
          WHERE s.school_code   = ccr.assessment_school
          AND s.training_school = 'N'
    WHERE mark_status != 'COMPLETE';

    One thing you can test quickly is to put the function call in it's own select ...from dual.
    This might make a difference.
    However, only you can check this, I don't have your tables or data.
    So, what happens if you use:
        paper_code,
        cand_lang,
      (select mark_entry.get_ia_entry_status(:v_year, :v_month, assessment_school, subject_option, lvl, cand_lang, component, paper_code) from dual ) AS mark_status
      FROM
        (SELECT DISTINCT ccr.assessment_school,  --<< is the DISTINCT really needed?
          ccr.subject,
          ccr.subject_option,
    ...Also, try to find out the purpose of that above DISTINCT, is it really needed or is there some join missing?

  • Call function in update task empty variables error

    Hello,
    I'm experiencing a weird error while using the addition "In update task".
    My Scenario is the following:
    Use the bapi_goodsmvt_create -> if there are no errors, fill some values and call my function and then commit everything.
    The problem is, when the function runs in update task, all import parameters are empty!
    Also, this only happens in the following code structure
    CALL METHOD run_migo( IMPORTING bapireturn = t_bapireturn).
    IF t_bapireturn IS INITIAL.
      CALL METHOD save_custom_tables. "this runs my function 'IN UPDATE TASK'
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
        EXPORTING
          wait = 'X'.
    ENDIF.
    if I commit inside the method SAVE_CUSTOM_TABLES, the data is passed normally to the function, if I commit like the code above, everything is empty.

    Here's the code:
    METHOD save_partial.
      DATA: t_wegritm    LIKE gt_wegritm,
            t_tegrp_parc TYPE TABLE OF ztegrp_parc,
            w_tegrp_parc TYPE ztegrp_parc,
            w_tegrk_parc TYPE ztegrk_parc.
      FIELD-SYMBOLS <w_wegritm> LIKE LINE OF t_wegritm.
      t_wegritm = gt_wegritm.
      DELETE t_wegritm WHERE mengee IS INITIAL.
      CHECK NOT t_wegritm IS INITIAL.
    *-->save xml iten
      LOOP AT t_wegritm ASSIGNING <w_wegritm>.
        MOVE-CORRESPONDING <w_wegritm> TO w_tegrp_parc.
        w_tegrp_parc-id = gw_tegrk-id.
        w_tegrp_parc-gr_docto = <w_wegritm>-gr_docto.
        w_tegrp_parc-gr_mjahr = <w_wegritm>-gr_mjahr.
        w_tegrp_parc-gr_zeile = <w_wegritm>-gr_zeile.
        APPEND w_tegrp_parc TO t_tegrp_parc.
      ENDLOOP.
      MOVE-CORRESPONDING gw_tegrk TO w_tegrk_parc.
      CALL FUNCTION 'Z_SAVE_PARTIAL'
        IN UPDATE TASK
        EXPORTING
          iw_tegrk_parc = w_tegrk_parc
        TABLES
          it_tegrp_parc = t_tegrp_parc.
    ENDMETHOD.
    I tried to re-create this scenario with a local class, but the code that I originally sent worked(the commit work outside of the routine).

  • RDLC Reports with Custom Font - Error HRESULT E_FAIL has been returned from a call to a COM component.

    Hi,
    I got an ASP.NET MVC (Razor View Engine and C#) application running on a Windows Azure Web Role.
    I use RDLC local reports to create pdf files with printable price tags with respective barcodes.
    I got it working on Azure after installing the barcode font (TrueType) using a start-up task. Recently, it stopped working without me changing anything related to this functionality.
    I'm getting the following error and so far I didn't find any solution. I know the problem is the barcode font because the pdf is generated well with a standard font like Arial. Also, it works perfectly with barcodes when running the app
    locally on my computer. 
    Error HRESULT E_FAIL has been returned from a call to a COM component.
    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
    Exception Details: System.Runtime.InteropServices.COMException: Error HRESULT E_FAIL has been returned from a call to a COM component.
    Source Error:
    An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
    Stack Trace:
    [COMException (0x80004005): Error HRESULT E_FAIL has been returned from a call to a COM component.]
    System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo) +0
    Microsoft.ReportingServices.Rendering.RichText.TextRun.ShapeAndPlace(Win32DCSafeHandle hdc, FontCache fontCache) +1450
    Microsoft.ReportingServices.Rendering.RichText.TextRun.GetWidth(Win32DCSafeHandle hdc, FontCache fontCache, Boolean isAtLineEnd) +30
    Microsoft.ReportingServices.Rendering.RichText.LineBreaker.GetLine(Paragraph paragraph, TextLine line, Win32DCSafeHandle hdc, FontCache fontCache, FlowContext flowContext, Single left, Single right, Single height, Stack`1 lineRunsIndex, Stack`1 lineRunsCharIndex, Int32 lineIndents) +266
    Microsoft.ReportingServices.Rendering.RichText.LineBreaker.FlowParagraph(Paragraph paragraph, Directions direction, Win32DCSafeHandle hdc, Single dpiX, FontCache fontCache, FlowContext flowContext, Boolean keepLines, SizeF flowContextSize, Int32& contentOffset) +768
    Microsoft.ReportingServices.Rendering.RichText.LineBreaker.Flow(TextBox textBox, Win32DCSafeHandle hdc, Single dpiX, FontCache fontCache, FlowContext flowContext, Boolean keepLines, Single& height) +617
    Microsoft.ReportingServices.Rendering.RichText.LineBreaker.Flow(TextBox textBox, Graphics g, FontCache fontCache, FlowContext flowContext, Boolean keepLines, Single& height) +182
    Microsoft.ReportingServices.Rendering.RichText.TextBox.MeasureFullHeight(TextBox textBox, Graphics g, FontCache fontCache, FlowContext flowContext, Single& contentHeight) +759
    Microsoft.ReportingServices.Rendering.HPBProcessing.TextBox.CalculateVerticalSize(PageContext pageContext) +467
    Microsoft.ReportingServices.Rendering.HPBProcessing.TextBox.DetermineVerticalSize(PageContext pageContext, Double topInParentSystem, Double bottomInParentSystem, List`1 ancestors, Boolean& anyAncestorHasKT, Boolean hasUnpinnedAncestors) +35
    Microsoft.ReportingServices.Rendering.HPBProcessing.PageItem.CalculateVertical(PageContext pageContext, Double topInParentSystem, Double bottomInParentSystem, PageItem[] siblings, List`1 ancestors, Boolean& anyAncestorHasKT, Boolean hasUnpinnedAncestors, Nullable`1 sourceWidth) +977
    Microsoft.ReportingServices.Rendering.HPBProcessing.Tablix.AddRowMember(TablixMember rowMember, Int32 colIndex, Int32 rowSpan, Int32 colSpan, LevelInfo childInfo, PageContext pageContext, Double updateWidth) +1104
    Microsoft.ReportingServices.Rendering.HPBProcessing.Tablix.CreateRowMemberChildren(Tablix tablix, TablixMember rowMemberParent, Int32 defTreeLevel, Boolean parentBorderHeader, Int32 parentRowIndex, Int32 parentColIndex, Int32 sourceIndex, Boolean resetContext, Boolean parentHasFooters, LevelInfo parentLevelInfo, PageContext pageContext) +4255
    Microsoft.ReportingServices.Rendering.HPBProcessing.Tablix.CreateRowMemberChildren(Tablix tablix, TablixMember rowMemberParent, Int32 defTreeLevel, Boolean parentBorderHeader, Int32 parentRowIndex, Int32 parentColIndex, Int32 sourceIndex, Boolean resetContext, Boolean parentHasFooters, LevelInfo parentLevelInfo, PageContext pageContext) +3657
    Microsoft.ReportingServices.Rendering.HPBProcessing.Tablix.CreateTablixRows(Tablix tablix, TablixMember rowMemberParent, Int32 defTreeLevel, Boolean parentBorderHeader, Int32 parentRowIndex, Int32 parentColIndex, List`1& pageStructMemberCell, Boolean ignoreTotals, Boolean& finishLevel, Boolean parentHasFooters, CreateItemsContext createItems, Double startInTablix, Double endInTablix, PageContext pageContext) +4341
    Microsoft.ReportingServices.Rendering.HPBProcessing.Tablix.CreateTablixItems(Tablix tablix, PageContext pageContext, CreateItemsContext createItems, Double startInTablix, Double endInTablix) +239
    Microsoft.ReportingServices.Rendering.HPBProcessing.Tablix.CreateVertically(PageContext pageContext, CreateItemsContext createItems, Double startInTablix, Double endInTablix, Double topInParentSystem) +374
    Microsoft.ReportingServices.Rendering.HPBProcessing.Tablix.DetermineVerticalSize(PageContext pageContext, Double topInParentSystem, Double bottomInParentSystem, List`1 ancestors, Boolean& anyAncestorHasKT, Boolean hasUnpinnedAncestors) +662
    Microsoft.ReportingServices.Rendering.HPBProcessing.PageItem.CalculateVertical(PageContext pageContext, Double topInParentSystem, Double bottomInParentSystem, PageItem[] siblings, List`1 ancestors, Boolean& anyAncestorHasKT, Boolean hasUnpinnedAncestors, Nullable`1 sourceWidth) +977
    Microsoft.ReportingServices.Rendering.HPBProcessing.PageItemContainer.DetermineContentVerticalSize(PageContext pageContext, Double topInParentSystem, Double bottomInParentSystem, List`1 ancestors, Boolean& anyAncestorHasKT, Boolean hasUnpinnedAncestors, Boolean resolveState, Boolean resolveItem) +496
    Microsoft.ReportingServices.Rendering.HPBProcessing.PageItemContainer.DetermineVerticalSize(PageContext pageContext, Double topInParentSystem, Double bottomInParentSystem, List`1 ancestors, Boolean& anyAncestorHasKT, Boolean hasUnpinnedAncestors) +281
    Microsoft.ReportingServices.Rendering.HPBProcessing.PageItem.CalculateVertical(PageContext pageContext, Double topInParentSystem, Double bottomInParentSystem, PageItem[] siblings, List`1 ancestors, Boolean& anyAncestorHasKT, Boolean hasUnpinnedAncestors, Nullable`1 sourceWidth) +977
    Microsoft.ReportingServices.Rendering.HPBProcessing.ReportSection.NextPage(RPLWriter rplWriter, Int32 pageNumber, Int32 totalPages, Double top, Double availableHeight, ReportSection nextSection, Boolean isFirstSectionOnPage) +1382
    Microsoft.ReportingServices.Rendering.HPBProcessing.Report.NextPage(RPLWriter rplWriter, Int32 totalPages) +384
    Microsoft.ReportingServices.Rendering.HPBProcessing.HPBProcessing.GetNextPage(RPLReport& rplReport) +437
    Microsoft.ReportingServices.Rendering.ImageRenderer.PDFRenderer.Render(Report report, NameValueCollection deviceInfo, Hashtable renderProperties, CreateAndRegisterStream createAndRegisterStream) +1021
    Microsoft.ReportingServices.Rendering.ImageRenderer.RendererBase.Render(Report report, NameValueCollection reportServerParameters, NameValueCollection deviceInfo, NameValueCollection clientCapabilities, Hashtable& renderProperties, CreateAndRegisterStream createAndRegisterStream) +93
    My source code:
    LocalReport report = new LocalReport();
    // Rdlc file path
    report.ReportPath = Server.MapPath("~/Reports/PriceTags.rdlc");
    // Data source
    report.DataSources.Add(new ReportDataSource("productsDataSet", dataset1));
    // Some parameters
    ReportParameterCollection reportParameters = new ReportParameterCollection();
    reportParameters.Add(new ReportParameter("currency", "EUR"));
    reportParameters.Add(new ReportParameter("precision", 2));
    report.SetParameters(reportParameters);
    // FileContentResult GenPdf(LocalReport report, string filename)
    return GenPdf(report, "Price Tags");
    Any help on this issue would be welcome and sorry for any grammar mistakes.
    Thanks in advance.
    Vitor Pinto

    Hi Vitor,
    Thanks for your posting!
    It seems that the error may have more than one possibilities. I recommend you could try to use the Azure remote debugger to debug your cloud service project on Azure instance. Please see this tutorials:
    http://blogs.msdn.com/b/cie/archive/2014/01/24/windows-azure-remote-debugging.aspx
    You could debug your code using the cloud service URL.
    And you could enable the Diagnostics feature for collecting Logging Data by Using Azure Diagnostics (http://msdn.microsoft.com/library/gg433048.aspx).
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to call functions in windows or Solaris in servlet?

    Hello,
    Does anyone know if there is a way for servlets to call functions in windows or solaris shell command????
    Thanks :)

    Checkout the Runtime.exec family of methods.
    I would think carefully if calling a shell script or batch file from a J2EE web component is something you really want to do though.

  • Call Function in CL_RSPLS_CR_EXIT_BASE to derive values

    Dear all,
    we want to derive the location from item (material). If item gebinns with "EMU" then location is 2. If item beginns with "X" then locations is "68" and so on.
    To realise we chose characteristic relationship with derivation and based on "Exit Class".
    we copied the Class "CL_RSPLS_CR_EXIT_BASE" to "Z_CL_RSPLS_CR_EXIT_BASE". Now we want to call a function method "IF_RSPLS_CR_METHODS~DERIVE" like:
    implement your derivation algorithm here:
      field-symbols: <l_chavl> type any.
      assign component 'BW_LAGER' of structure c_s_chas to <l_chavl>.
    CALL FUNCTION 'Z_ST_BW_LAGER'
    The function look like:
    FUNCTION Z_ST_BW_LAGER.
    ""Lokale Schnittstelle:
    *"  EXPORTING
    *"     REFERENCE(BW_LAGER) TYPE  /BIC/OIBW_LAGER
    lesen
    But we did not know wich are the IMPORTING (like I_INFOPROV ?) parameters to fecht the values for the data. In BW-BPS we have UPC_Y_AREA, UPC_Y_VARIABLE, UPY_Y_CHANM and so on. Wich are the same in BI-integrated planning.
    Regards,
    Daniel Meyer

    Dear all,
    we use this code:
      field-symbols: <l_chavl> type any.
      DATA: LAGER(2).
      assign component '/BIC/P_RMRESC' of structure c_s_chas to <l_chavl>.
      IF <l_chavl>+0(3) = 'EMU'.
        LAGER = '2'.
      ELSEIF <l_chavl>+0(1) = 'O'.
        LAGER = '1'.
      ENDIF.
      <l_s_buf>+2(15) = <l_chavl>.
      assign component '/BIC/BW_LAGER' of structure c_s_chas to <l_chavl>.
      <l_chavl> = LAGER.
      <l_s_buf>+0(2) = <l_chavl>.
    But now we have the problem, how to write ist back to the buffer? If we debugg it, we see in this code:
      IF o_use_buffer = rs_c_true.
        o_r_is_valid->* = l_is_valid.
        IF o_r_is_valid->* = rs_c_true.
          INSERT <l_s_buf> INTO TABLE <l_th_buf>.
          c_s_chas = <l_s_buf>.
        ELSE.
          IF e_t_mesg IS SUPPLIED.
            o_r_s_mesg->* = l_s_mesg.
            APPEND l_s_mesg TO e_t_mesg.
          ENDIF.
          INSERT <l_s_buf> INTO TABLE <l_th_buf>.
          RAISE EXCEPTION TYPE cx_rspls_failed
            EXPORTING
              msgid = l_s_mesg-msgid
              msgty = l_s_mesg-msgty
              msgno = l_s_mesg-msgno
              msgv1 = l_s_mesg-msgv1
              msgv2 = l_s_mesg-msgv2
              msgv3 = l_s_mesg-msgv3
              msgv4 = l_s_mesg-msgv4.
        ENDIF.
      ENDIF.
    that o_r_is_valid->* has no value, so he goes to the ELSE-part.
    Could anyone help?
    Regards,
    Daniel

Maybe you are looking for

  • Can anyone recommend a Hard Drive handycam?

    Apologies for reposting this, however my original post was misleading. I had put HD handycam (which in the real world means high def) when I meant HDD (hard disk drive). Here is my corrected post: Can anyone recommend a Hard Disk Drive handycam that

  • Excise Cycle

    Hi We have configured an Excisable Plant. Transaction wise, we have maintained the data in J1ID, do the Goods Receipt (MIGO - Only Part u2013 I), Capture Excise Invoice (J1IEX_C), Post Excise Invoice (J1IEX_P), Post Vendor Invoice (MIRO) We run the r

  • Help me - imported captions disappear when published!

    Help! I published my Captivate movie as an .exe file. To create it, I had imported several slides from two other Captivate files. Both of these files run fine. I imported the slides and objects, and everything shows up in the "final" .cp file. Howeve

  • FAO Mods: Bug in the Billing software?

    Does DannyH's distress suggest to you that there is a serious bug in the billing software? How many other BB customers are receiving such bills I wonder. Can you report this to the appropriate division please? And let us know what the response is ple

  • My razr m just stopped working turned off by itself and will not turn on

    my razr m just stopped working turned off by itself and will not turn on