Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 72043

How to delete space in the Morphx report

$
0
0

Below is my code to display a name in the report.

My issue is the name starts with a space in the front.

Please help

select firstonly busRel
        where busRel.Name Like "Contoso Ax -*" && busRel.Dimension[2]  == salestable::find(custPackingSlipJour.SalesId).Dimension[2];

    strDivider = busRel.Name;
    _list = Global::strSplit(strDivider,"-");
    iterator = new ListIterator(_list);

    while(iterator.more())
    {
        packedList += iterator.value();
        iterator.next();
    }
    if(conPeek(packedList,3))
    {
        Div = conPeek(packedList,2)+'-'+conPeek(packedList,3);
    }
    else
    {
        Div = conPeek(packedList,2);
    }
    return Div;  

}


Viewing all articles
Browse latest Browse all 72043

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>