How to dispaly two dicimal points

How to dispaly two dicimal points in java (Example 1) 5.70 Example 2) 561 but it should display as 561.00)
Example1) Here I am able to display 5.7 but it should display as 5.70
Example 2) Here I am able to display 561 but it should display as 561.00
Following is the code I wrote
package oracle.apps.ont.margin.server;
import java.text.NumberFormat;
import oracle.apps.fnd.framework.OAException;
import oracle.apps.fnd.framework.server.OAViewRowImpl;
import oracle.jbo.domain.Number;
import oracle.jbo.server.AttributeDefImpl;
public class GetOrderLineDetailsVORowImpl extends OAViewRowImpl
public GetOrderLineDetailsVORowImpl()
mDECIMAL_PLACES = 2;
public Number getHeaderId()
return (Number)getAttributeInternal(0);
public void setHeaderId(Number value)
setAttributeInternal(0, value);
public Number getLineId()
return (Number)getAttributeInternal(1);
public void setLineId(Number value)
setAttributeInternal(1, value);
public Number getLineTypeId()
return (Number)getAttributeInternal(2);
public void setLineTypeId(Number value)
setAttributeInternal(2, value);
public String getLineNumber()
return (String)getAttributeInternal(3);
public void setLineNumber(String value)
setAttributeInternal(3, value);
public String getOrderedItem()
return (String)getAttributeInternal(4);
public void setOrderedItem(String value)
setAttributeInternal(4, value);
public String getOrderQuantityUom()
return (String)getAttributeInternal(5);
public void setOrderQuantityUom(String value)
setAttributeInternal(5, value);
public Number getPricingQuantity()
return (Number)getAttributeInternal(6);
public void setPricingQuantity(Number value)
setAttributeInternal(6, value);
public String getPricingQuantityUom()
return (String)getAttributeInternal(7);
public void setPricingQuantityUom(String value)
setAttributeInternal(7, value);
public Number getOrderedQuantity()
return (Number)getAttributeInternal(8);
public void setOrderedQuantity(Number value)
setAttributeInternal(8, value);
public Number getUnitSellingPrice()
return (Number)getAttributeInternal(9);
public void setUnitSellingPrice(Number value)
setAttributeInternal(9, value);
public Number getUnitListPrice()
return (Number)getAttributeInternal(10);
public void setUnitListPrice(Number value)
setAttributeInternal(10, value);
public String getItemTypeCode()
return (String)getAttributeInternal(11);
public void setItemTypeCode(String value)
setAttributeInternal(11, value);
public String getLineCategoryCode()
return (String)getAttributeInternal(12);
public void setLineCategoryCode(String value)
setAttributeInternal(12, value);
public String getItemIdentifierType()
return (String)getAttributeInternal(13);
public void setItemIdentifierType(String value)
setAttributeInternal(13, value);
public Number getUnitCost()
return (Number)getAttributeInternal(14);
public void setUnitCost(Number value)
setAttributeInternal(14, value);
public Number getRebate()
return (Number)getAttributeInternal(15);
public void setRebate(Number value)
setAttributeInternal(15, value);
public Number getDiscount()
Number vUnitListPrice = getUnitListPrice();
if(vUnitListPrice == null)
vUnitListPrice = new Number(0);
Number vUnitSellingPrice = getUnitSellingPrice();
if(vUnitSellingPrice == null)
vUnitSellingPrice = new Number(0);
Number vRebate = getRebate();
if(vRebate == null)
vRebate = new Number(0);
double discount = (vUnitListPrice.doubleValue() - vUnitSellingPrice.doubleValue()) + vRebate.doubleValue();
if(discount < (double)0)
discount = 0.0D;
NumberFormat form = NumberFormat.getInstance();
form.setMaximumFractionDigits(mDECIMAL_PLACES);
try
Number number = new Number(form.parse(form.format(discount)));
return number;
catch(Exception e)
throw OAException.wrapperException(e);
public void setDiscount(Number value)
setAttributeInternal(16, value);
public Number getMargin()
Number vUnitSellingPrice = getUnitSellingPrice();
if(vUnitSellingPrice == null)
vUnitSellingPrice = new Number(0);
Number vRebate = getRebate();
if(vRebate == null)
vRebate = new Number(0);
Number vUnitCost = getUnitCost();
if(vUnitCost == null)
vUnitCost = new Number(0);
try
Number vMargin = new Number((vUnitSellingPrice.doubleValue() + vRebate.doubleValue()) - vUnitCost.doubleValue());
NumberFormat form = NumberFormat.getInstance();
form.setMaximumFractionDigits(mDECIMAL_PLACES);
Number number = new Number(form.parse(form.format(vMargin.doubleValue())));
return number;
catch(Exception e)
throw OAException.wrapperException(e);
public void setMargin(Number value)
setAttributeInternal(17, value);
public Number getExtendedListPrice()
if(getUnitListPrice() != null && getPricingQuantity() != null)
return getUnitListPrice().multiply(getPricingQuantity());
else
return new Number(0);
public void setExtendedListPrice(Number value)
setAttributeInternal(18, value);
public Number getExtendedDiscount()
if(getDiscount() != null && getPricingQuantity() != null)
return getDiscount().multiply(getPricingQuantity());
else
return new Number(0);
public void setExtendedDiscount(Number value)
setAttributeInternal(19, value);
public Number getExtendedRebate()
if(getPricingQuantity() != null && getRebate() != null)
return getPricingQuantity().multiply(getRebate());
else
return new Number(0);
public void setExtendedRebate(Number value)
setAttributeInternal(20, value);
public Number getExtendedSellingPrice()
if(getUnitSellingPrice() != null && getPricingQuantity() != null)
return getUnitSellingPrice().multiply(getPricingQuantity());
else
return new Number(0);
public void setExtendedSellingPrice(Number value)
setAttributeInternal(21, value);
public Number getExtendedCost()
if(getUnitCost() != null && getPricingQuantity() != null)
return getUnitCost().multiply(getPricingQuantity());
else
return new Number(0);
public void setExtendedCost(Number value)
setAttributeInternal(22, value);
public Number getExtendedMargin()
if(getPricingQuantity() != null && getTempMargin() != null)
try
Number vMargin = getTempMargin().multiply(getPricingQuantity());
NumberFormat form = NumberFormat.getInstance();
form.setMaximumFractionDigits(mDECIMAL_PLACES);
Number number = new Number(form.parse(form.format(vMargin.doubleValue())));
return number;
catch(Exception e)
throw OAException.wrapperException(e);
else
return new Number(0);
public void setExtendedMargin(Number value)
setAttributeInternal(23, value);
public Number getMarginPercent()
double vMarginAmount = 0.0D;
vMarginAmount = getUnitSellingPrice().doubleValue();
if(vMarginAmount == (double)0)
return new Number(100);
vMarginAmount = (getMargin().doubleValue() * (double)100) / vMarginAmount;
Number marginPercent = null;
try
marginPercent = new Number(vMarginAmount);
catch(Exception e)
e.printStackTrace();
NumberFormat form = NumberFormat.getInstance();
form.setMaximumFractionDigits(mDECIMAL_PLACES);
try
Number number = new Number(form.parse(form.format(marginPercent.doubleValue())));
return number;
catch(Exception e)
throw OAException.wrapperException(e);
public void setMarginPercent(Number value)
setAttributeInternal(24, value);
protected Object getAttrInvokeAccessor(int index, AttributeDefImpl attrDef)
throws Exception
switch(index)
case 0: // '\0'
return getHeaderId();
case 1: // '\001'
return getLineId();
case 2: // '\002'
return getLineTypeId();
case 3: // '\003'
return getLineNumber();
case 4: // '\004'
return getOrderedItem();
case 5: // '\005'
return getOrderQuantityUom();
case 6: // '\006'
return getPricingQuantity();
case 7: // '\007'
return getPricingQuantityUom();
case 8: // '\b'
return getOrderedQuantity();
case 9: // '\t'
return getUnitSellingPrice();
case 10: // '\n'
return getUnitListPrice();
case 11: // '\013'
return getItemTypeCode();
case 12: // '\f'
return getLineCategoryCode();
case 13: // '\r'
return getItemIdentifierType();
case 14: // '\016'
return getUnitCost();
case 15: // '\017'
return getRebate();
case 16: // '\020'
return getDiscount();
case 17: // '\021'
return getMargin();
case 18: // '\022'
return getExtendedListPrice();
case 19: // '\023'
return getExtendedDiscount();
case 20: // '\024'
return getExtendedRebate();
case 21: // '\025'
return getExtendedSellingPrice();
case 22: // '\026'
return getExtendedCost();
case 23: // '\027'
return getExtendedMargin();
case 24: // '\030'
return getMarginPercent();
case 25: // '\031'
return getExtendedMarginPercent();
case 26: // '\032'
return getTempMargin();
return super.getAttrInvokeAccessor(index, attrDef);
protected void setAttrInvokeAccessor(int index, Object value, AttributeDefImpl attrDef)
throws Exception
switch(index)
case 0: // '\0'
setHeaderId((Number)value);
return;
case 1: // '\001'
setLineId((Number)value);
return;
case 2: // '\002'
setLineTypeId((Number)value);
return;
case 3: // '\003'
setLineNumber((String)value);
return;
case 4: // '\004'
setOrderedItem((String)value);
return;
case 5: // '\005'
setOrderQuantityUom((String)value);
return;
case 6: // '\006'
setPricingQuantity((Number)value);
return;
case 7: // '\007'
setPricingQuantityUom((String)value);
return;
case 8: // '\b'
setOrderedQuantity((Number)value);
return;
case 9: // '\t'
setUnitSellingPrice((Number)value);
return;
case 10: // '\n'
setUnitListPrice((Number)value);
return;
case 11: // '\013'
setItemTypeCode((String)value);
return;
case 12: // '\f'
setLineCategoryCode((String)value);
return;
case 13: // '\r'
setItemIdentifierType((String)value);
return;
case 14: // '\016'
setUnitCost((Number)value);
return;
case 15: // '\017'
setRebate((Number)value);
return;
case 16: // '\020'
setDiscount((Number)value);
return;
case 17: // '\021'
setMargin((Number)value);
return;
case 18: // '\022'
setExtendedListPrice((Number)value);
return;
case 19: // '\023'
setExtendedDiscount((Number)value);
return;
case 20: // '\024'
setExtendedRebate((Number)value);
return;
case 21: // '\025'
setExtendedSellingPrice((Number)value);
return;
case 22: // '\026'
setExtendedCost((Number)value);
return;
case 23: // '\027'
setExtendedMargin((Number)value);
return;
case 24: // '\030'
setMarginPercent((Number)value);
return;
case 25: // '\031'
setExtendedMarginPercent((Number)value);
return;
case 26: // '\032'
setTempMargin((Number)value);
return;
super.setAttrInvokeAccessor(index, value, attrDef);
public Number getExtendedMarginPercent()
double vMarginAmount = 0.0D;
Number vUnitSellingPrice = getUnitSellingPrice();
if(vUnitSellingPrice == null)
vUnitSellingPrice = new Number(0);
Number vRebate = getRebate();
if(vRebate == null)
vRebate = new Number(0);
vMarginAmount = vUnitSellingPrice.doubleValue() + vRebate.doubleValue();
if(vMarginAmount == (double)0)
return new Number(100);
Number vMargin = getMargin();
if(vMargin == null)
vMargin = new Number(0);
vMarginAmount = (vMargin.doubleValue() * (double)100) / vMarginAmount;
Number marginPercent = null;
try
marginPercent = new Number(vMarginAmount);
catch(Exception e)
e.printStackTrace();
NumberFormat form = NumberFormat.getInstance();
form.setMaximumFractionDigits(mDECIMAL_PLACES);
try
Number number = new Number(form.parse(form.format(marginPercent.doubleValue())));
return number;
catch(Exception e)
throw OAException.wrapperException(e);
public void setExtendedMarginPercent(Number value)
setAttributeInternal(25, value);
public Number getTempMargin()
Number vUnitSellingPrice = getUnitSellingPrice();
if(vUnitSellingPrice == null)
vUnitSellingPrice = new Number(0);
Number vRebate = getRebate();
if(vRebate == null)
vRebate = new Number(0);
Number vUnitCost = getUnitCost();
if(vUnitCost == null)
vUnitCost = new Number(0);
try
Number vTempMargin = new Number((vUnitSellingPrice.doubleValue() + vRebate.doubleValue()) - vUnitCost.doubleValue());
Number number = vTempMargin;
return number;
catch(Exception e)
throw OAException.wrapperException(e);
public void setTempMargin(Number value)
setAttributeInternal(26, value);
protected static final int HEADERID = 0;
protected static final int LINEID = 1;
protected static final int LINETYPEID = 2;
protected static final int LINENUMBER = 3;
protected static final int ORDEREDITEM = 4;
protected static final int ORDERQUANTITYUOM = 5;
protected static final int PRICINGQUANTITY = 6;
protected static final int PRICINGQUANTITYUOM = 7;
protected static final int ORDEREDQUANTITY = 8;
protected static final int UNITSELLINGPRICE = 9;
protected static final int UNITLISTPRICE = 10;
protected static final int ITEMTYPECODE = 11;
protected static final int LINECATEGORYCODE = 12;
protected static final int ITEMIDENTIFIERTYPE = 13;
protected static final int UNITCOST = 14;
protected static final int REBATE = 15;
protected static final int DISCOUNT = 16;
protected static final int MARGIN = 17;
protected static final int EXTENDEDLISTPRICE = 18;
protected static final int EXTENDEDDISCOUNT = 19;
protected static final int EXTENDEDREBATE = 20;
protected static final int EXTENDEDSELLINGPRICE = 21;
protected static final int EXTENDEDCOST = 22;
protected static final int EXTENDEDMARGIN = 23;
protected static final int MARGINPERCENT = 24;
protected static final int EXTENDEDMARGINPERCENT = 25;
protected static final int TEMPMARGIN = 26;
int mDECIMAL_PLACES;
package oracle.apps.ont.margin.server;
import java.text.NumberFormat;
import oracle.apps.fnd.framework.server.OAApplicationModuleImpl;
import oracle.jbo.ViewLink;
import oracle.jbo.domain.Number;
import oracle.jbo.server.ApplicationModuleImpl;
import oracle.jbo.server.ViewLinkImpl;
// Referenced classes of package oracle.apps.ont.margin.server:
// GetOrderLineDetailsVOImpl, GetOrderLineDetailsVORowImpl, GetOrderHeadersVOImpl
public class MaintainOrdersAMImpl extends OAApplicationModuleImpl
public MaintainOrdersAMImpl()
mDECIMAL_PLACES = 2;
public String computeMarginPercent()
double dTotalSellPrice = 0.0D;
double dTotalRebate = 0.0D;
double dTotalMargin = 0.0D;
GetOrderLineDetailsVORowImpl orderlineRow = null;
GetOrderLineDetailsVOImpl orderVO = (GetOrderLineDetailsVOImpl)findViewObject("GetOrderLineDetailsVO");
orderVO.reset();
while(orderVO.hasNext())
orderlineRow = (GetOrderLineDetailsVORowImpl)orderVO.next();
dTotalSellPrice += orderlineRow.getExtendedSellingPrice().doubleValue();
dTotalRebate += orderlineRow.getExtendedRebate().doubleValue();
dTotalMargin += orderlineRow.getExtendedMargin().doubleValue();
NumberFormat form = NumberFormat.getInstance();
form.setMaximumFractionDigits(mDECIMAL_PLACES);
return form.format((dTotalMargin * 100D) / dTotalSellPrice);
public void getContextInfo(String pHeaderId)
GetOrderHeadersVOImpl orderVO = (GetOrderHeadersVOImpl)findViewObject("GetOrderHeadersVO");
if(orderVO != null)
try
Number numHeaderId = new Number(pHeaderId);
orderVO.initQuery(numHeaderId);
orderVO.reset();
orderVO.next();
oracle.jbo.Row ro = orderVO.getCurrentRow();
if(ro != null)
GetOrderLineDetailsVOImpl linesVO = (GetOrderLineDetailsVOImpl)findViewLink("HeaderToLinesVL1").getDestination();
if(linesVO != null)
linesVO.first();
catch(Exception exception) { }
public GetOrderHeadersVOImpl getGetOrderHeadersVO()
return (GetOrderHeadersVOImpl)findViewObject("GetOrderHeadersVO");
public GetOrderLineDetailsVOImpl getGetOrderLineDetailsVO()
return (GetOrderLineDetailsVOImpl)findViewObject("GetOrderLineDetailsVO");
public ViewLinkImpl getHeaderToLinesVL1()
return (ViewLinkImpl)findViewLink("HeaderToLinesVL1");
public static void main(String args[])
ApplicationModuleImpl.launchTester("oracle.apps.ont.margin.server", "MaintainOrdersAMLocal");
int mDECIMAL_PLACES;
Please help me in this regard.
Thanks in advance.

