Any way to know whether the column of matrix is active at run-time?

Hi all,
I have posted similar question earlier but it was for setting the column prefrences . In a system form, I am having some user defined columns to which I am copying some data. If they are not active, and if I try to do
Matrix.Columns.Item("U_STNLineno").Editable = True,
It gives me 'form item is not editable' error.
I can fetch the active status from CPRF table, but it  updates the status only after SAP B1 is closed.
If atleast, I know, at run time, tht the column is not active, I can prompt user a warning to make it active from form settings.
But, How do I know whether the column is active or not?
any clue?
Thanks in advance..
Binita

Maybe is better solution, but I`m doing it that I`m trying in system objects to do
Matrix.Columns.Item("U_STNLineno").Editable = True
between try catch statement and if is there any error which contains "editable" sentence, I know that it is`nt allowed.
it should be done as
on error resume next
Matrix.Columns.Item("U_STNLineno").Editable = True
if Err.Description <> "" then
-- cannot set
end if
on error goto 0
Petr

Similar Messages

  • Is there any way to find whether the private key is capable of 40 bits encr

    Is there any way to find whether the private key is capable of 40 bits encrypted or 128 bits encrypted.

    kanth_kanth wrote:
    Is there any way to find whether the private key is capable of 40 bits encrypted or 128 bits encrypted.Assuming an RSA private key, to get the number of bits extract the length of the 'modulus' in bytes and multiply by 8. How you extract the modulus depends on what format the private key has been stored in.

  • Any way to know if the "Remember" option of the Security panel is active or inactive?

    Hello, is there any way to know if the "Remember" checkbox of the Security panel is active or inactive? I just need this for a "local" domain application that access to the camera and the microphone. The camera.muted property es not enough because I need a permanent access, and if the "Allow" option is active but the "Remember" option is not active, I have no way to know if I have full access to the camera and microphone.
    Regards.

    Hi,
    IMHO testing for an instance of Applet will not solve the problem because it seems that godbert has an (J)Applet including a main method which can be started as application and as applet.
    One solution for solving the problem could be to store at startup if the program was started as applet or application. Storing this in the system properties makes it available for other components, too.
    class MyApplet extends JApplet {
      static {
        System.setProperty( "startedAsApplet", Boolean.TRUE.toString() );
      private boolean isStartedAsApplet() {
        return ( Boolean.getBoolean( "startedAsApplet" ) );
      private void setStartedAsApplet( boolean startedAsApplet ) {
        System.setProperty( "startedAsApplet", new Boolean( startedAsApplet ).toString() );
      public void startLikeApplet() {
        setStartedAsApplet( false );
        init();
        start();
        stop();
      public static void main( String[] args ) {
        MyApplet myA = new MyApplet();
        myA.startLikeApplet();
    }Hope that helps,
    Alex

  • Is there any way to know whether a report server is running in solaris

    Hi
    Could you please tell me is there any wat to know whether a report server is running in solaris or not?
    And if running what is the name of the Report server?
    Thanks

    On windows, you can read the environment-variable "OS" with the following code. Maybe there is somethins similar on Solaris.
    function BeforeReport return boolean is
      vcOs VARCHAR2(2000);
    begin
      tool_env.getvar('OS', vcOs);
      srw.message(1,vcOs);
      return (TRUE);
    end;

  • Is there any way to know that the UI has been updated due to a bind change?

    Hi
    For the given code snippet
    var c=Circle{
      centerX:10  
      centerY:10
      fill:Color.YELLOW
      onMouseClicked:function(event){
          c.fill=Color.RED;
    printNodeAsImage(filename) //to a file
    }

    Oops..Got posted before I could finish the query
    Hi
    For the given code snippet
    var c=Circle{
      centerX:10  
      centerY:10
      fill:Color.YELLOW
      onMouseClicked:function(event){
          c.fill=Color.RED;
          printNodeAsImage(c, filename) //to a file
    }Let us assume that printNodeAsImage(c,filename) saves the circle node with the current color to a file. See http://rakeshmenonp.wordpress.com/2010/04/26/javafx-1-3-save-as-image/ for a implementation of this function
    What we notice instead is that printNodeAsImage(c, filename) actually saves the node with the color YELLOW instead of RED. Is there any way to know deterministically when the UI has been updated due to a variable value change (or because of binding). (In this case the transition from Yellow to Red) So that we can perform other operations on the UI state - like saving it to a file
    Regards,
    Dhruva Ray

  • Is there a way to know whether the 4.3 software update has taken?  Just did it on my IPhone 4 but went to download an app I wanted and it says I need the update to do it??

    Just updated Iphone 4 to the 4.3 software update yet when I tried to download an app that requires the upgrade-it says I have to do the upgrade?

    Verizon iPhone 4 cannot update to Firmware 4.3 yet. Currently it is at 4.2.8 so you are up to date.

  • Any way to know the source table of a Form at  runtime

    Hi,
    Is there any way to know the source table/view.. of a form at run time.
    Thanks in advance

    Hi,
    But Get_Block_Property( ..., DML_DATA_TARGET_NAME)
    should be coded, I mean any way to know at the
    runtime, as like we get the Error from the
    Help->Display Errors.If you are asking if there is a way to get this information from the default menu, then the answer is no. However, you can create your own custom menu, or a button in your form that displays that information using the Get_Block_Property when you click on your menu item or button.

  • How can I know whether the Servlet is sending a response!!!

    Hello,
    My question is this :
    How do I know whether that server outputstream is sending me a response or not?
    I have opened the Client InputStream to recieve a response from a servlet,but how
    can i be sure that i will receive a response from the servlet?
    I cud be waiting for an 15 expecting a response but havent received one..
    Is there any way to check whether the servlet is sending me a response?
    The reason I am asking is this.
    I have written a Java Client that connects to a servlet.It has to wait for a
    response from the servlet.It will wait for 5 seconds and if this doesnt recieve
    a response,it will return back else it will display the response.
    I have set a timer on my client for 5 seconds and a timer on the servlet for 15 seconds.
    Essentially,when the client connects,the servlet response is held for 15 seconds
    and the client tries for 5 seconds.
    But the client is unable to exit without a response.The response comes back in 15 seconds.
    The client shud have the message 'Connection Timed Out' after 5 seconds.
    This means there is an error somewhere.
    As the response takes 15 seconds,the client shudnt recieve one.
    So,is there a way I can block the servlet response?
    I am using threads and Inner classes for the timer purposes..
    Please can any one help me?
    ajay
    Client code:
    public class HttpHandler {
    private static String sURL="localhost";
    static String sMessage="Hello Server..Client sending Data";
    static DataInputStream dis = null;
    static HttpURLConnection hpCon=null;
    public static void main(String[] args)
    sendData(sMessage);
    public void TimerTest() {
    NewThread nt = new NewThread();
    public static void sendData(String sMess)
    String response=null;
    try{
    // Invoke Timer
    new HttpHandler.TimerTest();
    URL url=null;
    String uri = "http://" + sURL + ":8080/servlet/threads.Recieve_Http_Data1";
    url = new URL(uri);
    hpCon=null;
    hpCon = (HttpURLConnection)url.openConnection();
    hpCon.setDoOutput(true);
    hpCon.setDoInput(true);
    // Transfer Data over http
    DataOutputStream dos = new DataOutputStream(hpCon.getOutputStream());
    dos.writeUTF(sMess);
    }catch(IOException e)
    {System.out.println("Error in Client " + e); e.printStackTrace();}
    } // End of Method sendData
    // Inner Class
    class NewThread extends Thread
    String response;
    int i=0;
    NewThread()
    start();
    public void run()
    try {
    while(i < 5)
    System.out.println(i);
    Thread.sleep(1000);
    try {
    dis = new DataInputStream(hpCon.getInputStream());
    response = dis.readUTF();
    // If response recieved, break off else Loop back.
    if(dis !=null)
    System.out.println("SERVER RESPONSE : " + response);
    dis.close();
    break;
    }catch(IOException e){System.out.println("Here : " + e);}
    i++;
    } // End of While.
    }catch(InterruptedException e){}
    The Servlet
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.util.*;
    import java.io.*;
    import java.sql.*;
    import java.math.*;
    public class Recieve_Http_Data1 extends HttpServlet {
    private static final String CONTENT_TYPE = "text/html";
    public void doGet(HttpServletRequest request,
    HttpServletResponse response)
    throws ServletException, IOException
    doPost(request,response);
    public void doPost(HttpServletRequest request,
    HttpServletResponse response)
    throws ServletException, IOException
    System.out.println("Server Ready to receive Message from application :");
    System.out.println();
    BufferedReader br=null;
    // Data Read by the Servlet
    String sMess="";
    DataInputStream dis = new DataInputStream(request.getInputStream());
    sMess = dis.readUTF();
    System.out.println("Received from Client: " + sMess);
    // Send response back after 15 seconds Only.
    try {
    for(int i=0;i<15;i++)
    System.out.println(i);
    DataOutputStream dos = new DataOutputStream(response.getOutputStream());
    String sResponse = "Hello Client...This is server sending response";
    dos.writeUTF(sResponse);
    Thread.sleep(1000);
    }catch(InterruptedException e){}

    I don't know whether you solve your problem or not! Anyway, I have the same problem. The program hangs when getInputStream is called.
    DataInputStream dis = new DataInputStream(request.getInputStream());
    If you have the answer, please let me know. Thanks!!

  • Is there any way to know when (and/or whether) a particular tv season will be available for purchase on itunes.  i'm particularly interested in the 2nd season of "homeland," the 5th season of "damages" and the 7th season of "dexter."  thanks.

    is there any way to know when (and/or whether) a particular tv season will be available for purchase on itunes.  i'm particularly interested in:
         the 2nd season of "homeland,"
         the 5th season of "damages"
         the 7th season of "dexter."
    thanks.

    Thanks. But the disc inspector only appears to let me change things like where the title menu button takes you, not detailed user operations. I have pretty much given up on this being anything other than a giant hassle, but if anybody knows whether a script could do this, I would be eternally grateful.

  • I have downloaded a Audio Book from Itunes Store, but rencently i have had to reinstall windows, is there any way to re-download the audio book from Itunes, i know that the audio books are one time downloads, but is there any way to get the audio book

    I have downloaded a Audio Book from Itunes Store, but rencently i have had to reinstall windows, is there any way to re-download the audio book from Itunes, i know that the audio books are one time downloads, but is there any way to get the audio book back as i have already paid for it once and i would not like to pay for it twice.

    If you haven't got a backup copy and if it's still in the store then you can try contacting iTunes support and see if they will grant you a re-download (there is no guarantee that they will) : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page

  • Any way to know the last location of a erased device?

    Hi, pals.
    I want to know if it is possible to know the location where a device started being erased. I'll briefly tell you the circumstances:
    -. Last May, 20th, in the morning —the approximated time is important— my iPod Touch (5th gen.) disappeared. Not sure if it was stolen or accidentaly sent to the trash (the physical trashcan, you know).
    -. I can not tell it for sure, but I think on the morning or noon of May, 21st, I commanded iCloud to erase the device, because by that time I was almost completely sure I wouldn't get it back. Until that moment, I tried to track it several times on the same web with no results.
    -. I have received a message from iCloud this afternoon (June, 10th). I will translate it from Spanish, for I don't know what the exact message in English is, but I guess you'll get the main idea:
    Elias' iPod Touch started being erased at 22:20, May, 20th, 2013. Every multimedia file, data and settings will be permanently deleted.
    If you recover your iPod Touch, it is possible that some services will not start inmediately after its restoration.
    I received the email from iCloud some 2 hours ago. If I log on iCloud right now and select the location of my iPod on Find my iPhone, it says: 'Content erased 2 hours ago'.
    It also says: 'The location of this iPod Touch will not be updated because its content has been deleted'.
    Here are my main questions:
    1.- What is the right time of the erasing? May, 20th —as the email says— or 2 hours ago, on June, 10th —as iCloud states—?
    2.- I am pretty sure I did not command the iPod to be erased as soon as May, 20th. Would iCloud tell me if the device has been erased, even if the process started before I set it?
    3.- In case the answer to question #2 is affirmative, and it was actually erased on May 20th, why does iCloud send me that message today? Aren't the settings on the device supposed to have been deleted 20 days ago? Isn't the iPod supposed not to be linked to my iTunes account anymore? I guess that if it was erased 20 days ago, and if my iTunes account isn't active on it, it wouldn't know it's mine even if it was connected to the Internet today.
    4.- And the question: Is there any way to know the location where the iPod started being erased? This last one is important for it would help me know if the iPod was stolen or accidentally dumped.
    I will thank your replies. Cheers,
    Elías.

    Only if you had previously installed an app that would periodically email you its location. Not that the iPod has to br on and connected to the internet.

  • [help]how to know whether the given column exists in the table or not????

    Hi all, can anyone tell me how to write a C# code help me to know whether the given field exists.
    If it doesnt exists then i want to alter the table to include this column also
    I am able to write the code for alter table but i m not sure how do i check for its existence/nonexistence
    My Altering code
    {color:#800000}cmd.CommandText = "alter table " + row.ToString() + " add(" + sQuality + " varchar2(50), " +
    sTimeStamp + " varchar2(50), " +
    sValue + " varchar2(50))";
    cmd.CommandType = CommandType.Text;
    cmd.ExecuteReader();
    {color}

    Just iterate the datatable after completion and check for your column.
            public static DataTable MaterializeTableStructure(string _connectionString, string _tableName)
                DataSet ds = null;
                using (OracleConnection _oraconn = new OracleConnection(_connectionString))
                    try
                        _oraconn.Open();
                        string sql = "SELECT COLUMN_NAME, DATA_TYPE, NULLABLE, DATA_LENGTH, DATA_PRECISION, DATA_SCALE FROM user_tab_columns where table_name='" + _tableName + "'";
                        using (OracleCommand cmd = new OracleCommand(sql, _oraconn))
                            cmd.CommandType = CommandType.Text;
                            using (OracleDataAdapter da = new OracleDataAdapter(cmd))
                                ds = new DataSet("MaterializeTableStructure");
                                da.Fill(ds);
                    catch (OracleException _oraEx)
                        throw (_oraEx); // Actually rethrow
                    catch (System.Exception _sysEx)
                        throw (_sysEx); // Actually rethrow
                    finally
                        if (_oraconn.State == ConnectionState.Broken || _oraconn.State == ConnectionState.Open)
                            _oraconn.Close();
                if (ds != null)
                    return ds.Tables[0];
                else
                    return null;
            }r,
    dennis

  • How do we know whether the materials maintaine any sales org?

    Hi All, as an ABAPer, how do we know whether the materials maintaine any sales org?

    Hi,
    1.Go to the Table MVKE (Sales Data for Material)
    2.This relates the material with sales organization & distribution.
    3.Give the sales Organization and u will find all the material that correspondance to the sales org.
    Regards,
    Jagadish

  • Is there any way I can cancel the update to ios 8? My iphone is in the stage of having to connect to iTunes to finish the update. I don't have iTunes on a computer so I could never back my phone up which I didn't know you had to. Help!

    Is there any way I can cancel the update to ios 8? My iphone is in the stage of having to connect to iTunes to finish the update. I don't have iTunes on a computer so I could never back my phone up which I didn't know you had to. Help!

    If your phone is in recovery mode (You see the iTunes graphic on the phone), you MUST connect the device to a computer and restore the operating system.  There is no supported way to get around it.  The device had a problem installing the update and it crashed.  Sorry.

  • Sir, the subject is, I do not know the original owner Will helped me know that the owner or on the way to end this problem, or any way to communicate with the person in question

    Sir, the subject is, I do not know the original owner Will helped me know that the owner or on the way to end this problem, or any way to communicate with the person in question

    This is a user to user forum.  You are not addressing Apple.  It appears that you may be having issues related to Activation lock: ( http://support.apple.com/kb/PH13695).  If you cannot contact the original owner to have them remove activation lock, you should return the device for a refund.
    HTH

Maybe you are looking for

  • Macbook connected to Apple M8536 through AVI-DVI adaptor stopped working

    have a macbook pro which was hooked to an Apple M8536 23 inch LCD Monitor (the acrylic one) and working fine. I was never able to turn the monitor on or off by its switch under the screen, instead I was just hooking it up live to the dvi port on my m

  • Radio buttons don't uncheck when another button is checked

    I have this strange problem with my radio buttons. I was taught that when a radio button is checked any other button that is checked becomes unchecked, but that's not what is happening here. This form is part of a php data base; therefore, the value

  • FI  questions : Enter G/L account document System display err

    Enter G/L account document, When i save,system Display: Local logical system is not defined. how i can do? Thanks

  • Export functionality save/replace all

    Is there any way to replace all files by an export?  It is annoying to have to overwrite each and every file when I export all pages from a fireworks project after having exported once before. There should be a checkbox allowing the user to export an

  • Import Strings with "newline"-Symbol by DTW

    I try to import data from excel (*.txt - Unicode) with "newline" in text-Strings ("/n") with DTW Tool into a TEXT fiels in SAP B1 DB (items). SAP Icnore the "newline" - Symbol, after the import. How can I format the text? which is the correct indicat