Change name of publishedcollection when creating or editing

I need to change the name of the publishcollection when the collection is created or edited. This is to make sure the collection name matchs the name of the one on the remote server. I have tried the following code and it executes ok, but in the end the name of the collection is not changed.
here is the code
function publishServiceProvider.updateCollectionSettings( publishSettings, info )      
    local colname = "This is my new collection name"
    LrLibLogger.outputToLog( colname )
    catalog:withWriteAccessDo( "Set name", function ()
        info.publishedCollection:setName( colname )
        LrLibLogger.outputToLog(info.publishedCollection:getName()) -- outputs the old name and not the new one
    end)  
end
After running this the collection name is still the old one.

Hi Allen,
I've tested your second version of your code, and although I can't find why the name isn't fixed, I get an error, only when creating a new collection:
"We can only wait from within a task"
I found this at the Adobe documentation for pubCollection:getName():
"This function must be called from within an asynchronous task started using LrTasks. Must not be called from within the same catalog:with___WriteAccessDo gate in which the collection object was created."
I'm very new to Lua and LR development, but I hope this helps.
Regards,
Juanma

Similar Messages

  • File Name not set when creating new file in EP 6.0 SPS20

    Hi,
    We recently upgraded from EP6 SP15 to SP20. Now when I create a new file or folder in a KM folder, the name that I give for the resource is not taken into account. The display name  of the newly created resource will be <b>New Text</b> or <b>New HTML Document</b> or <b>New Folder</b>, etc. Even if I open the Properties and change it there, it is not getting reflected. But if I select Rename from the Context menu and give a new name, it gets set. What could be the problem?
    Thanks in advance
    Regards
    Ranjith

    Hi,
    It was an issue with the customized PropertiesControl class.
    Regards
    Ranjith

  • Problem with collection names getting replaced when creating new collections in Photoshop Elements 5.0

    We have been using Photoshop Elements 5.0 a lot lately to organize many photos into collections.  A new problem just arose when creating a new collection.
    As we named the new collection and clicked on "OK" it replaced another existing collection with the new name.  The photos from the old collection were still there but now under the new collection name.  This happened at least three or four times, each time a different "old" collection was renamed.  Does anyone know why this would happen?
    This past week we have added at least 20 new collections with no problem prior to this.  Adobe actually had to shut down when this happened.  Each time we reopened Adobe it would happen again randomly renaming a different "old" collection when we tried to add the new one.  Any insights would be much appreciated.

    Thank you - that was the problem and now it is working correctly
    again!
    Tom Z.
    >>> saurabh288 <[email protected]> 05/24/09 4:23 AM >>>
    It may be that the catalog has been corupted.Try repairing the
    catalog of PSE.

  • IPhoto sort order changes on iPad/iPhone when photos are edited

    I have been having issues getting photos to display in the correct order on my iPad, iPhone and Apple TV. When I go into an event I want the first photo taken to be at the top and the last at the bottom. I sort by date so that photos taken on different cameras at the same event appear in chronological order and this works very well in iPhoto on my Mac. There is a problem when I sync to my devices though. Sometimes the order on my devices is the same as in iPhoto on my Mac and other times it is not. A recent software update seems to have cured the major issue, but created another. After some experimentation I have discovered that editing a photo changes its position in the sort, even if the adjustment has nothing to do with the date.
    I picked a sample event and adjusted the contrast of the first photo. There was no change to sort order on the Mac. I hit sync in iTunes and the photo now displays last on my iPhone. Go back into iPhoto, click on "Revert to Original", sync iTunes again and the photo now displays first again. Seems like a bug to me.

    I also have have the same issue and have been on the phone with Apple Care....not much help I'm afraid although I do believe something is broken and requires a fix. Here is what I have found (all software up to date and latest OS BTW)....I have sorted all my pictures by Date, if I want to add a straggler I just alter the original date and all is well within the event.  I then "batch change" the event to the tile and event name. So the pictures in the event are named " Holiday 2012  1-xxx.  Again, all is well in iPhoto but when sent to an iPad or Apple TV the sort is as siwilson mentioned above.  I just discovered a temp work around for events with less than 1000 pictures, if I sort by Title I can get them to show correctly on the ATV and iPad. Now what was/is interesting is somethimes they would sort correct and sometimes not.  It turns out that if you sort the event by Title and quit iPhoto and reopen it....it has reverted back to sort by Date. It does that everytime. So what I do is turn home sharing off in iTunes (forces it to look at the photos again), open an iPhoto event and sort by Title.  Then I turn home sharing on in iTunes (leaving iPhoto open) and sync my iPad.  If I want ot stream photos to my ATV I must leave iPhoto open so the sort remains as I set it. If I want to retain the correct sort this is what I need to do each time. So this is a bandage for me until they fix things.  One final about pictures over 1000.....it sorts them as mentioned above with another twist, numbering goes 0001, 1000, 1001, 1002 etc.  @#$% why can't they just sort the way iPhoto presents them?

  • List workflow with "Start workflow when an item is changed" will run twice when creating a new wiki page

    I have created the following workflow on the wiki page library to run when an item is changed:-
    And it will send emails as follow:-
    Currently when a user creates a new wiki page and he enters the wiki page name.
    Then he enters the content and click on save.
    Then two duplicate emails from the workflow will be sent ? So can anyone advice why creating a new wiki page will fire the workflow twice ?
    Thanks

    Hi john
    Have you see the library where the wiki pages are stored. You can see how many occurrences of the workflow has been run.
    Anyway, instead of using "wait for", can we put a condition that says, if Assign To:Approver is not empty. then email. 
    i use if instead of wait and it worked well, thanks

  • How do you change the max data when creating a DVD?

    I recently filmed a show and am making DVD copies. The show runs 1hour 45mins and is about 79gb in HD. I'm using compressor 4.1 to create the DVDs so it fits on one disc. I've made a few test copies but so far every DVD freezes at around 43 mins when I play it in another computer or dvd player. I heard in a blog that reducing the max data should solve the problem. This is my first time using compressor and I wanted to know where do you go to change the max data and how will that affect the video quality? Also, what is the suggested range of data limits for a project of this size?
    Thanks

    Duplicate the Create DVD preset from the Settings pane and name it.
    Select the MPEG setting in the batch window.
    Open the Inspector and click the Video tab.
    Choose your "Encoding Mode" (CBR, etc.).
    Uncheck Automatically Select Bit Rate.
    You can then move the slider: somewhere around 4 Mb per second should be about right.
    Just to add that you might also have a problem with the physical media. Try another brand to see whether that makes a difference.
    Russ

  • Changing Names of Temporary tables Created BY CKm and LKM

    Hi,
    I am new to ODI.
    I want to know if we can change the default name structure that is used by ODi to create temp tables.
    I$,C$ and E$ table.
    E.G:- If i want to keep I$1 for one schema and I$2 for another schema.
    Is there any way by which we can do this?
    Thanks,
    Mahesh

    Hi,
    I have one situation where i am having various packages using different source tables but having single target table.
    Right now i am not running all packes at a time but as it would go in prod those will be run simultaneously which may result in errors.
    So for precautionary cause i am trying to fix it in Advance.
    eg:- We have multiple factories from which we are taking data and putting them in same table.
    Like i have A,B,C factories and each factory has X,Y,X schema as ax,bx,cx,by,cy.ay ......
    i AM TAKING DATA FROM these schema and resp tables in each factories packages and putting it in centralized database.
    So when i run thiose packages will it be a case that it will clash in Temporary tables?
    Let me know if u are clear with the question :)

  • Change name of JVM when listed by 'ps' command

    Is it possible to change the name of the Java VM running on Solaris which appears when using the "ps" command?
    If so, how is it done?

    does this apply for linux and the top command as well, Don't know. 'top' in Solaris usually displays running processes and isn't really the same as ps. Does top display the command line or the executable? If the latter it won't help.
    and is there a way to give different "names" to threads created within a java application?I doubt it. In linux the threads are displayed as processes and I presume you want to 'name' those. And that isn't possible.

  • Is it possible to change the default URL when creating new hyperlinks?

    I'm currently working to take a 128 page catalog that was created in InDesign for print and turn it into a interactive PDF to post on our companies website. The catalog contains thousands of part numbers and I'd like to link each one to its corresponding stock status page on our website that gives current availability and pricing for any particular customer.
    So say I'm dealing with part number "XXXX". When I go to add the hyperlink the default web address it spits out is " http://XXXX ". Instead of that, would it be possible to change the default to " http://forums.adobe.com/discussion/XXXX/1 ". Obviously I just used this website as an example, but it would save so much time if I could avoid having to type the exact same URL every time.
    Or maybe is there a quicker way to do this other than what I am currently trying?
    Thanks

    I've found some external software applications that will do it, so that leads me to believe its not possible within ID CC.

  • Changing default Target Group when creating transports.

    Hi All,
    We have 4 different target groups for the transports created in development systems. I would like to make one transport group default which is mainly used by majority of consultants.
    How to make one transport group default during creation of transport.
    Regards,
    Krishna

    And to just make it more clear :
    and here is the SAP help on the subject:
    Transport Layer in ABAP Workbench
    The Change and Transport System supports the distribution of development work on large projects across multiple SAP Systems.
    The packages in each development system are grouped into one transport layer.
    The transport layer determines whether objects are assigned to a local or transportable change request.
    Use
    Each of your SAP development systems is assigned a transport layer as its standard transport layer. If you use Extended Transport Control, you can assign different standard transport layers to certain clients.
    You can define at the most one consolidation target for each SAP System and transport layer.
    When you create a package, it is assigned the standard transport layer of the SAP System.
    If you want to assign a different transport layer to a package, you require the administration authorization for the Change and Transport System.
    The objects in a package automatically have the transport attributes defined for the corresponding transport layer.
    If a consolidation route originating in their SAP System is defined, then the objects are assigned to a transportable request, and transported into the consolidation target when it is released.
    If a consolidation route is not defined, the objects are assigned to a local request, and are not transported.
    Customizing settings are not assigned to a package. They have the transport attributes of the standard transport layer of the system or client.
    It is best to assign a package a standard transport layer for which a consolidation route originating in the development system is defined.
    To display and maintain the transport layers and routes, use the Transport Management System (transaction STMS).
    Only the system adminstrator can make changes.
    Caution:
    The tables TSYST, DEVL, TWSYS, TASYS are no longer productive as of Release 4.0A and cannot be maintained.
    Best regards,
    Menelaos

  • Changing the catalog profile when creating a QN FROM ACTION BOX in transaction QM02

    Hi All,
    When I create a quality notification from the action box in transaction QM02, the catalog profile is fetched from the material master. I want this changed so that the catalog profile is
    always copied from the QN being preocessed in QM02. (current QN)
    I am not able to locate the code where the catalog profile for the new QN(QN being created) is fetched from the material master.
    If I change the catalog profile in the material master, it works, but that is not a solution for me.
    Need the exact point where I can pass in a different catalog code.
    Also, I do not see the new QN number anywhere while debugging.
    PS: The QN is being created from the action box in transaction QM02 and not from transaction QM01.
    Thanks.

    Hi All,
    When I create a quality notification from the action box in transaction QM02, the catalog profile is fetched from the material master. I want this changed so that the catalog profile is
    always copied from the QN being preocessed in QM02. (current QN)
    I am not able to locate the code where the catalog profile for the new QN(QN being created) is fetched from the material master.
    If I change the catalog profile in the material master, it works, but that is not a solution for me.
    Need the exact point where I can pass in a different catalog code.
    Also, I do not see the new QN number anywhere while debugging.
    PS: The QN is being created from the action box in transaction QM02 and not from transaction QM01.
    Thanks.

  • Apex changing nulls to zeroes when creating Flash Charts

    Hey all,
    Apex appears to be changing Null's to Zeroes when generating the XML to fuel a graph. I want to chart this year's output by month against last year's output by month. As this year is not complete, the two lines should be different lengths. When I view the XML, Apex is "filling in" the vacant (future) months with zeroes. This causes the line for this year to continue by dropping to zero for the rest of the year. I have already tried to adjust this by changing the maximum rows for this year's series.
    Any help would be greatly appreciated. Marco, this seems to be up your alley.
    Thanks.
    Paul

    Paul,
    The best place to put it is an Application Process.
    1) Go to Shared Components and create an Application Process (say it's named MY_CHART_XML_PROCESS). The PL/SQL for the Application Process should follow this general outline, substituting your own XML-generating logic for {my chart XML}:
    owa_util.mime_header( ccontent_type => 'text/xml', bclose_header => TRUE, ccharset => 'utf-8');
    htp.p('{my chart XML}');2) Replace both occurences of "FLOW_FLASH_CHART_R#REGION_ID#" with "APPLICATION_PROCESS=MY_CHART_XML_PROCESS" in the region source for the chart that is to use this XML.
    That should do it.
    - Marco

  • Change the transaction status when creating a follow up activity

    Hello All
    We need to change the activity status if a follow up document is created from. E.g. If an activity is created type 001  then a follow-up activity type 003 as a follow up document from 001 the system automatically changes the activity status from open to in process. I need detailed steps regarding how to reach this
    Regards
    Jacopo

    See if you can "exploit" CRM_COPY_BADI and function modules CRM_STATUS_CHANGE_EXTERN to change the User status or CRM_STATUS_CHANGE_INTERN for System status.

  • Pricing date change on service order when creating confirmation.

    Hi gurus,
    I want  to change the pricing date (and recalculate prices)on service order to the date confirmation is created from the service order.I would like to know if this can be achieved by copy control BADI or order save BADI or pricing BADI ?
    Please  guide if anybody has already achieved this functionality.
    Thanks
    Dona

    Hi Dona,
    Pricing manipulation for an order can be done by using CRM_PRICING_BADI.Use the method CRM_PRICING_MERGE, here you can use the changing parameter CS_PRICING_BADI to change the pricing data.
    Hope it helps you.
    Regards,
    Shweta

  • Viewc32 is changing long to int when creating view.java

    I have copied the view and the java code generated from the view by viewc32. In the view field <b>oszStartTime </b>is a long. In java it is represented as a int. The .h file is a long. Is this the way it is suppose to work? I thought the .java file would represent the field as a long. I have created about 4 views and this is consistent for all of them. All longs are changed to ints in the .java programs.
    Thanks for the help...
    Here is my view
    VIEW GetEqmhistView
    #type     cname     fbname     count     flag     size     null
    string     iReqName     -     1     -     30     -
    string     iMsgName     -     1     -     30     -
    short     iMsgVersion     -     1     -     -     0
    string     iszTrainSection     -     1     -     2     -
    string     iszTrainSymbol     -     1     -     8     -
    string     iszTrainDay     -     1     -     3     -
    short     onSiteNumber     -     100     -     -     0
    long     <b>oszStartTime     </b>-     100     -     -     0
    char     ocSiteKind     -     100     -     -     \0
    char     oReserved     -     100     -     -     \0
    long     omdwReturnStatus     -     1     -     -     0
    long     omdwErrorCode     -     1     -     -     0
    string     omszErrorMessage     -     1     -     256     -
    END
    Here is the Java Generated:
    package com.nscorp.apps.util;
    import java.io.*;
    import java.lang.*;
    import weblogic.wtc.jatmi.*;
    import weblogic.wtc.jatmi.Utilities;
    public class GetEqmhistView extends TypedView32 implements Serializable {
    private String iReqName = null;
    private String iMsgName = null;
    private short iMsgVersion = 0;
    private String iszTrainSection = null;
    private String iszTrainSymbol = null;
    private String iszTrainDay = null;
    private short[] onSiteNumber = null;
    private int[] <b>oszStartTime </b>= null;
    private char[] ocSiteKind = null;
    private char[] oReserved = null;
    private int omdwReturnStatus = 0;
    private int omdwErrorCode = 0;
    private String omszErrorMessage = null;
    private boolean _associatedFieldHandling = false;
    public GetEqmhistView() {
    super("GetEqmhistView");
    this.onSiteNumber = new short[100];
    this.oszStartTime = new int[100];
    this.ocSiteKind = new char[100];
    this.oReserved = new char[100];
    return;
    * Gets the current state of associated field handling.
    * @return the current state (true=on, false=off)
    public boolean getAssociatedFieldHandling()
    return _associatedFieldHandling;
    * Sets the state of associated field handling.
    * @param state the desired state (true=on, false=off)
    public void setAssociatedFieldHandling(boolean state)
    _associatedFieldHandling = state;
    * Gets the value of the iReqName element of this view
    * @return The value which this element has
    public String getiReqName()
    return(this.iReqName);
    * Sets the value of the iReqName element of this view
    * @param value The value to set the element to
    * @throws IllegalArgumentException if the value is too long
    public void setiReqName(String value)
    if (value.length() > 30)
    throw new IllegalArgumentException("Data too large for iReqName");
    this.iReqName = value;
    * Gets the value of the iMsgName element of this view
    * @return The value which this element has
    public String getiMsgName()
    return(this.iMsgName);
    * Sets the value of the iMsgName element of this view
    * @param value The value to set the element to
    * @throws IllegalArgumentException if the value is too long
    public void setiMsgName(String value)
    if (value.length() > 30)
    throw new IllegalArgumentException("Data too large for iMsgName");
    this.iMsgName = value;
    * Gets the value of the iMsgVersion element of this view
    * @return The value which this element has
    public short getiMsgVersion()
    return(this.iMsgVersion);
    * Sets the value of the iMsgVersion element of this view
    * @param value The value to set the element to
    public void setiMsgVersion(short value)
    this.iMsgVersion = value;
    * Gets the value of the iszTrainSection element of this view
    * @return The value which this element has
    public String getiszTrainSection()
    return(this.iszTrainSection);
    * Sets the value of the iszTrainSection element of this view
    * @param value The value to set the element to
    * @throws IllegalArgumentException if the value is too long
    public void setiszTrainSection(String value)
    if (value.length() > 2)
    throw new IllegalArgumentException("Data too large for iszTrainSection");
    this.iszTrainSection = value;
    * Gets the value of the iszTrainSymbol element of this view
    * @return The value which this element has
    public String getiszTrainSymbol()
    return(this.iszTrainSymbol);
    * Sets the value of the iszTrainSymbol element of this view
    * @param value The value to set the element to
    * @throws IllegalArgumentException if the value is too long
    public void setiszTrainSymbol(String value)
    if (value.length() > 8)
    throw new IllegalArgumentException("Data too large for iszTrainSymbol");
    this.iszTrainSymbol = value;
    * Gets the value of the iszTrainDay element of this view
    * @return The value which this element has
    public String getiszTrainDay()
    return(this.iszTrainDay);
    * Sets the value of the iszTrainDay element of this view
    * @param value The value to set the element to
    * @throws IllegalArgumentException if the value is too long
    public void setiszTrainDay(String value)
    if (value.length() > 3)
    throw new IllegalArgumentException("Data too large for iszTrainDay");
    this.iszTrainDay = value;
    * Gets the value of the onSiteNumber element of this view
    * @return The value which this element has
    public short[] getonSiteNumber()
    return(this.onSiteNumber);
    * Gets the value of the onSiteNumber element of this view
    * @param index The element in the array to return
    * @return The value which this element has
    * @throws ArrayIndexOutOfBounds if the array index is out of bounds
    public short getonSiteNumber(int index)
    return(this.onSiteNumber[index]);
    * Sets the value of the onSiteNumber element of this view
    * @param value The value to set the element to
    * @throws ArrayIndexOutOfBounds if the array given is too large
    public void setonSiteNumber(short[] value)
    if (value.length > 100)
    throw new ArrayIndexOutOfBoundsException("Array too large for onSiteNumber");
    if (value.length < onSiteNumber.length)
    for(int i = 0; i < value.length; i++)
    onSiteNumber[i] = value;
    else
    this.onSiteNumber = value;
    * Sets the value of the onSiteNumber element of this view
    * @param value The value to set the element to
    * @param index The element in the array to set
    * @throws ArrayIndexOutOfBounds if the array index is out of bounds
    public void setonSiteNumber(short value, int index)
    this.onSiteNumber[index] = value;
    * Gets the value of the oszStartTime element of this view
    * @return The value which this element has
    public int[] getoszStartTime()
    return(this.oszStartTime);
    * Gets the value of the oszStartTime element of this view
    * @param index The element in the array to return
    * @return The value which this element has
    * @throws ArrayIndexOutOfBounds if the array index is out of bounds
    public int getoszStartTime(int index)
    return(this.oszStartTime[index]);
    * Sets the value of the oszStartTime element of this view
    * @param value The value to set the element to
    * @throws ArrayIndexOutOfBounds if the array given is too large
    public void setoszStartTime(int[] value)
    if (value.length > 100)
    throw new ArrayIndexOutOfBoundsException("Array too large for oszStartTime");
    if (value.length < oszStartTime.length)
    for(int i = 0; i < value.length; i++)
    oszStartTime[i] = value[i];
    else
    this.oszStartTime = value;
    * Sets the value of the oszStartTime element of this view
    * @param value The value to set the element to
    * @param index The element in the array to set
    * @throws ArrayIndexOutOfBounds if the array index is out of bounds
    public void setoszStartTime(int value, int index)
    this.oszStartTime[index] = value;
    * Gets the value of the ocSiteKind element of this view
    * @return The value which this element has
    public char[] getocSiteKind()
    return(this.ocSiteKind);
    * Gets the value of the ocSiteKind element of this view
    * @param index The element in the array to return
    * @return The value which this element has
    * @throws ArrayIndexOutOfBounds if the array index is out of bounds
    public char getocSiteKind(int index)
    return(this.ocSiteKind[index]);
    * Sets the value of the ocSiteKind element of this view
    * @param value The value to set the element to
    * @throws ArrayIndexOutOfBounds if the array given is too large
    public void setocSiteKind(char[] value)
    if (value.length > 100)
    throw new ArrayIndexOutOfBoundsException("Array too large for ocSiteKind");
    if (value.length < ocSiteKind.length)
    for(int i = 0; i < value.length; i++)
    ocSiteKind[i] = value[i];
    else
    this.ocSiteKind = value;
    * Sets the value of the ocSiteKind element of this view
    * @param value The value to set the element to
    * @param index The element in the array to set
    * @throws ArrayIndexOutOfBounds if the array index is out of bounds
    public void setocSiteKind(char value, int index)
    this.ocSiteKind[index] = value;
    * Gets the value of the oReserved element of this view
    * @return The value which this element has
    public char[] getoReserved()
    return(this.oReserved);
    * Gets the value of the oReserved element of this view
    * @param index The element in the array to return
    * @return The value which this element has
    * @throws ArrayIndexOutOfBounds if the array index is out of bounds
    public char getoReserved(int index)
    return(this.oReserved[index]);
    * Sets the value of the oReserved element of this view
    * @param value The value to set the element to
    * @throws ArrayIndexOutOfBounds if the array given is too large
    public void setoReserved(char[] value)
    if (value.length > 100)
    throw new ArrayIndexOutOfBoundsException("Array too large for oReserved");
    if (value.length < oReserved.length)
    for(int i = 0; i < value.length; i++)
    oReserved[i] = value[i];
    else
    this.oReserved = value;
    * Sets the value of the oReserved element of this view
    * @param value The value to set the element to
    * @param index The element in the array to set
    * @throws ArrayIndexOutOfBounds if the array index is out of bounds
    public void setoReserved(char value, int index)
    this.oReserved[index] = value;
    * Gets the value of the omdwReturnStatus element of this view
    * @return The value which this element has
    public int getomdwReturnStatus()
    return(this.omdwReturnStatus);
    * Sets the value of the omdwReturnStatus element of this view
    * @param value The value to set the element to
    public void setomdwReturnStatus(int value)
    this.omdwReturnStatus = value;
    * Gets the value of the omdwErrorCode element of this view
    * @return The value which this element has
    public int getomdwErrorCode()
    return(this.omdwErrorCode);
    * Sets the value of the omdwErrorCode element of this view
    * @param value The value to set the element to
    public void setomdwErrorCode(int value)
    this.omdwErrorCode = value;
    * Gets the value of the omszErrorMessage element of this view
    * @return The value which this element has
    public String getomszErrorMessage()
    return(this.omszErrorMessage);
    * Sets the value of the omszErrorMessage element of this view
    * @param value The value to set the element to
    * @throws IllegalArgumentException if the value is too long
    public void setomszErrorMessage(String value)
    if (value.length() > 256)
    throw new IllegalArgumentException("Data too large for omszErrorMessage");
    this.omszErrorMessage = value;
    public void _tmpresend(DataOutputStream encoder)
    throws TPException, IOException {
    int lcv;
    try {
    Utilities.xdr_encode_string_length(encoder,iReqName, 30);
    Utilities.xdr_encode_string_length(encoder,iMsgName, 30);
    encoder.writeInt(iMsgVersion);
    Utilities.xdr_encode_string_length(encoder,iszTrainSection, 2);
    Utilities.xdr_encode_string_length(encoder,iszTrainSymbol, 8);
    Utilities.xdr_encode_string_length(encoder,iszTrainDay, 3);
    for (lcv = 0; lcv < 100; lcv++) {
    encoder.writeInt(onSiteNumber[lcv]);
    for (lcv = 0; lcv < 100; lcv++) {
    encoder.writeInt(oszStartTime[lcv]);
    for (lcv = 0; lcv < 100; lcv++) {
    encoder.writeInt((int)ocSiteKind[lcv]);
    for (lcv = 0; lcv < 100; lcv++) {
    encoder.writeInt((int)oReserved[lcv]);
    encoder.writeInt(omdwReturnStatus);
    encoder.writeInt(omdwErrorCode);
    Utilities.xdr_encode_string_length(encoder,omszErrorMessage, 256);
    catch (IOException ie) {
    System.out.println("Error encoding view buffer: " + ie);
    return;
    public void tmpostrecv(DataInputStream decoder, int recvsize)
    throws TPException, IOException {
    int lcv;
    iReqName = Utilities.xdr_decode_string(decoder, null);
    iMsgName = Utilities.xdr_decode_string(decoder, null);
    iMsgVersion = (short)decoder.readInt();
    iszTrainSection = Utilities.xdr_decode_string(decoder, null);
    iszTrainSymbol = Utilities.xdr_decode_string(decoder, null);
    iszTrainDay = Utilities.xdr_decode_string(decoder, null);
    for (lcv = 0; lcv < 100; lcv++) {
    onSiteNumber[lcv] = (short)decoder.readInt();
    for (lcv = 0; lcv < 100; lcv++) {
    oszStartTime[lcv] = decoder.readInt();
    for (lcv = 0; lcv < 100; lcv++) {
    ocSiteKind[lcv] = (char)decoder.readInt();
    for (lcv = 0; lcv < 100; lcv++) {
    oReserved[lcv] = (char)decoder.readInt();
    omdwReturnStatus = decoder.readInt();
    omdwErrorCode = decoder.readInt();
    omszErrorMessage = Utilities.xdr_decode_string(decoder, null);
    return;

    Hi Corey,
    The behavior you are seeing is expected. A long in Tuxedo is a 32 bit value. That maps to a Java int data type which is also a 32 bit value.
    Regards,
    Todd Little
    BEA Tuxedo Engineering

Maybe you are looking for

  • IMac loudly whirs and freezes. please help!

    I have a 27" iMac purchased November 2009. Have tried searching discussions for help but am unsure what to call the problem as it is so peculiar! Several times an hour it makes a strange loud whirring noise (which does not appear to be a fan to me as

  • How to Write a file from hex format to another format

    hi I am trying to create a file (IBM AFP-printer format) from the hex file which i have created after reading that IBM afp file. Now i have to do some changes in that hex file data and store it back to the same format. I have tryed storing it using:

  • Does 40S51U LED TV support HDMI/ARC?

    I want to add a soundbar to my recently purchased Toshiba 40" LED TV model 40S51U. Currently have (Uverse) HDMI and blue-ray HDMI connected. From other posts it seems that HDMI quality audio cannot pass through to the TV's optical audio output. This

  • Need Help to write SQL Query

    Hi Experts, I have one requirement as below. I have two tables say test_1 and test_2 with same structure Now what i want to accomplish is loop through every record in table table_1 and look for records that have no corresponding entries in table tabl

  • House bank account ID

    Hi! I faced a problem while posting FI document - I can enter House bank in it, but I cannot enter House bank ID. I checked field status for GL account, the field House bank stands as optional. Looking forward for help!