Script To Update Month Text Field?

Hello SharePoint Fam,
I am wanting to add a choice field to existing list that contains each month(jan,feb,mar,etc) but was wondering is it possible for me to automate this at all so I don't have to manually change default month value to correct month on the first of each month.
 Basically want the field to be hidden and index it so that I can make a easy filter option for a very big list(60k items) and want it totally invisible to users so all they have to do is load there files and have no idea that a month is being tagged
to there files.
Thanks N Advance

You can use an event receiver (ItemAdded/ItemUpdated) to populate the month field based on any condition (like created date, modified date etc). Or you can also create a Calculated field like (MONTH([Created]).
Moreover, the field can be set so that it is not visible in forms like NewForm, EditForm, or DisplayForm. Example of setting the field in forms
SPField.ShowInNewForm = false;
SPField.ShowInEditForm = false;
SPField.ShowInDisplayForm = false;
Blog | SharePoint Learnings CodePlex Tools |
Export Version History To Excel |
Autocomplete Lookup Field

Similar Messages

  • Using external XML document to update / change text fields inside of published captivate output.

    Hello
    I currently have a project where the client has requested to have the ability to update the text fields inside the project at a later date.
    This is due to the nature of the content changing rather rapidly, i would like to set this up so the client can manage this them selfs.
    What would the best way to do this be?
    I'm thinking XML, an external XML sheet were by Captivate imports the text from this XML sheet and then displays it within the specific text fields contained within the captivate output.
    This way the client would just update the external XML document(cut and paste the text in) and then the text would be dynamically updated in the published Captivate document.
    any help would be amazing !
    Thanks in advance
    Nick

    Hi Lieve
    But isn't this thread more about an end user having an ability to change text after the Captivate has been published and delivered? I could see where that might be useful if making changes then publishing to create a new output. But I'm interpreting that the situation here is that a Captivate project has been published and delivered, and some mechanism is desired that allows the recipient to modify an external XML file to influence changes in the already compiled Captivate output.
    Cheers... Rick

  • Update a text field based on a SelectOneChoice field

    Hi,
    I have a set of Create, Confirm and Thankyou screens. These screens are bound to a global view object. The create screen has a SelectOneChoice element which allows the user to pick an employee. When the selection is made, I need to display the employee's department in a read only text field below the dropdown. The Employees list(SelectOneChoice) is associated to the read only view object and this view object also has the employee's department information. Im dont know how to set the department name in the text field and refresh the screen. Any help is appreciated. Thank You.

    Frank, thanks for you time. Please see my answers below.
    Hi,
    can you help me creating a reproducable testcase
    based on the HR schema where we have a Departments
    and Employees tables. To understand your usecase I
    have some questions:
    Im not too familiar with HR Schema.
    >
    First of all however, what is a "global view object",
    and is it safe to assume you are using ADF Business
    Components?
    Its the "Globals View Object" as described in the SRDemo for creating a new Service Request and yes I am using ADF Business Components.
    >
    Which version of Oracle JDeveloper do you use ?
    10.1.3
    >
    The usecase I understand is that you have a
    selectOneChoiceList that whenever you select a new
    name should update a read-only text field with the
    department name. Is this correct ? Or is there more
    in it ?
    Heres the complete description. There are 4 fields on the screen
    1. Program Name (text input field, - required field)
    2. Program Category (SelectOneChoice field - required field)
    3. Employee Name (SelectOneChoice field - required field)
    4. Employee Department (Text output field - based on 3 above)
    What you have described above is working for me now, but everytime I select a value for 3, it does the required fields check and gives a message like "1 & 2 are required and a value must be entered", this validation should only occur when my continue button is clicked.
    >
    The department name should be displayed only (read
    only), or is it also bound to what you call "global
    view"?
    Yes its read only but I need to bind to the Globals view as I need to display it in the confirmation screen.
    >
    Also, just to be sure, is the department name part of
    the VO or is it the departmentId?
    The screen is bound to the Globals View, the selectOneChoice values are displayed from another view(EmployeeList view) which has the department name.
    >
    Frank

  • Script to update legacy text (action does not work)

    So here is my scenario: I did select all and update legacy text but I have some issues with some type paths that are being clipped. OK, easy enough let me unselect those layers and run "update selected legacy text" GREAT WORKS!
    Here is my delima I have 400 .eps files that I am doing this on. The layer names are always the same so I was wondering if there was an easy way to do this on an action. Does an action know that I am unselecting a layer after selecting all? Why doesn't it record when I do
    Type>Legacy Text>Convert Selected Text?
    • Select all
    • Unselect two layers (layers name consistent)
    • Type>Legacy Text>Convert Selected Text
    Is this easy in a script to pull off?

    #target illustrator
    // script.name = legacyTextConvertToNative.jsx;
    // script.description = converts Legacy Text to Native from all layers, except from 2 layers, hard codes below.
    // script.required = 2 layers named the sames as the names shown below in skipLayer1 & 2
    // script.parent = CarlosCanto // 7/23/11;
    // script.elegant = false;
    var idoc = app.activeDocument;
    var skipLayer1 = "CAPTIONS HYDROGRAPHY"; // replace with your own layer name
    var skipLayer2 = "CAPTIONS RELIEF"; // replace with your own layer name
    for (i=0; i<idoc.layers.length; i++)
              var ilayer = idoc.layers[i];
                   if (ilayer.name!=skipLayer1 && ilayer.name!=skipLayer2)
                             for (j=0; j<ilayer.groupItems.length; j++)
                                       var igroup = ilayer.groupItems[j];
                                            for (k=igroup.legacyTextItems.length-1; k>=0; k--)
                                                      var ilegacy = igroup.legacyTextItems[k];
                                                      ilegacy.convertToNative();
    The two that are locked are the ones I name in the script and are the ones I do not want edited.
    There is your script the layers that is not getting updated for example is the: "CAPTIONS COUNTRIES" & "CAPTIONS TOWNS"

  • HELP! Script to populate a text field based off of whats picked in a dropdown on a previous page?

    Alright hopefully i can explain this good enough.
    I have a dropdown box that has two different options to pick from.  For example:
    Dropdown1 has:  Option A
                             Option B
    On the other page I have two text fields.  TextField1 just shows whatever is picked from the Dropdown1 (Option A or Option B).  TextField2 needs to do the following:  If Option A is picked i just need the field to stay blank.  If Option B is picked i need it to populate specific text.
    I thought i figured out a way to do this but it seems that since it is on a different page the script will not fire.
    Any help is much appreciated!!!!!!

    Hi,
    With the first issue: having the dropdown and the first textfield displaying the same value, the easy solution is to use Global Binding.
    Make sure that the dropdown and the first textfield have the same name in the hierarchy.
    The select one of them and in the Object > Binding palette, set the binding to Global.
    In the dropdown go to the Object > Binding palette and make sure that "Specify values" is NOT ticked.
    It is probably a good idea to set the textfield to read only, in the Object > Value palette. This would prevent the user overwriting the value set by the dropdown.
    No script required. Whatever is in the dropdpwn will appear in the textfield.
    The second issue needs a small script in the calculate event of the second textfield. This looks at the value in the first textfield (TextField1) and sets its own value. This is JavaScript:
    if (TextField1.rawValue == "Option B")
         this.rawValue = "Specific text";
    else
         this.rawValue = null;
    There are some examples here: http://assure.ly/jtTkdO, http://assure.ly/fYCuQ2.
    Hope that helps,
    Niall

  • Using a Document Listener to update a text field

    Hi,
    Background:
    I need to retrieve a number from a card using a hand scanner. I'm currently using a jTextField1 in Netbeans to do this. When the number is input (the format is 6 digits, i.e. 123456) the rest of the form fields are filled in and updated automatically from an oracle database as it should. I have the database being checked as soon as the field reaches 6 characters (doc.getLength() == 6), It all works great.
    Problem:
    The problem comes in when I need to input a card that has a newer, different format of numbers and characters, i.e. **001234567**, it's more than 6 characters. I need only the 123456 substring to update the form, and the 7 substring to input later.
    What I tried:
    I'm using the combination of pattern matching and substring to get the 1234567 part only. I thought of using a hidden field on the form to input the numbers to and then set the text of jTextField1. I'm not sure this would work and seems like a hack anyways.
    Code:
            public void updateLog(DocumentEvent e, String action) {
            Document doc = (Document) e.getDocument();
            Integer docLength = doc.getLength();
            String isCardLegal = jTextField1.getText(); // getting card from textbox
            returnString Del = new returnString();
            String str = Del.getNewNumberFromCard(isCardLegal);
            System.out.println("str: "  +str);
            if (docLength == 6) {
              // see if number exists in database here
    public class returnString {
        public String getNewNumberFromCard(String oldString) {
            Pattern p = Pattern.compile("\\*");
            Matcher m = p.matcher(oldString);
            String newString = m.replaceAll("");
            // takes off leading zeros when using a new card
            // otherwise just returns the string as-is
            if (newString.length() == 9) {
                newString = newString.substring(2);
                return newString;
            } else {
                return newString;
    }Does anyone have a better way to do this? I hope I was clear in my explanation.
    Thank You for your help,
    Alan
    Edited by: shadow_coder on Oct 8, 2009 12:01 PM

    I really thank you for your help, I realize I wasn't clear because I wasn't sure about too many different things. I'll try it again:
    I need to use a hand scanner to input id cards having 2 different character sets. I now realize I can have the scanner insert a carriage return at the end of the scan, so I need to be able to detect this carriage return. I'm using a documentlistener to look at each character in the textfield. The character sets I need to use are 6 characters long, and an 11 character long set (including asterisks).
    Here is my SSCCE:
    import java.awt.FlowLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    import javax.swing.JFrame;
    import javax.swing.JTextField;
    import javax.swing.event.DocumentEvent;
    import javax.swing.event.DocumentListener;
    import javax.swing.text.BadLocationException;
    import javax.swing.text.Document;
    public class exampleCase extends JFrame implements ActionListener {
        JTextField textField1;
        public exampleCase() {
            getContentPane().setLayout(new FlowLayout());
            textField1 = new JTextField(15);
            textField1.getDocument().addDocumentListener(new MyDocumentListener());
            textField1.getDocument().putProperty("name", "TextField");
            getContentPane().add(textField1);
            setSize(300, 170);
            setVisible(true);
        public static void main(String argv[]) {
            new exampleCase();
        public void actionPerformed(ActionEvent e) {
            throw new UnsupportedOperationException("Not supported yet.");
        class MyDocumentListener implements DocumentListener {
            public void insertUpdate(DocumentEvent e) {
                updateLog(e, "inserted into ");
            public void removeUpdate(DocumentEvent e) {
                updateLog(e, "removed from ");
            public void changedUpdate(DocumentEvent e) {
                throw new UnsupportedOperationException("Not supported yet.");
            public void updateLog(DocumentEvent e, String action) {
                String newline = "\n";
                Document doc = (Document) e.getDocument();
                int changeLength = e.getLength();
                System.out.println(
                        changeLength  +" character"+
                        ((changeLength == 1) ? " " : "s ")
                        action+  doc.getProperty("name")  +"."+  newline
                        "  Text length = "+  doc.getLength()  +newline);
               try {
                    String docCharacters = doc.getText(0, 2); // Exception when increased
                    System.out.println("Characters are: "+  docCharacters);
                    if (docCharacters.equals("\\r")) { // How to check for carriage return?
                        System.out.println("I'm Here, Yeeaaah!!");
                } catch (BadLocationException ex) {
                   System.out.println("Error Here, bad location" + ex);
    }When I increase the '2' to be able to handle the characters, I get javax.swing.text.BadLocationException: Invalid location can anyone tell me why? I'm not sure why it works when the number is at 2 but not others!
    The other issue is, what is the correct way to detect a carriage return? I was able to test this when the number above was at 2. This doesn't work.

  • Auto update of text field on drop down change (binded to XML doc)

    Hi all,
    I have a problem that i'm stuck with since too long and I'll be really grateful for any useful idea.
    Here is my issue:
    I have this XML:
    <?xml version="1.0" encoding="UTF-8"?>
    <ItemsList>
              <Product>
                        <itemUnitPrice>200.00000000</itemUnitPrice>
                        <itemCode>lkg</itemCode>
                        <ItemID>2</ItemID>
                        <itemDescription>lk desc</itemDescription>
              </Product>
              <Product>
                        <itemUnitPrice>300.00000000</itemUnitPrice>
                        <itemCode>lkv</itemCode>
                        <ItemID>1</ItemID>
                        <itemDescription>lkv desc</itemDescription>
              </Product>
              <Product>
                        <itemUnitPrice>400.00000000</itemUnitPrice>
                        <itemCode>lks</itemCode>
                        <ItemID>3</ItemID>
                        <itemDescription>lks desc</itemDescription>
              </Product>
    </ItemsList>
    ItemID and itemCode are bounded to my dd list and the left is bounded to the rest of the columns in my table (below).
    I`d like to find a way to auto change, for example the unit price, of an item selected from the list.
    I have to mention that this xml is returned by a database and data can change so  i can`t write javascript static code to match itemId with their Unitprice and description.
    Any ideas ??
    Thanks in advance.

    Hi,
    yes this is possible.
    Add this script to the change event of your dropw down list.
    Text1.value.text.value = xfa.event.change;

  • Updating a text field in  aform based on conditions

    Hi ,
    We are developing a custom form which has a database datablocks.
    This form is a master detail form . It has a field called "status" whose initial values is 'Draft' and this field is present in the master part of the form.
    The Logic for "Draft" is written in Pre-Insert trigger of the header block.
    Question
    If condition "A" is met and "B" is met , status should be set as a value called as 'Submitted';
    If condition a is not met and B is met , status should be set as a value called as 'Created';
    We are doing this in the post-update trigger at block level. But the changes are not taking effect.
    Please let us know if this is the correct approach to handle the column. Note that the column "Status" is a database column.
    Thanks and Regards
    SR

    The above is not working
    Let me restate the problem statement
    Hi ,
    We are developing a custom form which has a database datablocks. This form is a master detail form . It has a field called "status" whose initial values is 'Draft' and this field is present in the master part of the form.
    The Logic for "Draft" is written in Pre-Insert trigger of the header block.
    Question
    The record is created with a status of Draft initially.
    Query and requery back and if condition is met , the value of status should be updated as follows......Condition A and B involves going an chekcing in some other table and based on that , we set the status column....
    If condition "A" is met and "B" is not met , status should be set as a value called as 'Submitted';
    If condition "A" is not met and B is met , status should be set as a value called as 'Created';
    We are doing this in the post-update trigger at block level. But the changes are not taking effect.
    Please let us know if this is the correct approach to handle the column. Note that the column "Status" is a database column.
    Also tried the following
    1) When validate item at block level by capturing the item in a parameter and then assigning the parameter to the status column in pre-update column . This is not working
    Thanks and Regards
    SR
    ----------------------------------

  • Ability to update a custom text field across multiple projects in a grid type view

    We have a project level custom field for the Project Owner to enter an Executive Level project status.  A project owner will have many projects. Right now the owner has to open each project individually, update the text field and save which can
    take a considerable amount of time. We would like to have the ability to have the project list with the text field in a grid (looks like an excel sheet) with the ability to update the text field directly from the grid.  Is there some way
    to do this?

    Hi,
    Which project version are you using?
    Anyway there is no "excel-like" way to bulk edit proejct field, such as you can do for the resources. The project center is unfortunately a read-only view.
    For PS2010, the
    bulk edit tool allows you bulk editing pronot be "excel-like" meaning updating the value in rows. You'll have to select the project with the same value for the custom field and enter the value once and validate and redo this process for each proejct field
    value.
    Otherwise third-party tools are available on the market for this purpose:
    http://www.senseiprojectsolutions.com/sensei-bulk-update/
    http://www.fluentpro.com/productsfluentbooks2013.html
    Finally you could develop a side-application to achieve this objective.
    Hope this helps,
    Guillaume Rouyre, MBA, MCP, MCTS |

  • Duplicate a Text Field on Every Page of a Document?

    Today I wrote my first vb.net/adobe app.  I managed to open the pdf doc in adobe and create a named text field.  I managed to insert a java script that gets the current date when the document is open and updates the text field.  I would like to duplicate the text field on all pages of the document.  Manually, I can right click on a text field and select duplicate.  I don't see a property or method that allows me to program this.  The field property "page" appears to be read only.  any help would be appreciated.  thanks.
    page
    The page number or an array of page numbers of a field. If the field has only one appearance in the document, the page property returns an integer representing the 0-based page number of the page on which the field appears. If the field has multiple appearances, it returns an array of integers, each member of which is a 0-based page number of an appearance of the field. The order in which the page numbers appear in the array is determined by the order in which the individual widgets of this field were created (and is unaffected by tab-order). If an appearance of the field is on a hidden template page, page returns a value of -1 for that appearance.
    TypeInteger | ArrayAccessRFieldsallExample 1Determine whether a particular field appears on one page, or more than one page.var f = this.getField("myField");
    if (typeof f.page == "number")
    console.println("This field only occurs once on page " + f.page);
    else
    console.println("This field occurs " + f.page.length + " times);

    I also tried the brute force method of moving from page to page and creating a text field on each page.   I used pageNum to changes the page, but, adobe didn't seem to recognize that.  I saw the page change on the screen, but, all of the textfields were created on the first page!

  • Adobe LiveCycle Designer 8 - Add days to Current Date in another text field

    Hi-
    I am working on an expense report. I have six fields, CurrentDate, and countDate1 through countDate5. The CurrentDate is a Time/Date field which the user can select whatever date is needed with the drop down calendar. The other five countDate fields are "text" fields which will represent Monday through Friday. I would like to add zero days to whatever the user selects as the CurrentDate and make that appear in countDate1 which represents Monday(the CurrentDate the user selects will always be a Monday), add one day to whatever the user selects as the CurrentDate and make that appear in countDate2 which represents Tuesday...and so on. I realize this is probably basic for someone familiar with FormCalc but I'm very new at this.
    This got me very close but I want the user to select the date and not have the CurrentDate already filled in.
    CurrentDate - DateTime field, FormCalc calculation script:
    num2date(Date())
    Date1 - Text field, FormCalc calculation script:
    Num2Date( Date2Num(CurrentDate.formattedValue))
    Date2 - Text field, FormCalc calculation script:
    Num2Date( Date2Num(CurrentDate.formattedValue) + 1 )
    Thanks!
    Brian

    Here is an exmaple of adding days the script is used in the "exit" event for the date select field that has display format of "MM/DD/YYYY". Adding days requires add x number of days to the days since the epoch date for the current date, adding months or years one needs to manipulate the string parts of the date.
    ----- form1.#subform[0].InputDateField::exit: - (FormCalc, client) ---------------------------------
    // fomatted string for selected date
    var sFmtDateValue = $.formattedValue
    var sMsg = Concat("Entered date formatted: ", sFmtDateValue) // build message string
    sMsg = Concat(sMsg, "\u000a" ) // add new line to message
    // convert date string to days since epoch date - format is important
    var fDaysPast = Date2Num(sFmtDateValue, "MM/DD/YYYY")
    // add 7 days to days past epoch date
    var f7DaysPlus = fDaysPast + 7 // add 7 days
    var s7DaysPlus = Num2Date(f7DaysPlus, "MMM DD, YYYY") // format string for 7 days plus
    sMsg = Concat(sMsg, "\u000a", "Plus 7 Days: ", s7DaysPlus) // build message string
    // add 14 days to days past epoch date
    var f14DaysPlus = fDaysPast + 14 // add 7 days
    var s14DaysPlus = Num2Date(f14DaysPlus, "MMMM DD, YYYY") // format string for 7 days plus
    sMsg = Concat(sMsg, "\u000a", "Plus 14 Days: ", s14DaysPlus) // build message string
    // display results
    // work on months
    // get parts of date past epoch date
    var sFullYear = Num2Date(fDaysPast, "YYYY") // get 4 digit year form days past epoch date
    var sMonth = Num2Date(fDaysPast, "MM") // get month form days past epoch date as number
    var sDate = Num2Date(fDaysPast, "DD") // get date form days past epoch date as a number
    var s2Month = Sum(sMonth, 2) // add 2 months
    var s2FullYear = sFullYear
    // if more than 12 months in new date adjust year on number of months
    if (s2Month > "12") then
    s2FullYear = Sum(s2FullYear, + 1) // increment year
    s2Month = Sum(s2Month, - 12) // adjsut months
    endif
    var s2MonthsAdded = Concat(s2Month, "/", sDate, "/", s2FullYear) // date string
    sMsg = Concat(sMsg, "\u000a", "Added 2 months: ", s2MonthsAdded) // display stringxfa.host.messageBox(sMsg, "Sample Adding Days" ,3, 0);
    var s5Month = Sum(sMonth, 5) // add 5 months
    var s5FullYear = sFullYear
    // if more than 12 months in new date adjust year on number of months
    if (s5Month > "12") then
    s5FullYear = Sum(s5FullYear, + 1) // increment year
    s5Month = Sum(s5Month, - 12) // adjsut months
    endif
    var s5MonthsAdded = Concat(s5Month, "/", sDate, "/", s5FullYear) //build Date string
    sMsg = Concat(sMsg, "\u000a", "Added 5 months: ", s5MonthsAdded) // display stringxfa.host.messageBox(sMsg, "Sample Adding Days" ,3, 0);
    // display results
    xfa.host.messageBox(sMsg, "Sample Adding Days and Months" ,3, 0);

  • Can I populate a text field in one PDF with the modification date of a different file ?

    Rather convoluted problem here but I'm trying to place a text field on a PDF document that serves as the main menu page for a library of interlinked PDF documents
    The complete library contains over 7,000 files and additions are added and documents changed almost daily.
    We currently use batch files to open the main menu from it's shortcut and this runs a check on a sync log file (.txt) to ascertain when the last time the user synchronised with the server to get the latest copy of the files.
    Between a certain time range they are told how long it has been since they sync'ed and are offered the option to sync before opening, after a prescribed timeframe they cannot enter without synchronising. We use Allways Sync to conduct the file synchronisation with our mother files on our server.
    What I'd like to do is take advantage of Allways Syncs automatic synchronisation options to synchronise on log on and at prescribed idle periods there after.
    This works fine but I'd like the text field on the main menu PDF to say when the last synchronisation took place - easy if the main menu is the last file modified .. just use info.modDate.
    However, the main menu is rarely modified therefore I wish to import the text to populate the text field from a different file.. either by interrogating the other files modifictaion data (though I doubt Acrobat can do this) or by simply importing some text stored in another file (a .txt file?) which has previously been created by batch file commands.
    Any assistance would be greatly appreciated.
    Regards,
    Nifty Styles
    (Norfolk, England)
    P.S.  I'm using Acrobat 8.3.1. Professional on Windows XP (SP3).

    Thank you for all your help above.
    Just to confirm your advice, am I right with the following conclusions? :
    1. The script (function) to fill the text field with the modification date of a different PDF file needs to be stored in a folder level .js file.
    2. The document containing the text field needs to call the .js function either within the document script or within the custom script property of the text field itself.
    Further to that can you just advise on the syntax for accessing the modification date of the other document.
    Do I need to assign a variable to the address of the file to be used, and then use this variable in the text form filling script (as below) or can I use a direct file reference at the .modDate command.
    var LastSync = "C:\sync\bin\lastsync.pdf";
    var strMsg = util.printd("h:MM tt",LastSync.modDate) + " on ";
    strMsg += util.printd("dddd, d mmmm, yyyy",LastSync.modDate);
    this.getField("LastSyncDate").value = strMsg;
    If the syntax is totally different to the above I would be very grateful for some guidance in the right direction.
    I much appreciate your time to help me ... I'm almost there.
    Kind Regards,
    Nifty

  • Line item text field from MIGO are not copied into FI line item text field

    Hi all on SCN, please, I need a help.
    It was created as required by the user a field status group with the text field required.
    This field status group was assigned to some accounts, in order to make my unit tests.
    u2003
    In development envirionment was made some tests directly in FI area, and it works properly.
    u2003
    But the user made a test using MIGO transaction, choosing in this transaction an account that he changed its field status variant to the one created in development environment, that make the text fiels required. So, to start, he donu2019t fill the text item of MIGO, and a message error appear stating that he needs to enter values in this field.
    After fill in the text fiels, he can save his work.
    u2003
    But the FI document generated donu2019t receive the line item text typed in MIGO, but receives the values on Reference document and Document Header text entered in the header of MIGO, what is missing, donu2019t is automatically copied MIGO text line items to FI documents line Items, does there is some additional configuration missing?
    Hope someone help me with this issues.
    Thanks in advanced!

    Hi,
    Material document will get updated in reference field in FI by default.  If for any reason, want to get this updated in text field, you need to define a subsititution in GGB1.
    Best Regards,
    Madhu

  • Item level Info record PO text field in Purchase Order Me21n transaction

    Hello All,
    I have to enter some information in the PO info record text field (which is in Item level Texts tab of ME21n transaction ) using an user-exit at the time of creation/change of purchase Order.
    Does anyone knows the user-exit and how to update the text field ?
    Any help is really appreciated
    Thanks
    Ricky

    Check with : Enhancement : MM06E005
    Function module : EXIT_SAPMM06E_017
    This user exit will trigger when you enter the data in item level(Both creation and change)

  • Filling a text field in Safari and saving the page as 'save as'

    My telephone system creates a call log and I like to automate downloading it weekly.
    In order to get in it needs to enter a password (there is also a user name field but that is left blank by me).
    Once in is should safe a ‘Save as” copy to my desktop.
    I have written a script and it does not work (probably because I am not good at scripting.
    Can anyone help?
    This script gets me as far as the dialog box that asks for Password to open.
    tell application "Safari"
    activate
    tell (make new document) to set URL to "http://192.168.1.90"
    Thanks

    Thank you for all your help above.
    Just to confirm your advice, am I right with the following conclusions? :
    1. The script (function) to fill the text field with the modification date of a different PDF file needs to be stored in a folder level .js file.
    2. The document containing the text field needs to call the .js function either within the document script or within the custom script property of the text field itself.
    Further to that can you just advise on the syntax for accessing the modification date of the other document.
    Do I need to assign a variable to the address of the file to be used, and then use this variable in the text form filling script (as below) or can I use a direct file reference at the .modDate command.
    var LastSync = "C:\sync\bin\lastsync.pdf";
    var strMsg = util.printd("h:MM tt",LastSync.modDate) + " on ";
    strMsg += util.printd("dddd, d mmmm, yyyy",LastSync.modDate);
    this.getField("LastSyncDate").value = strMsg;
    If the syntax is totally different to the above I would be very grateful for some guidance in the right direction.
    I much appreciate your time to help me ... I'm almost there.
    Kind Regards,
    Nifty

Maybe you are looking for

  • Bmp-pictures in servlet with HTTP-server

    hey, We are 2 belgium students who are making a training at France. We have to make a picture server. Our problem is that we don't have a clue how to display the bmp-pictures who are saved in a Access database in the browser. The code that we are now

  • Alignment button

    Is there any way to add an alignment button to the tool bar? Thanks powerbook G4   Mac OS X (10.4.1)  

  • Listener actually up as seen from backend but from console gets error

    Hi My SCAN listener is shown running from backend but is shown down from console. response for listener shows below error. Any suggestions/hints Thanks LSNRCTL for Linux: Version 11.2.0.2.0 - Production on 06-JUNE-2011 11:44:54 Copyright (c) 1991, 20

  • TR-TM: error in Contract settlement

    Hi, When I settle contract there is a error message: Im BAFin-Meldewesen sind Stock,Sparte,Anlageart und DV zu pflegen. Message no. ISSR_MD_ADMIN038 Please help me how to fix it. Thanks and Best regards Ms.Minh

  • 10.4.11 Update unarchive troubles

    Having trouble unzipping and opening disk images. Anything created new or old with the machine works fine. Anything zipped or imaged on another or emailed: "unable to unarchive"