How do I do validation using SDK.

How do I do validation using SDK.
We have created different warehouses for the client business operations.
For eg:
1. Inspection Stores
2. Rejection Stores
3. Main Stores
In Goods Return & A/P Credit Memo, other than RejectionStores is
selected, we want to generate a warning message.
How do I do this through SDK.
I need the code sample for the following activity:
1. Reading the data available at each row of the current form (Goods
Return/ A/P Credit memo)
2. Validate the data with a paricular warehouse
3. Generate warning message.
I could not find any samples related to this.

There is a method called MessageBox for the Application object. Have a look at
the documentation, everything is there.

Similar Messages

  • How To Select serial Numbers using SDK

    Hi Experts,
    I am trying to add an inventory transfer document which is managed serially using DI PI . I need functionality of auto serial number select for that item. As when we do this from front end the serial number selection window is opened an we choose serial number or select auto method . Same thing i need in my scenario using SDk.
    Thanks
    Amit

    i am afraid that whether ur looking for this. bcoz its a simple for loop
    <script language="JavaScript">
    //count = limit value for u
    for(i=0;i<count;++i){
         alert(i);
    </script>
    or if ur looking for something else, pls mention ur requrment precisely
    aleena

  • How to give dropdownlist validation using javascript

    I have a sharepoint list, In that list i have a dropdown field,in that field i have values <--select-->,ram, raj like this, when user selected the <--select--> value and then click on savs button, it has to show the validation message like user
    need to select the value like that,using javascript or jquery i need to validate that.

    Hi ,
    add the following code in by  editing page.
    <script src="http://code.jquery.com/jquery-1.11.2.min.js" type="text/javascript"></script>
    <script type="text/javascript">
    $(document).ready(function () {
    $("input[value='Save']").click(function(){
    var value = $("select[title='dropdown column name'] option:selected").text();
    if(value!="1"){
    alert(value);
    return false;
    https://social.technet.microsoft.com/Forums/security/en-US/4cd9429a-2261-4446-87d4-188ad10ae6c1/how-to-put-validation-in-sharepoint-list-item-for-dropdown-value-that-user-cannot-jump-from-first-to?forum=sharepointdevelopment
    http://sharepoint-2010-world.blogspot.in/2013/11/validate-dropdownlist-using-jquery.html
    Regards,
    Rajendra Singh
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful
    http://sharepointundefind.wordpress.com/

  • How to invoke interface execution using SDK?

    Is it possible to invoke interface execution directly using ODI SDK? I searched the internet only finding ways to invoke interface scenario.
    Is there any API that can directly execute a specific ODI interface?
    Thanks!

    Not sure but you should really be compiling your interface into a scenario or including it as part of a package for non-development execution purposes

  • How to get values from a table(in jsp) for validation using javascript.

    hi,
    this is praveen,pls tell me the procedure to get values from a table(in jsp) for validation using javascript.
    thank you in advance.

    Yes i did try the same ..
    BEGIN
    select PROD_tYPE into :P185_OFF_CITY from
    magcrm_setup where atype = 'CITY' ;
    :p185_OFF_CITY := 'XXX';
    insert into mtest values ('inside foolter');
    END;
    When i checked the mtest table it shos me the row inserted...
    inside foolter .. Now this means everything did get execute properly
    But still the vallue of off_city is null or emtpy...
    i check the filed and still its empty..
    while mtest had those records..seems like some process is cleaining the values...but cant see such process...
    a bit confused..here..I tried on Load after footer...
    tried chaning the squence number of process ..but still it doesnt help
    some how the session variables gets changed...and it is changed to empty
    Edited by: pauljohny on Jan 3, 2012 2:01 AM
    Edited by: pauljohny on Jan 3, 2012 2:03 AM

  • I can't sign in to iCloud. My Apple ID is valid, but os not an iCloud account. How do I get to use iCloud?

    I can't sign in to iCloud. My Apple ID is valid, but is not valid for iCloud. How do I get to use iCloud?

    You are getting this message because you are trying to create an iCloud account on a PC by signing with your Apple ID.  You can only sign into an existing account on a PC.  You first have to create iCloud account on an iOS device (iPhone, iPad or iPod Touch) running iOS 5 or higher, or on a Mac running OS X Lion (10.7.5) or higher.  After creating your account on one of these devices you will then be able to sign into the account using this ID on your PC.

  • How to Create AP Invoice from PO using SDK

    Hi,
    I want to create an A/P Invoice thru SDK for which already the Purchase Order has been entered thru the front-end. How to do it? Using SBO objects I am loading the particular PO. But after that how to transfer everything in the PO to AP Invoice.
    Thanx in advance.
    with regards,
    Ram.

    Hi Ram,
    Herewith an example:
            oInvoice = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseInvoices)
            oPOrder.GetByKey(sOrder)
            oInvoice.CardCode = oPOrder.CardCode
            oInvoice.CardName = oPOrder.CardName
            oInvoice.Address = oPOrder.Address
            oInvoice.Address2 = oPOrder.Address2
            oInvoice.AgentCode = oPOrder.AgentCode
            oInvoice.Comments = oPOrder.Comments
            oInvoice.ContactPersonCode = oPOrder.ContactPersonCode
            oInvoice.DocDate = oPOrder.DocDate
            oInvoice.DocDueDate = oPOrder.DocDate
            oInvoice.FederalTaxID = oPOrder.FederalTaxID
            oInvoice.JournalMemo = "Based on Sales Order " & sOrder
            oInvoice.NumAtCard = oPOrder.NumAtCard
            oInvoice.Project = oPOrder.Project
            oInvoice.Reference1 = oPOrder.Reference1
            oInvoice.Reference2 = oPOrder.Reference2
            oInvoice.SalesPersonCode = oPOrder.SalesPersonCode
            oInvoice.SummeryType = oPOrder.SummeryType
            For i = 0 To oPOrder.Lines.Count - 1
                oPOrder.Lines.SetCurrentLine(i)
                If i > 0 Then
                    oInvoice.Lines.Add()
                End If
                oInvoice.Lines.BaseEntry = oPOrder.DocEntry
                oInvoice.Lines.BaseLine = oPOrder.Lines.LineNum
                oInvoice.Lines.BaseType = 22
            Next
            If oInvoice.Add() <> 0 Then
                oApplication.MessageBox("Error: " & oCompany.GetLastErrorDescription)
            End If
            System.Runtime.InteropServices.Marshal.ReleaseComObject(oInvoice)
    Hope it helps,
    Adele

  • How to show screen design in .srf (from Screen Painter) using SDK?

    How to show screen design in .srf (from Screen Painter) using SDK?

    You need to use the LoadBatchActions method of the Application object to load .SRF files.
    John.

  • How use SDK to insert text in indesign using c++

    Hello All
    I want to  use Indesign CS5.5 SDK  in my  c++ project first to create Indesign Document then insert text in textframe.
    How include SDK in my project ?
    Is it right method to create indesign Application using SDK.
    #include "IApplication.h"
    #include "ISession.h"
    # include "IDocumentCommands.h"
    virtual IApplication *  QueryApplication()=0 ;
    ISession *  GetExecutionContextSession();
    IApplication application(GetExecutionContextSession()->QueryApplication());
    It required so many .h file, first I copy .h file from SDK and put in Project directory but it give some error after including these .h file in project.
    There are so many directory(source,build,docs, etc.) in SDK.How include and use this SDK in my project to create Indesign Document.
    How include so many  .h file in my project ?
    I have already included SDK path in VisualStudio2008 ->Tools->Option->ProjectSolutions->vc++Directories
    Thanks.

    Hi Jongware,
    This is not correct in C# you have type cast all the object to another Object and then only we can access it in required format
    for example
    if want to get font in active Document
    InDesign.Application myInDesign=  (InDesign.Application) COMCreateObject("InDesign.Application");
    InDesign myDocument = (InDesign.Document)myInDesign.ActiveDocument;
    InDesign.ParagraphStyles pStyles = (InDesign.ParagraphStyle)myDocument.ParagraphStyles
    InDesign.ParagraphStyle pSteyls = (InDesign.ParagraphStyle)myDocument.ParagraphStyle
    for(int i =0;i<pStyles.Count;i++)
         pStyle = (InDesign.ParagraphStyle)myDocument.ParagraphStyles[i];
    public static object COMCreateObject (string sProgID)
        // We get the type using just the ProgID
        Type oType = Type.GetTypeFromProgID (sProgID);
        if (oType != null)
            return Activator.CreateInstance( oType);
        return null;
    like above content
    for selection content u have to type cast selection object.
    InDesign.Selection = (InDesign.Selection).myDocument.Selection;
    Console.Writeline(InDesign.Selection.Contents);
    but it showing error....
    like this you have to type cast all things in C# and you cannot simply get selection contents like app.selection[0].contents
    pls help me
    Thank you for your reply....
    R. Thangaraj

  • How to use sdk in standard B1?

    Hi,All
       How to use sdk in standard B1? I want to use "sum in words" be thai languag which in standard no have so i must create it use sdk but i don't know that have solution using sdk in standard. example, Go menu Sales-A/R>Delivery and input data i want to convert price in Total to text which i use sdk for convert it But i don't khow that when i will call sdk? Can do in standard?

    Hi Virasak,
    You need to develop a (eventually small) application (= Add-On) which uses the SDK to do what you need it to do + is packaged and installed like e.g. any SAP Add-On.
    It should then just watch out for the "right" events which are propagated from the SAP Business One application through UI API (an interface in the SDK) to "interested" Add-On(s)...
    HTH,
    Frank

  • How to skip validation using serverListener

    Hi,
    I am using Jdev 11.1.2.3.0
    My requirement was to called some action using the keyboard key.
    I tried with Access key first but its behaving differently in different browser.
    Crome: allowing action on access key press.
    IE : setting the focus on commandLink.
    Note : I have defined accessKey for RichCommandLink.
    Then i used the different approach which is as follows:
    1- Register the keyBoard handler to document. on beforePhase Event.
    2- Added the js file as follows :
    Javascript file:
    var keyRegistry = new Array();
    keyRegistry[0] = "alt 1";
    keyRegistry[1] = "alt 2";
    keyRegistry[2] = "alt 3";
    keyRegistry[3] = "alt 4";
    keyRegistry[4] = "alt 5";
    keyRegistry[5] = "alt 6";
    keyRegistry[6] = "alt 7";
    keyRegistry[7] = "alt 8";
    keyRegistry[8] = "alt 9";
    keyRegistry[9] = "alt 0";
    function registerKeyBoardHandler(serverListener, afdocument) {
      _serverListener = serverListener;
      var document = AdfPage.PAGE.findComponentByAbsoluteId(afdocument);
      _document = document;
      for (var i = keyRegistry.length - 1; i >= 0; i--) {
        var keyStroke = AdfKeyStroke.getKeyStrokeFromMarshalledString(keyRegistry);
    AdfRichUIPeer.registerKeyStroke(document, keyStroke, callBack);
    function callBack(keyCode) {
    var activeComponentClientId = AdfPage.PAGE.getActiveComponentId();
    // Send the marshalled key code to the server listener for the developer
    // To handle the function key in a managed bean method
    var marshalledKeyCode = keyCode.toMarshalledString();
    AdfCustomEvent.queue(_document,
    _serverListener, {keycode:marshalledKeyCode,
        activeComponentClientId:activeComponentClientId}, true);
    // indicate to the client that the key was handled and that there
    // is no need to pass the event to the browser to handle it
    return true;
    *jspx page:*
            <f:view beforePhase="#{KeyboardHandler.registerKeyboardMapping}">
    <f:loadBundle basename="properties/Labels" var="labels"/>
    <af:document id="adfDocument">
    <af:resource type="javascript" source="/js/keyboard.js"/>
    <af:serverListener type="keyboardToServerNotify" method="#{KeyboardHandler.handleKeyboardEvent}" />
    </af:document>
    </f:view>
    *Java Code :*
            public class KeyboardHandler {
    public KeyboardHandler() {
    super();
    public void registerKeyboardMapping(PhaseEvent phaseEvent) {
    if (phaseEvent.getPhaseId() == PhaseId.RENDER_RESPONSE) {
    FacesContext facesContext = FacesContext.getCurrentInstance();
    ExtendedRenderKitService extRenderKitService =
    Service.getRenderKitService(facesContext,
    ExtendedRenderKitService.class);
    List childComponents = facesContext.getViewRoot().getChildren();
    //First child component in an ADF Faces page - and the only child - is af:document
    //Thus no need to parse the child components and check for their component family
    //type
    String id =
    ((UIComponent)childComponents.get(0)).getClientId(facesContext);
    StringBuffer script = new StringBuffer();
    script.append("window.registerKeyBoardHandler('keyboardToServerNotify','" +
    id + "')");
    extRenderKitService.addScript(facesContext, script.toString());
    public void handleKeyboardEvent(ClientEvent clientEvent) {
    String keyCode = (String)clientEvent.getParameters().get("keycode");
    System.out.println("KeyCode ::"+keyCode);
    //Here on basis of numeric key 0-9 i will decide different action
    This is working fine and launching the first action successfully.
    *Now problem is that when i invoked second action its asking me enter data for required fields.*
    If i was invoking serverlistener from button than I can control immediate property of command button. but here serverListener is getting called form document. How can I avoid validation here.
    Can anybody please me?
    Thanks a lot in advance.
    -Amit Sharma
    http://amit-adf-work.blogspot.com/                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    If you want to skip all validation until time of commit you can do as described here
    http://andrejusb.blogspot.com/2012/12/skip-validation-for-adf-required-tabs.html

  • (Urgent)help: how to use sdk add a gif image into a pdf document

    I had use sdk plus-in add a new button of mine,if I click the button,a gif image will be inserted into the current page of pdf document
    My questions:
    one : When I clicked the button,there was a warnning box said:the image has not enough data.I don't known why?
    two : How can I be sure the position of the image which I inserted? and how to change it's position?
    three:  how to use sdk get the content of the document?

    hi Leonard:
    I do it like you said, but
    Why my image can not display in the pdf.
    code is:
    //====================================================================
    const ASInt32 theImageByteSize = IMG_WIDTH * IMG_HEIGHT;
    char* buff = new char[theImageByteSize];
    PDEImage volatile pdeImage = NULL;
    PDEImageAttrs pdeImageAttrs;
    PDEColorSpace pdeColorSpace;
    ASFixedMatrix imageMatrix;
    memset(&pdeImageAttrs, 0, sizeof(PDEImageAttrs));
    int hdl = _open(ImagePath, _O_RDONLY | _O_BINARY, _S_IWRITE | _S_IREAD);
    if (hdl == -1)
         AVAlertNote("[%s] create fail !!!!") ;
    if (_read(hdl, buff, theImageByteSize) == -1)
         AVAlertNote("read image fail!") ;
    pdeImageAttrs.width = IMG_WIDTH;
    pdeImageAttrs.height = IMG_HEIGHT;
    pdeImageAttrs.intent = ASAtomNull;
    pdeImageAttrs.bitsPerComponent = 8;
    pdeImageAttrs.flags = kPDEImageExternal | kPDEImageIsIndexed;
    pdeImageAttrs.decode[0] = fixedZero;
    pdeImageAttrs.decode[1] = fixedOne;
    pdeImageAttrs.decode[2] = fixedZero;
    pdeImageAttrs.decode[3] = fixedOne;
    pdeImageAttrs.decode[4] = fixedZero;
    pdeImageAttrs.decode[5] = fixedOne;
    ASFixedRect theMediaBox;
    PDPageGetMediaBox( AVPageViewGetPage(pageView), &theMediaBox );
    ASFixed theFixedWidth = (theMediaBox.right - theMediaBox.left);
    ASFixed theFixedHeight = (theMediaBox.top - theMediaBox.bottom);
    imageMatrix.a = ASInt16ToFixed(theFixedWidth);
    imageMatrix.d = ASInt16ToFixed(theFixedHeight);
    imageMatrix.b = imageMatrix.c = fixedZero;
    imageMatrix.h = 0;
    imageMatrix.v = 0;
    const Int32 cPaletteColors = 256;
    PDEIndexedColorData theIndexedData;
    theIndexedData.size = sizeof(theIndexedData);
    theIndexedData.baseCs = PDEColorSpaceCreateFromName(ASAtomFromString( "DeviceRGB"));
    theIndexedData.hival = cPaletteColors - 1;
    unsigned char data[3] = {255, 0, 0};
    theIndexedData.lookup = (char *)data;
    theIndexedData.lookupLen = cPaletteColors * 3;
    PDEColorSpaceStruct theColorData;
    theColorData.indexed = &theIndexedData;
    pdeColorSpace = PDEColorSpaceCreate(ASAtomFromString( "Indexed" ), &theColorData );
    pdeImage = PDEImageCreate(&pdeImageAttrs, sizeof(pdeImageAttrs), &imageMatrix,
                                                0, pdeColorSpace, NULL, NULL, NULL, (unsigned char*)buff, theImageByteSize);
    I want die, I had done this for so many days, My GIF doesn't insert into pdf,
    unsigned char data[3] = {255, 0, 0};
    theIndexedData.lookup = (char *)data;  "
    whether the data set wrong?
    I confused what I do next   

  • How to edit 'uses-sdk' element in manifest settings

    Hi,
    I created an Android App that works perfectly on my HTC Inspire.  It's just three buttons that link to web pages, a browser loads, very basic. I got it to install on 3 android devices, but it doesn't install on a Galaxy Tab and another unknown android device.  Those devices get a Parse Error.
    So I searched around and I found this possible solution from a few days ago:
    http://www.droidforums.net/forum/rescue-squad-help/148308-error-while-installing-android-a pplication-problem-parsing-package.html
    After hours of search, i found a little answer, actually it has every thing to do with the manifest, i changed the minSdkVersion="8" to minSdkVersion="7", and it worek on the first samsung mobile that i found, i have to check with other mobiles, but i think that is the solution!
    I decided that I better figure out how to edit the Manifest, only to find that:
    I found this bit of unsettling information in the Community Help files:
    uses-sdk elementI see there is a checkbox to 'Manually manage premissions and manifest additions in the application descriptor file.' But i'm not sure if I can just add the line
    You cannot include a uses-sdk element.
    <uses-sdk android:minSdkVersion="7" />
    Any work arounds?
    Thanks in advance!
    Tek

    Hi Pooja
    You can find the text in <b>ResourceEditControl**.properties</b> file, which is available under   <i>com.sap.km.cm.ui\lib\km.appl.ui.edit_api\com\sapportals\wcm\control\edit</i>..
    The text is represented by the key <b>txtUploadControl</b>..
    Regards,
    Sandip

  • I Have iPad4 and using with Aricel Prepaid 3G SIM, How to check my VAlidity period and balance amount through iPad?. pls help me

    I Have iPad4 and using with Aricel Prepaid 3G SIM, How to check my VAlidity period and balance amount through iPad?. pls help me, M.Kumar, Chennai,
    <Email Edited By Host>

    There are 2 concepts attached to a bank balance. The balance as per your books of accounts and another is the balance maintained with the bank. I believe i need not explain these 2 concepts. These 2 balances can be obtained from Oracle system provided some of prerequsities are met with.
    Balance as per your books - This is nothing but the GL balance available. In order to obtain balances for each bank accounts, it is advised that each bank account should have a separate account code combination. This is achieved generally by having a separate natural account for each bank. The code combination is attached to the cahs account for each bank. By maintaining separate account code combination, the balance in each code combination can be obtained from GL (provided transactions are accounted and posted in GL). These balances represent the balance for each bank according to your books of accounts. You can create an FSG for this purpose and provide the same to the customer, so that they can run the same whenevr they want.
    Balance as per bank - This balance is maintained by oracle in 2 ways - either the bank balance can be manually entered for each bank account for each date (quite cumbersome). Else, while loading the bank statement, the bank balances are also loaded. There are various types of bank balances stored - value dated balance, available balance, float balance etc. Depending on the balances provided by bank along with the bank statement, the bank balance can be recorded in oracle system. After the bank statement is uploaded and balances stored, standard cash management reports are available to query for the bank account balances. In order to view daily movement, the bank statement should be loaded on daily basis.
    Hope this helps.
    Vinit

  • How to use SDK (IAC, Javascript ...) to open a policy protected file

    Hi,
    How can I use SDK (no matter Javascript or VB.NET or C#) to open a Rights Management protected file? I found that there is no method for me to pass the username and password.
    Thanks,
    sunny

    That is correct - there is no way to pass the username/password to the opening of the file. This is done explicitly to avoid potential security holes.
    Leonard

Maybe you are looking for

  • Freeze-up

    iMac OSX 10.6.8. Getting freeze-ups, beach ball, nothing will work with mouse except pointer will move, but nothing happens clicking on an action. Happens usually with Safari. For instance, a link is clicked on, it starts making connection, I realize

  • What is the best way to cleanup my hard drive?

    I have a 2013 Pro with the 256gig SSD. I have installed and uninstalled and moved files everywhere since I got the notebook. I am now starting to focus on my music production and was cleaning up my files and organizing folders for everything. However

  • Question:  Opening images in PS6

    I cannot see my image after opening in PS6.  The tab shows the file name and I can see the image in the tile when I go to "File-Open".  Any ideas? Thanks for any input.

  • RMI and Netbeans

    hello, i have develop a simple application using RMI. It was running perfectly from command prompt. Then i imported the project into netbeans 6.1. Then when i run it the server looks running normally but when a client try to connect to the server it

  • WINDOWS 7 , WITH HP PAVILION DV6 , PLAYING MUSIC OR MOVIES , CAN'T HEAR ANY SOUND FROM SPEAKERS

    when i played music or movies cant hear any voice from my speaker but it's done with headphones NOTS   am using windows 7 with hp pavilion dv6