Adding Custom Dictionary using Javascript

Hi All,
We have created a javascript to spellcheck the PDF using the inbuilt dictionary.
Now we got a request to add a custom Medical dictionary to Adobe Acrobat.
Is that possible to add a custom dictionary to Adobe Acrobat using Javascript.
I have gone through the "Javascript for Adobe API Reference.pdf".
But there is no reference for adding a full set of dictionary to it.
spell.customDictionaryCreate("javascript", "en", true);
function GetJSTerms(bm, nLevel) { var newWord = bm.name.match(re);
var ckWord = spell.checkWord( newWord[0] );
if ( ckWord != null ) { var cWord = spell.addWord( newWord[0], "JavaScript");
if ( cWord ) console.println( newWord[0] );
} if (bm.children != null) for (var i = 0; i < bm.children.length; i++) GetJSTerms(bm.children[i], nLevel + 1);
} console.println("\nAdding New words to the \"JavaScript\" " + "dictionary:");
var re = /^\w+/; GetJSTerms(this.bookmarkRoot, 0);
Would this task is achievable through javascript, please advice.
Shaji

Thank for the response. We have a medical dictionary with us. Which contains all the words, how do I add the full dictionary with the addWord functionality. Is there is any option to load the dictionary file through scripting. Shaji

Similar Messages

  • Error while adding custom fields using EEWB.

    Hi
    While trying to add custom fields using the transaction EEWB i got an error message
    'No Logsys040 transport request exists for system workbench.Please let me know why it happens.
    Thanks
    sureshpaul

    closing this unresolved

  • SharePoint 2013 Media Player using UNC path directly without using a Website in IIS (either out of the box or custom player using javascript only)

    Hi,
    There isn't much info on this and I am hoping its possible.
    I have come across the following article which explains how we can setup SharePoint 2013 Asset Library using video links using a website in IIS that is mapped to a UNC path.
    http://stevemannspath.blogspot.com.au/2012/12/sharepoint-2013-videos-in-sharepoint.html
    This is great. However we have an issue where I work and I need somehow to get SharePoint mediaplayer to point to a video directly using the UNC path like :- \\WINSP13\TempVideos\NTV_Carr_Indig.wmv without the use of a website in IIS.
    I understand that we won't be able to stream the video then thats ok.
    when trying to add a video link to an asset library using the UNC path, we get the following error: We don't support
    playing a video of that format from a file share.
    Is there a way or a workaround to do this? we are using only javascript to do this (AngularJS or any custom Javascript player such as MediaElement)
    Thanks
    Kind Regards,
    Will

    From a SharePoint architecture perspective, this is a BAD design, since you are rerouting the communications (from the client to the UNC) away from and outside of SharePoint... as a result, SP cannot provide any level of guarantee about the ability for videos
    to play on the client machine.
    Secondarily, I'm not sure that the browser will let you pull resources from such different locations (doing so has been the root of several type of attacks, such as "Cross Site Scripting").
    That said (and assuming the browser lets you), you can always use JS to handle creating the video player HTML and setting the UNC location... instead of using a site asset library to store the links, just create a list for the videos
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • Runtime error in CRM_DATAEXCHG_BADI after adding customer fields using EEWB

    Hi gurus,
    I am getting short dump in ZCL_IM_EEW_DATAEXCHANGE06~CRM_DATAEXCH_AFTER_BAPI_FILL.
    I've added 3 custom fields in ORDERADM_I structure using EEWB. ( created in ECC also ).
    Now when i create a sales order, its not flowing to ECC as i am getting the below error.
    UC_OBJECTS_NOT_CONVERTIBLE
    Error occured while executing below statement
    MOVE <ls_bape> TO ls_bapiparex_wrk+lc_offset.
    <ls_bape> is having all the custom fields i've created using EEWB.
    Error short text i am getting in st22: ' Data objects in Unicode programs cannot be converted.'
    Kindly help.
    regards,
    Arun N K.

    Hi Robert,
    Thanks for the reply.
    I was not able to use move-corresponding as there was no matching fields in the destination structure.
    Anyway we found out the issue. One of the custom fields generated using EEWB, used INT4 data element. I deleted the field and created it again using character (NUMC) data element, and it worked fine.
    I still don't know the exact problem of using integer data element. Kindly share if anyone find the reason.
    Thanks,
    Arun N K.

  • Unable to apply color formatting to document library custom view using javascript

    Hello,
    I have applied color formatting to some values in Document library at "Allitems.aspx" page.
    Created one view where record of library displaying as per sort rule and trying to apply the color formatting on that view, but its not getting apply.
    also tried to insert that list as web part in one page with the same view(created by me) and tried applying color..but not working.
    I used below script for color formatting, included in script editor web part:
    <script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.10.0/jquery.min.js"></script>
    <script type="text/javascript">
    $(document).ready(function()
    $Text = $("td.ms-cellstyle.ms-vb2:contains('Very limited risk - acceptable A')");
    $Text.css("background-color", "#7FFF00");
    $Text = $("td.ms-cellstyle.ms-vb2:contains('Measures Required (in 6 months) - M')");
    $Text.css("background-color", "#D2691E");
    $Text = $("td.ms-cellstyle.ms-vb2:contains('Immediate measures required - I')");
    $Text.css("background-color", "#6495ED");
    $Text = $("td.ms-cellstyle.ms-vb2:contains(Stop work until measures are taken - S)");
    $Text.css("background-color", "#DC143C");
    </script>
    Could please suggest a way out.
    Thanking you in advance.
    Regards,
    Jayashri

    Hi Jayashri,
    Follow the steps to debug your JS code, preferable in IE browser
    Press F12 to open your developer tool
    Select Script tab
    Search for your code, set debugger point by clicking on the left extreme position on line numbers
    Click on Start debugging at top, if its not there in your browser just refresh the page, it will hit the debug point.
    Hope it will help you in debugging your code, if you need any further details about debugging this, mail me @
    [email protected]
    Thanks
    Shakir

  • Adding custom webpart throwing Javascript error -The collection has not been initialized.

    Hi,
    I created a Javascript CSOM visual webpart and added to page. In the IE developer tools console, I am getting an error as below:
    "SCRIPT5022: The collection has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested.
    SP.Runtime.js, line 2 character 35853".
    My code is as below:
    <script type="text/javascript" src="../../_layouts/15/MicrosoftAjax.js"></script>
    <script type="text/javascript" src="../../_layouts/15/SP.Runtime.js"></script>
    <script type="text/javascript" src="../_layouts/15/sp.js"></script>
    <script type="text/javascript" src="../_layouts/15/sp.ui.controls.js"></script>
    <script type="text/javascript" src="/_layouts/15/test/Scripts/jquery-1.8.2.js"></script>
    <script type="text/javascript" src="/_layouts/15/test/Scripts/Rotator.js"></script>
    <script type="text/javascript" src="/_layouts/15/test/Scripts/bjqs-1.3.js"></script>
    <link rel="stylesheet" type="text/css" href="/_layouts/15/test/CSS/bjqs.css" />
    <SharePoint:FormDigest ID="FormDigestRotator" runat="server">
    </SharePoint:FormDigest>
    <div id="banner-fade">
    <ul id="carousel" class="bjqs">
    </ul>
    </div>
    // In Rotator.js
    $(document).ready(function () {
    SP.SOD.executeFunc('sp.js', 'SP.ClientContext', loadConfigData);
    function loadConfigData() {
    var clientcontext = new SP.ClientContext.get_current();
    var oweb = clientcontext.get_site().get_rootWeb();
    var olist = oweb.get_lists().getByTitle("LibName");
    var configquery = SP.CamlQuery.createAllItemsQuery();
    Allpictures = olist.getItems(configquery);
    clientcontext.load(Allpictures, 'Include(Title,ImgSubURL)');
    clientcontext.executeQueryAsync(Function.createDelegate(this, this.Configsuccess), Function.createDelegate(this, this.Configfailed));
    How to fix this javascript error? Due to this, the "Check-in" option is not working.
    Update: i believe the error is with "executeQueryAsync". How to fix this?
    Thanks

    Hi,
    I suggest you create a simple demo first, once it works, then add other customization into your project gradually. It will be easier to composite the correct code.
    Please apply the code below in your project for a try:
    <script type="text/javascript" src="http://code.jquery.com/jquery-1.10.2.min.js"></script>
    <script type="text/javascript">
    _spBodyOnLoadFunctionNames.push("callCSOM");
    var clientContext;
    var website;
    var str="";
    // Make sure the SharePoint script file 'sp.js' is loaded before your
    // code runs.
    function callCSOM()
    //alert("call");
    $("#Button1").click(function()
    ExecuteOrDelayUntilScriptLoaded(sharePointReady, "sp.js");
    // Create an instance of the current context.
    function sharePointReady() {
    clientContext = SP.ClientContext.get_current();
    website = clientContext.get_web();
    clientContext.load(website);
    clientContext.executeQueryAsync(onRequestSucceeded, onRequestFailed);
    function onRequestSucceeded() {
    str="website.get_title(): "+website.get_title();
    alert(str);
    function onRequestFailed(sender, args) {
    alert('Error: ' + args.get_message());
    </script>
    <input id="Button1" type="button" value="Run Code"/>
    Thanks
    Patrick Liang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Patrick Liang
    TechNet Community Support

  • How do I make a custom shape using Javascript?

    I would like to create a trapezoid shape and be able to color it in, just like I'm able to do with the PathItems (e.g. rectangle, ellipse). I would like to be able to do this in Javascript.
    I was thinking it might have to do with PathPoints, but Adobe's Scripting Reference Guide does not make it clear.
    If anyone could give me some quick sample code on how to do this, I'd be much appreciative. Or just a description would be great.
    THANK YOU VERY MUCH

    Something like this?
    // TrapezPathCreate.jsx
    // http://forums.adobe.com/thread/1307731
    // regards pixxxelschubser
    var aDoc = app.activeDocument;
    var aPath = aDoc.pathItems.add();
    aPath.name = "Trapez";
    // create pairs of coordinates for every anchor point
    aPath.setEntirePath(Array([0,0],[50,100],[200,100],[400,0],[0,0]));
    aPath.close = true;
    aPath.filled= true;
    aPath.stroked= false;
    var itemColor = new CMYKColor();
    itemColor.cyan = 0;
    itemColor.magenta = 100;
    itemColor.yellow = 100;
    itemColor.black = 0;
    aPath.fillColor = itemColor;
    alert("done");
    or this?
    var aDoc = app.activeDocument;
    var Rect = aDoc.pathItems.rectangle(0, 0, 400, 400, false);
    Rect.stroked = true;
    Rect.filled = false;
    alert("Rectangle created");
    Have fun

  • Custom command to strip all except specified tags / parameters using javascript or regex?

    Hi all
    I'm trying to figure out how to create a custom command that will allow me to strip all tags from a page except for those I specify, and will only allow the parameters that I specify for the remaining tags. It seems to me that it should be achievable either with a custom command using javascript, or by simply recording a command and doing a search and replace with regex.
    I'm not familiar with javascript, so I've been trying the latter route, but I'm open to help with either method (or for that matter, any other method that will allow me to perform this with just a couple of mouse clicks, and no need to initiate a long sequence of commands manually every time).
    The tags I'd like to retain are:
    p
    br
    ul
    ol
    li
    a
    table
    tr
    td
    Any tags other than the above would need to be stripped. For the tags above, I'd obviously want to retain opening and closing tags, and I'd also want to allow href and target parameters for the a tag. I would want to strip all other parameters from these tags, though.
    I got partway into this, in that I managed to make regex that finds all the tags apart from the above, but hadn't yet gotten to trying to strip the unwanted parameters:
    </?\w+(?<!p|br|ul|ol|li|a|table|tr|td)((\s+\w+(\s*=\s*(?:".*?"|'.*?'|[^'">\s]+))?)+\s*|\s* )/?>
    This validates on the online version of RegExr (http://gskinner.com/RegExr/), and finds all tags apart from the above correctly as far as I can see. However, it doesn't work in Dreamweaver's Find box with Use Regular Expression checked, reporting "Invalid Quantifier".
    ...and this is as far as I've gotten. If anybody can offer help, it'd be much appreciated!
    Thanks in advance to you all...
    Mike

    Thanks, Barry. Paste Special is what I'm currently doing, but as you can imagine, it's mighty tedious cleaning up the formatting by hand on every single document, when the formatting I need is all there to start with in a regular paste -- just along with a bunch of extraneous formatting. With as many as a dozen or more documents to do each day, some with lengthy, nested lists and many bits of formatting that I need to keep, it's a bit soul destroying to have to do it manually.
    It must be possible with Javascript, but my problem is I'm not a Javascript coder and would need to learn from scratch. It's likely possible with regex too, but my issue there is that Dreamweaver's version of Regex seems to be cut down from the version all of the regex validators I could find online use. I came fairly close to having something workable done entirely with regex when I last looked at this a couple of months back, and it validated just fine (only remaining quirk was to do with some attributes I didn't need, but that was probably solvable.) Unfortunately, although it validated in multiple online tools, Dreamweaver refused to accept it as valid.
    I've since found a (very old) Dreamweaver Command extension that partially works, incidentally, and could perhaps be extended to do what I need -- but again, it would require me to understand code I simply don't, as yet.
    http://www.andrewwooldridge.com/dreamweaver/commands.html
    The Remove Tags Except command there mostly works, but it seems to have an issue with nested tags that throws up an error message, and it also doesn't have a way for me to specify which attributes to keep, just which tags. Other than that it's close to ideal though -- the only other way it could be improved would be if I could kludge it to simply run straight away with a predetermined exclusions file, rather than making me manually select and load the exclusions every time.

  • While adding custom field in urgent change-Create new field button in AET is not coming

    Dear All,
    we have requirement to add some custom fields in urgent change document. while adding custom fields using AET, create new field button is not coming.
    Thanks in advance. points will be awarded.
    Rahul

    Hi Jignesh,
    Thanks for your valueble inputs, it really helped me to understand the process.
    I checked in Web UI configuration for urgent change document as you mentioned but still that button is not coming.
    In transaction BSP_WD_CMPWB, i have created enh. set: Z_ENHANCEMENT_SET.
    Can you tell what to selelect in application and page popup which comes after selecting Enhance component button. Actually i tried but i am not able to add new record in conf.
    Thanks in advance.

  • Using Javascript to disable field "Planned"

    Hi every one,
    I want to use javascript to disable "Planned" checkbox in Project Server 2013 because we want that user can not see this planned time and be confused with the Project Server's automatic changes for the planned time.
    <script type="text/javascript">
    document.getElementById("Ribbon.ContextualTabs.MyWork.Home.ShowHide.PlannedWork-Medium-checkbox").checked = false;
    </script>
    I found this code in this subject :
    http://social.technet.microsoft.com/Forums/projectserver/en-US/0beeed2d-bebc-4217-981a-41b1252c7cc2/disable-field-planned-in-timesheet?forum=projectserver2010general
    But I don't understand where to use it. If i create a custom webpart with this code, I've got a null exception when the page is loading.
    So, can you help me ? Maybe I need to use it in an other file ?

    Hi Patmol6,
    Basically, to add javascript to a PDP (or timesheet page for instance), 
    edit the page
    add the content editor webpart
    set it as hidden
    copy paste the code
    Note that you can also point from the content editor webpart to a js file embedding the javascript code
    Here are few examples (some are in PS2007, but the process is similar): 
    http://epmsource.com/tag/content-editor-webpart/
    http://badalratra.wordpress.com/2013/05/04/how-to-disable-pdp-custom-fields-using-javascript/
    http://badalratra.wordpress.com/2013/02/03/javascript-code-to-add-custom-descriptions-underneath-project-field-on-the-pdp-page/
    http://epmcorner.wordpress.com/tag/content-editor-web-part/
    Hope this helps.
    Guillaume Rouyre - MBA, MCP, MCTS

  • Cannot Enable/Use custom dictionary in iOS4

    Hi,
    I cant seem to enable the custom dictionary. I've tried to solutions I've found online, adding an international keyboard, and the other resetting the current dictionary to it's default. no luck.
    if anyone can assist, that would be great.
    thanks

    I understand the usage of User Dictionary as envisioned by Apple a little better after thinking for a while.
    This is only a way of including words in a dictionary so that spell-check will no longer trip over them or auto-correct them. I believe that even with the Chinese - Pinyin fudge, this probably works, in the same way that including a word as a name of a contact also works for this.
    It is not conceived to function as (for example) Autotext on Blackberry, in which a given word or phrase is substituted for another phrase (for example, "ty" and a space converts to "thank you").
    Except that I was really hoping for that second function, which would make iPhone use much more convenient.
    Fingers crossed for iOS 5.0, and hoping that Apple catches up to 2005.

  • How to create new subsite while adding new item to the list by using javascript?

    hi,
    I hav a task ie, when I add item to the list then subsite will create with that list item title and description . So By using javascript, I have to create subsite while adding new item to the list.
    Help me to solve this.
    Thank you, 

    Is your item getting added through Javascript client object model ? If yes, you can write in the success delegate of your list creation method the logic to create the subsite.
    function CreateListItem()
    var clientContext = new SP.ClientContext.get_current();
    var oList = clientContext.get_web().get_lists().getByTitle('List Name');
    var itemCreateInfo = new SP.ListItemCreationInformation();
    this.oListItem = oList.addItem(itemCreateInfo);
    oListItem.set_item('Title', 'My New Item!');
    oListItem.set_item('Body', 'Hello World!');
    oListItem.update();
    clientContext.load(oListItem);
    clientContext.executeQueryAsync(Function.createDelegate(this, this.CreateListItemOnSuccess), Function.createDelegate(this, this.onQueryFailed));
    function CreateListItemOnSuccess() {
    var subsiteTitle = oListItem.get_item('Title');
    //Logic to create a subsite
    function onQueryFailed(sender, args) {
    I have added a sample flow for the above scenario. Have a look at the following lnk for how you can craete a subsite using ecmascript.
    http://ravisoftltd.wordpress.com/2013/03/06/sharepoint-2010-create-site-with-ecma-script-with/
    Geetanjali Arora | My blogs |

  • Added custom screen in PO using BADI ME_GUI_PO_CUST and ME_PROCESS_PO_CUST

    Hi All,
    I have added custom screen with two z fields at item level using BADI ME_GUI_PO_CUST and ME_PROCESS_PO_CUST i can see my screen in tcodes ME21N , ME22N , ME23N but I am not able to save data.
    and also screen is coming in change mode even in ME23N .
    thanks.

    Hi,
    I have added two xfields at item level.
    This is the code i have added in zimplementation ZME_GUI_PO_CUST .
    IN Zimplementation ME_PROCESS_PO_CUST I have added code only in method FIELDSELECTION_ITEM . after doing this I can see only screens in ME21N, ME22N, ME23N but when enter data in zfields and trying to save it is giving me message no data has changed.
    method IF_EX_ME_GUI_PO_CUST~SUBSCRIBE.
    DATA: ls_subscriber LIKE LINE OF re_subscribers.
    we want to add a customer subscreen on the item detail tab
      CHECK im_application = 'PO'.
      CHECK im_element     = 'ITEM'.
    each line in re_subscribers generates a subscreen. We add one subscreen in this example
      CLEAR re_subscribers[].
    the name is a unique identifier for the subscreen and defined in this class definition
      ls_subscriber-name = subscreen1.
    the dynpro number to use
      ls_subscriber-dynpro = '0001'.
    the program where the dynpro can be found
      ls_subscriber-program = 'SAPLYMEPOBADIEX'.
    each subscreen needs his own DDIC-Structure
      ls_subscriber-struct_name = 'MEPO_BADI_STRUCT'.
    a label can be defined
      ls_subscriber-label = text-001.
    the position within the tabstrib can be defined
      ls_subscriber-position = 4.
    the height of the screen can be defined here. Currently we suport two screen sizes:
    value <= 7 a sevel line subscreen
    value > 7  a 16 line subscreen
      ls_subscriber-height = 7.
      APPEND ls_subscriber TO re_subscribers.
      ENDIF.
    method IF_EX_ME_GUI_PO_CUST~TRANSPORT_FROM_MODEL.
      DATA: l_item       TYPE REF TO if_purchase_order_item_mm,
            ls_mepoitem  TYPE mepoitem,
            ls_customer  TYPE mepo_badi_exampl.
    system asks to transport data from the business logic into the view
      CASE im_name.
        WHEN subscreen1.
    is it an item? im_model can be header or item.
          mmpur_dynamic_cast l_item im_model.
          CHECK NOT l_item IS INITIAL.
    transport standard fields
          ls_mepoitem = l_item->get_data( ).
    transport customer fields
          CALL FUNCTION 'YMEPOBADIEX_GET_DATA'
            EXPORTING
              im_ebeln = ls_mepoitem-ebeln
              im_ebelp = ls_mepoitem-ebelp
            IMPORTING
              ex_data  = ls_customer.
    store info for later use
          MOVE-CORRESPONDING ls_mepoitem TO dynp_data_pbo.
          MOVE ls_customer-badi_bsgru TO dynp_data_pbo-badi_bsgru.
          MOVE ls_customer-badi_afnam TO dynp_data_pbo-badi_afnam.
        WHEN OTHERS.
      ENDCASE.
    endif.
    method IF_EX_ME_GUI_PO_CUST~TRANSPORT_TO_DYNP.
      CASE im_name.
        WHEN subscreen1.
          CALL FUNCTION 'YMEPOBADIEX_PUSH'
            EXPORTING
              im_dynp_data = dynp_data_pbo.
        WHEN OTHERS.
      ENDCASE.
    ENDIF.
    endmethod.
    method IF_EX_ME_GUI_PO_CUST~TRANSPORT_FROM_DYNP.
      CASE im_name.
        WHEN subscreen1.
          CALL FUNCTION 'YMEPOBADIEX_POP'
            IMPORTING
              ex_dynp_data = dynp_data_pai.
          IF dynp_data_pai NE dynp_data_pbo.
    something has changed therefor we have to notify the framework
    to transport data to the model
            re_changed = mmpur_yes.
          ENDIF.
        WHEN OTHERS.
      ENDCASE.
    ENDIF.
    endmethod.
    method IF_EX_ME_GUI_PO_CUST~TRANSPORT_TO_MODEL.
    DATA: l_item       TYPE REF TO if_purchase_order_item_mm,
            ls_mepoitem  TYPE mepoitem,
            ls_customer  TYPE mepo_badi_exampl.
    data have to be transported to business logic
      CASE im_name.
        WHEN subscreen1.
    is it an item? im_model can be header or item.
          mmpur_dynamic_cast l_item im_model.
          CHECK NOT l_item IS INITIAL.
          ls_mepoitem = l_item->get_data( ).
    standard fields changed?
         IF dynp_data_pbo-matkl NE dynp_data_pai-matkl OR
            dynp_data_pbo-plifz NE dynp_data_pai-plifz OR
            dynp_data_pbo-webaz NE dynp_data_pai-webaz.
    update standard fields
           ls_mepoitem-matkl = dynp_data_pai-matkl.
           ls_mepoitem-plifz = dynp_data_pai-plifz.
           ls_mepoitem-webaz = dynp_data_pai-webaz.
            CALL METHOD l_item->set_data( ls_mepoitem ).
         ENDIF.
            CALL FUNCTION 'YMEPOBADIEX_GET_DATA'
              EXPORTING
                im_ebeln = ls_mepoitem-ebeln
                im_ebelp = ls_mepoitem-ebelp
              IMPORTING
                ex_data  = ls_customer.
            ls_customer-badi_bsgru = dynp_data_pai-badi_bsgru.
            ls_customer-badi_afnam = dynp_data_pai-badi_afnam.
            CALL FUNCTION 'YMEPOBADIEX_SET_DATA'
              EXPORTING
                im_data = ls_customer.
         ENDIF.
        WHEN OTHERS.
      ENDCASE.
    ENDIF.
    method IF_EX_ME_PROCESS_PO_CUST~FIELDSELECTION_ITEM.
    DATA: l_persistent TYPE mmpur_bool.
    CONSTANTS:
    FIELD-SYMBOLS: <fs> LIKE LINE OF ch_fieldselection.
    l_persistent = im_item->is_persistent( ).
    *IF l_persistent EQ mmpur_yes.
    READ TABLE ch_fieldselection ASSIGNING <fs> WITH TABLE KEY
                         metafield = MMMFD_YYMAN_NUM."fd_cust_01.
    IF sy-subrc IS INITIAL.
    <fs>-fieldstatus = '*'. " Display <-- this one was as per the sample code given.
    <fs>-fieldstatus = '+'. " Input <-- this i added to make the field mandatory.
    ENDIF.
    READ TABLE ch_fieldselection ASSIGNING <fs> WITH TABLE KEY
                         metafield = MMMFD_YYMAN_DES."fd_cust_01.
    IF sy-subrc IS INITIAL.
    <fs>-fieldstatus = '*'. " Display <-- this one was as per the sample code given.
    <fs>-fieldstatus = '+'. " Input <-- this i added to make the field mandatory.
    ENDIF.
    *ENDIF.
    ENDIF.
    endmethod.

  • How to export book pdf using custom presets for all book files in indesign using javascript

    How to export book pdf using custom presets for all book files in indesign using javascript.

    Hi jackkistens,
    Try the below js code.
    Note: you can change your preset name in below (e.g, Your preset name).
    var myBook = app.activeBook;
    myBook.exportFile(ExportFormat.PDF_TYPE, File (myBook.filePath+"/"+myBook.name.replace(/\.indb/g, ".pdf")), false, "Your preset name", myBook.bookContents, "Book_PDF", false);
    example:
    var myBook = app.activeBook;
    myBook.exportFile(ExportFormat.PDF_TYPE, File (myBook.filePath+"/"+myBook.name.replace(/\.indb/g, ".pdf")), false, "[High Quality Print]", myBook.bookContents, "Book_PDF", false);
    thx,
    csm_phil

  • How to Use EEWB in adding custom fields in transactions

    I have seen some tutorials on the net on how to customized transactions using EEWB. But it seems that CRM related transactions were the only examples I have seen. Is it possible to use EEWB in ANY transaction we wish to customize? We are planning to add custom fields in a Solution Manager transaction.

    Hi,
    I guess it depends on what transaction you want to add the field to. If for example you want to use transaction CRMD_ORDER (for processing issues, messages etc.) then EEWB fields created for table CRMD_ORDERADM_H will automatically be added in this transaction in a special tab called "Customer fields" (or something like that anyway).
    /Anders

Maybe you are looking for

  • Need to supress main report based on shared value comes from subreport

    Hi, I have a database that is used in both main report and subreport. On main report I have column a,b ,c, d,e,f to display in detail section, the subreport (column c, g,h etc) is also displayed on detail section, the link between main report and sub

  • GenerationType.AUTO doesn't work correctly with Kodo and MySQL

    Greetings, I'm migrating applications from JBoss/Hibernate to WebLogic/Kodo. The following column annotation: @Id @Column(name="CUSTOMER_ID") @GeneratedValue(strategy = GenerationType.AUTO) public long getCustomerId() is supposed to generate auto-inc

  • So many MBs!!!  The download bar for the Adobe Photoshop CS6 Design and Web Premium is 4,565 MB!

    Can the Adobe Photoshop Trial Version of CS6 Design and Web Premium really take up over 4500 MB of space and take 2 hours to download???

  • Iphoto wont download

    i recently bought a used macbook OS X version 10.6.8 and it didnt come with iphoto. I was however given snow leopard, install application disc etc. when i insert the install/application..it says my computer is not compatible. I have tried downloading

  • Jsp beginner

    Sorry for the trifle question.......... I am new to JSP and would like to begin coding........ What do I need to install so that I can compile the code and view the results locally on my IE browser........ In what folder do I have to store my program