hi,
With this code u can show 451 as 451.0
see my it will help u.
import java.util.*;
import java.text.*;
public class DecimalFormatDemo {
static public void customFormat(String pattern, double value ) {
DecimalFormat myFormatter = new DecimalFormat(pattern);
String output = myFormatter.format(value);
System.out.println(value + " " + pattern + " " + output);
static public void main(String[] args) {
customFormat("######.##", 123456);
}

Similar Messages

  • Measuring power at two different point (single phase)

    Hi all,
    I am new user of LabVIEW 2013 with electrical power suite.
    May i know how to measure two different point of single phase system using the same VI such as in DAQ power and energy example?
    As I notice that there are several type of wiring available. Is only one voltage and one current availabe during 1 ph voltage and 1 current selection. Thus, when I select 3ph voltage and 2 current, the value I obtain is not seem to be true.
    From the figure attached, I want to measure the voltage at current at the solar/PV  to obtain the power value. Other than that, I also need to measure the voltage and current at the load such as water heater. This is a single phase configuration network.
    (2 voltage and 2 current measurement at single phase)
    Hope for guidance.

    Hi Lewis,
    Here attached the file.
    Actually I wanted to measure power two different point in a single phase system as shown in the first attachement.
    Since, there is example in power quality measurement(DAQ) as shown in the second attachment.
    since there is two measuring point in my measurement. May i know how to obtain two measurement voltage at the same time in DAQ?
    Hope for guidance.
    Attachments:
    Two measuremernt point (single phase).png ‏7 KB
    power & energy measurement.jpg ‏172 KB

  • How to delete a path between two anchor points

    hi ,
    it's all in the title ,
    could you tell me  please how to delete a path between two anchor points without using the path eraser tool ?
    When I select these two anchor points and press delete everything is gone.
    ps : I want to keep the anchor points after the deletion
    Thank you

    Silkrooster wrote:
    With some experimentation, I did find that selecting the path can leave orphan points. So keep that in mind as it may be necessary to use Object>Path>Clean up...
    You will not get orphan points if you delete a segment that is not at the end of a path.  For segment that is at the end of a path, or is the entire path, select the end point/s and press delete. For the one segment that is entire path you can use the selection tool (black pointer) or hold Alt with the direct selection tool (white pointer) which is useful for objects in a group.

  • How can I find out the angle of a straight line between two anchor points?

    I would like to extend a line which is at a given angle (not 45,90 degree). Is there a quick and reliable way to do this? or to find out the angle of a segment?
    What I'm doing at the moment is just direct selecting an anchor point and using the visual guides to extend it. I don't think this is exact though so was I wondering if anyone had any techniques for doing this?
    Thanks!

    portfelio,
    Smart Guides are your friends.
    As a general solution, you may:
    1) With the Line Segment Tool ClickDrag between the two Anchor Points (Smart Guides say anchor);
    2) With the appropriate Reference Point selected in the Transform palette, increase the W or H value and Ctrl/Cmd+Enter;
    3) Lock the new auxiliary line;
    4) ClickDrag the relevant Anchor Point of the original line along the extended auxiliary line (Smart Guides say path);
    5) Unlock and delete the auxiliary line.
    After 1), you may also click the Line Segment Tool to see the angle.
    Or,  in a case with a straight path (segment), you may use the Scale Tool:
    1) (Direct) Select the straight path (segment);
    2) Switch to the Scale Tool and Click the Anchor Point that is to stay, then ClickDrag the one to move (Smart Guides say uniform when you are dragging in the right direction).

  • How to use two split this method in my code

    How to use two split this method in my code
    if i got one string line which like this
    ("aa!bb!cc~ab!bc!cd") a
    nd want to use two split to spare ! and ~ this seal for my spare point how that output
    has come diff ?
    public static void main(String[] args) {
        String str = "aa!bb!cc~ab!bc!cd";
        String strs[]= str.split("~");
        String strE[]= str.split("!");
        int count =0;
        for(int j=0; j < strs.length; j++){
          for (int i = 0; i < strE.length; i++){   
              System.out.println(count + " " + strE);
    count++;
    the output how can it be like this
    0 aa
    0 bb
    0 cc
    1 ab
    1 bc
    1 cd

    Move your second slit inside the first loop, so you are splitting the substring, not the entire string.

  • How to add two heading in fieldcatlog

    Hello Exprets,
    I have an ALV report, in which I want two dispaly two header line... I don't no how to do that.
    for example.
    Class 10
    Class 11
    Class 12
    Class-A
    Class-B
    Class-C
    Class-D
    Class-A
    Class-B
    Class-C
    Class-D
    Class-A
    Class-B
    Class-C
    Class-D
    Can anyone please guide me in this issue.
    Thanks

    Hi Chetan,
    Try this program. It works.
    REPORT ZTEST_PROGRAM.
    DATA: BEGIN OF it_data OCCURS 0,
            header1 TYPE char50,
            header2 TYPE char50,
            arbgb TYPE t100-arbgb,
            msgnr TYPE t100-msgnr,
            text TYPE t100-text,
          END OF it_data.
    *ALV Declarations
    TYPE-POOLS:slis.
    TYPES:
       ty_fieldcat          TYPE slis_fieldcat_alv,
       ty_events            TYPE slis_alv_event,
       ty_layout            TYPE slis_layout_alv.
    DATA:
       wa_fieldcat          TYPE ty_fieldcat,
       wa_events            TYPE ty_events,
       wa_layout            TYPE ty_layout.
    DATA:
       it_events            TYPE STANDARD TABLE OF ty_events,
       it_fieldcat          TYPE STANDARD TABLE OF ty_fieldcat.
    DATA:
       g_program            TYPE sy-repid.
    START-OF-SELECTION.
      SELECT * FROM t100 INTO CORRESPONDING FIELDS OF TABLE it_data
      UP TO 20 ROWS WHERE sprsl = sy-langu.
    *Fieldcatalog.
      PERFORM fieldcatalog
      USING:                            "Field Lengths
      1 1 'HEADER1' 'IT_DATA' 'HEADER1' '30',
      1 2 'HEADER2' 'IT_DATA' 'HEADER2' '73',
      2 3 'ARBGB'   'IT_DATA' 'ARBGB'   '20',
      2 4 'MSGNR'   'IT_DATA' 'MSGNR'   '10',
      2 5 'TEXT'    'IT_DATA' 'TEXT'    '73'.
      wa_layout-info_fieldname = 'COLOR'.
      g_program = sy-repid.
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
        EXPORTING
          i_callback_program = g_program
          is_layout          = wa_layout
          it_fieldcat        = it_fieldcat
          it_events          = it_events
        TABLES
          t_outtab           = it_data
        EXCEPTIONS
          program_error      = 1
          OTHERS             = 2.
    *&      Form  FIELDCATALOG
    FORM fieldcatalog USING row_pos col_pos field table f_txt outputlen.
      wa_fieldcat-row_pos   = row_pos.
      wa_fieldcat-col_pos   = col_pos.
      wa_fieldcat-fieldname = field.
      wa_fieldcat-tabname   = table.
      wa_fieldcat-seltext_l = f_txt.
      wa_fieldcat-outputlen = outputlen.
      APPEND wa_fieldcat TO it_fieldcat.
      CLEAR  wa_fieldcat.
    ENDFORM.                    " FIELDCATALOG
    Thanks
    Venkat.O

  • How to set two radius servers one is window NPS another is cisco radius server

    how to set two radius servers one is window NPS another is cisco radius server
    when i try the following command, once window priority is first , i type cisco radius user name, it authenticated fail
    i can not use both at the same time
    radius-server host 192.168.1.3  is window NPS
    radius-server host 192.168.1.1 is cisco radius
    http://blog.skufel.net/2012/06/how-to-integrating-cisco-devices-access-with-microsoft-npsradius/
    conf t
    no aaa authentication login default line
    no aaa authentication login local group radius
    no aaa authorization exec default group radius if-authenticated
    no aaa authorization network default group radius
    no aaa accounting connection default start-stop group radius
    aaa new-model
    aaa group server radius IAS
     server 192.168.1.1 auth-port 1812 acct-port 1813
     server 192.168.1.3 auth-port 1812 acct-port 1813
    aaa authentication login userAuthentication local group IAS
    aaa authorization exec userAuthorization local group IAS if-authenticated
    aaa authorization network userAuthorization local group IAS
    aaa accounting exec default start-stop group IAS
    aaa accounting system default start-stop group IAS
    aaa session-id common
    radius-server host 192.168.1.1 auth-port 1812 acct-port 1813
    radius-server host 192.168.1.2 auth-port 1812 acct-port 1813
    radius-server host 192.168.1.3 auth-port 1645 acct-port 1646
    radius-server host 192.168.1.3 auth-port 1812 acct-port 1813
    privilege exec level 1 show config
    ip radius source-interface Gi0/1
    line vty 0 4
     authorization exec userAuthorization
     login authentication userAuthentication
     transport input telnet
    line vty 5 15
     authorization exec userAuthorization
     login authentication userAuthentication
     transport input telnet
    end
    conf t
    aaa group server radius IAS
     server 192.168.1.3 auth-port 1812 acct-port 1813
     server 192.168.1.1 auth-port 1812 acct-port 1813
    end

    The first AAA server listed in your config will always be used unless/until it becomes unavailable. At that point the NAD would move down to the next AAA server defined on the list and use that one until it becomes unavailable and then move to third one, and so on. 
    If you want to use two AAA servers at the same time then you will need to put a load balancer in front of them. Then the virtual IP (vip) will be listed in the NADs vs the individual AAA servers' IPs. 
    I hope this helps!
    Thank you for rating helpful posts!

  • How to VIEW two tracks's materials SIMULTANEOUSLY and SYNCHRONIZED in MONITORS?

    How to VIEW two tracks's materials SIMULTANEOUSLY and SYNCHRONIZED in MONITORS?
    "Program-monitor" shows the final edited material, and "Source-monitor" shows only one track at a time, and NOT SYNCHRONIZED with the sequence. "MultiCam-monitor" shows the tracks as I need, BUT editing is very stiff:  I want to do edits+cross-fades by hand IN THE TIMELEINE rather than by clicking the monitors. (Some of the "MultiCam-monitor's" other problems: 1) the timeline's time-inspector doesn't move while clicking the monitors, 2) vice-versa: monitor-image doesn't roll when the space-key is pressed for playback the timeline, 3) monitor doesn't show the cross-fades.....)   I understand the "Reference-monitor" doesn't help either at this.
    I would SO much like to SEE all tracks' materials simultaneously in whatever monitor, to edit efficently in the timeline.
    Software: Premiere CS3 version 3.2.0
    Operating System: Mac OS X (v10.4)

    You can only do this in the multicamera monitor.  That's what it's there for.  Proper procedure is to cut there, then go to the timeline and add transitions.
    If you're multicamera monitor playback isn't working correctly (I admit having a hard time understanding your points here), then try solving those.

  • How to get the entry point in the ActiveX/COM adaptor

    below is the description of the Demo of using the ActiveX/COM to call new seq . 
    API Demo
    1. Manually add a Message Popup step to the MainSequence of a
    new sequence file. Save the sequence file as launch.seq.
    2. Create another sequence file and save the file as caller.seq.
    3. In the MainSequence of the caller.seq file, add Action steps
    using the ActiveX/COM Adapter to call into the TestStand API and
    launch the launch.seq file in a new execution.You might need the
    following two methods to complete this step.
    . Engine.GetSequenceFileEx
    . Engine.NewExecution
    so the question as follows:
    1.i call the method of get sequencefileEx
    2. call the method of getmodlesequenceFile
    3.call the method of evalEntryPointNameExpression
    4.call the method of NewExecution.
    but at the step of 3. i haven't get the entry point.
    so how to solve this issue? thanks
    Attachments:
    QQ图片20140115200924.jpg ‏58 KB
    QQ图片20140115201708.jpg ‏100 KB

    This is a duplicate post of this:
    http://forums.ni.com/t5/NI-TestStand/How-to-get-the-entry-point-in-the-ActiveX-COM-adaptor/m-p/27005...

  • How to include two charts in one web template

    I need to dispaly two charts which are based on same query and on characteristic 1 vs KF's and the other on characteristic 2 vs KF's in one web template.
    How can this be done?
    Thanks in advance,
    Murali.

    When you execute the query in the bex analyzer, perform th enavigation stpes to reach to your desired layout of data. Then from the Save button on the bex toolbar, choose Save > Save View Global. Give it a technical name and  a description. Then log back into the WAD and assign the view as the data provider (Note there are 2 buttons over there: One for query and the other for View)
    Hope this helps...

  • How to synchronize two fpga DIO?

    Hi!
    I am using two FPGA 7962R (flexrio) with each 6581 terminal board in PXIe-1082 chassis. My problem is how to synchronize two 7962R digital output with PXIe-1082 chassis backplane signal Dstar* or Clk10 or DAQ signal.
    Actually I tried the synchronization with one DAQ counter clock (confering 'Gen Dig Pulse Train-Finite_NI. vi') , and get the signal PXI-Trig0 by source terminal and target terminal connection, but that one does not work properly. Especially, one trigger signal in HOST to set the starting point of each FPGA (7962R), make error by depending on the trigger signal value(Hz value and Timed loop clock in FPGA vi). It was very tricky and not reliable. (I am attaching figure files as explaining the situation)
    My aim is simply to use two FPGA 7962R Digital output as one FPGA, for controling X-axis, Y-axis with each FPGA, while able to change each FPGA (X-axis, Y axis) digital output value. Because the synchronization is not correct, X,Y axis control with Two FPGA currently is out of target if I use simply while-loop design in HOST and timed-loop design in FPGA vi. What is correct design to synchronize the two FPGA 7962R without using PFI line, only with PXIe-1082 chassis backplane signal and able to change the digital output value? Please let me know any idea for HOST vi, FPGA vi programming.
    Many Thanks
    Attachments:
    host1.png ‏47 KB
    fpga1.png ‏131 KB

    Posted response to this in the following thread:
    http://forums.ni.com/t5/Real-Time-Measurement-and/synchronization-two-fpga-7962r-digital-output/m-p/...
    Patrick H | National Instruments | Software Engineer

  • How to assign Two Decimal Places for numeric Columns(urgent)

    Hi all,
    I have lot of Numeric fields under Advance table Section.
    for those fields data is coming single decimal point (42.5).
    but client want to see the data upto two decimal points like 42.50
    how to achieve this functionality.
    Please give me some idea on this functionality.
    it is very urgent for me.thanks in advance
    thanks
    vinu

    Use OADataBoundVariables and set the US currency format for the data. It would come accordingly. You can look for the exact code in some other threads.
    Another option is to set the decimal format in the getter of the VO. It would show accordingly on the page.

  • How to arrange two items into a row in the webdynpro provided by SAP?

    I am trying to custormize the ESS personal information - address info.
    My question is that how to put two separate items (like City and Address) into a same row?
    That is to change
    City: xxx
    Address: bbb
    to
    City: xxx     Address: bbb
    ps: I didn't got the NWDI, former changes were made by the ctrl + right clk.
    Thanks in advance!

    Hi,
       As like Shemim said, you can set the RootUIElementContainer layout property as Matrix Layout and in the UI Element (ie. label), Change the layoutdata property to MatrixHeadData to start in New line and to the show in the label in same line, set layoutdata property to MatrixData
    Regards,
    Venkatesh. K
    /* Points are Welcome */

  • How to play a cue point with mixer

    I know how to play a cue point of sound with the method:
    sound(1).queue([#member: ...  #startTime: ... EndTime: ... ])
    How can I transfer the method of cue point using  the mixer?
    I need to have any hint about this because I must use both cue
    point with playrate, at my begginer level of knowledge I know that:
    1) I can't use "playrate" with  "sound(1).play()" method.
    With this method I can use cue point;
    2) I'm trying to know If I can use cue point with   mixer method.
    With this method I can use "playrate" .
    It is also for me important to know if it is possible or
    impossible to solve this problem in director.
    Thanks.

    iPhone 3gs, 4 or 4s?
    With the former two, just drag the videos to the desktop iTunes and sycnhronize to your iPad. They will be synched to the stock Videos.
    With the latter, you can either resize the video to 720p (or less) OR use a third-party app (It's Playing, AVPlayerHD, GoodPlayer being the best choices) to play it back. I'd go with the latter to avoid quality degradation and long-lasting reencodings.

  • How to make two portals share the same UME?

    Hi all,
    Can anybody share some information about how to make two portals share same UME? Is it possible? Thanks.
    B.R.

    Hi Lee,
    Its very much possible for 2 portals to make use of one datasource for UME.
    Lets assume for a scenario sake we are using an LDAP server as the UME for portals environment...so you would simple need to point for the UME's to the LDAP datasource.
    If you have something in particular do post back
    Thanks,
    GLM

Maybe you are looking for

  • A dot on monthly view in Reminders

    Hi. I use Reminders so much, but it would be better if we could see the days that contain reminders with a dot on them in monthly view, just like in Calendar. Is it possible? I think it's not so difficult for Apple to make it... I don't want to use a

  • Help with a 9000f Mark II

    I am runnining Mac Mavericks and I can not get my scanner on.  I get  a message that I neen to turn the scanner on.  I am tech savy, th scanner is on and plugged in.  I have delelted the software and re-installed it.  Anyone have a fix.

  • Won't connect to itunes

    error is "this iphone cannot be used because the required software is not installed.run the itunes installer to remove itunes and reinstall itunes again." this is the 3rd or so try and stillnot working.  After updated phone to iOS6 and itunes to vers

  • Essbase services - esssvr

    Hi , whenever I started a new application in essbase - it is opening a dos window for each database. How to make this to run in background (avoiding a window to open) Thanks

  • Second row repeats when printing

    When I print a spreadsheet the second row of information repeats on each page. How can I stop this?