Skip to Content
avatar image
Former Member

how to keep a progress bar

Hi all,

I want to keep a progress bar to my views on each action.How to keep that??

Can anyone plz help me out

Regards

Padma N

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Jun 02, 2008 at 11:19 AM

    Hi,

    A progress bar has 3 main properties namely

    1) barcolor -which will decide color of progressbar.

    create a context say ctx_barcolor of ProgressIndicatorBarColor type

    which u can find in com.sap.ide.webdynpro.uielementdefinitions

    2) percentvalue -This will decide the curent length of indicator.

    This should be an integer say ctx_prcnt.

    3) displayvalue -This will decide which value u want to display in ur progress bar.

    This should be a String.For instance say ctx_dispval.

    Now suppose I want to set my progress bar to 80% and say of green color.

    Then first of all I will set percentvalue property.

    wdContext.currentcontextelement.setCtx_prcnt(80);

    Then I will set barcolor property.

    wdContext.currentContextElement().setCtx_barcolor(WDProgressIndicatorBarColor.POSITIVE);

    And finally I will set displayvalue property.

     wdContext.currentContextElement().setCtx_dispval(wdContext.currentContextElement().getCtx_va_prcnt()+"%"); 
    

    Collectivelly

    wdContext.currentcontextelement.setCtx_prcnt(80);
    
    wdContext.currentContextElement().setCtx_barcolor(WDProgressIndicatorBarColor.POSITIVE);
    
     wdContext.currentContextElement().setCtx_dispval(wdContext.currentContextElement().getCtx_va_prcnt()+"%"); 
    
    

    I hope this helps

    Regards

    Surender Dahiya

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      How can we estimate transaction time as 5 or 10 sec..Generally progress bar is a picture representation of the background transaction process.Generally one cant estimate the time of the transaction.The progress bar has to move according to the transaction..

      How to solve this??

      Regards

      Padma N

  • avatar image
    Former Member
    Jun 02, 2008 at 10:35 AM

    Hi,

    use the timmed trigger Ui component and set the delay

    in the action handler of this set the (display)values for the progress bar.

    Regards

    Ayyapparaj

    Add comment
    10|10000 characters needed characters exceeded