How can i pass the PROPERTY_FALSE  as string

Hi,
How can i pass the PROPERTY_FALSE & PROPERTY_TRUE as string to
     Set_Item_Property('MY_BLOCK.MY_ITEM',ENABLED,PROPERTY_FALSE);
my requirement is to write a procedure like enable_fields(P_PROERTY_VALUE ..) that enable or disable many items based on the value that i pass.
Set_Item_Property('MY_BLOCK.MY_ITEM',ENABLED,P_PROERTY_VALUE );
Thanks in advance.

Infact , property_false and property_true are not strings, They are constants with values 5 and 4 respectively.
So where ever you want to have property_false, pass 5
and property_true , pass 4
But usually we dont follow this method , as the value of the constants may vary from version to version.
So in your procedure say, pass 1 for enable and 2 for disable
procedure (................, p_property number) is
m_set_enable number ;
Begin
If p_property = 1 then
   m_Set_enable := property_true;
else
   m_Set_enable := property_false;
end if;
set_item_property('item1',enabled,m_set_enable);
End;Edited by: Dora on Dec 29, 2009 2:36 PM

Similar Messages

  • How can I pass the value to another frame?

    Hi all,
    The following is part of my coding of a frame. Once i click on the jButton2, the selected value will be stored into a variable named NAME and the value will be displayed by a label in same frame. At the same time, a new frame named TESTING3 will be set to visible.
    private void jButton2ActionPerformed(java.awt.event.ActionEvent evt)
    // TODO add your handling code here:
        String name = (String)jList1.getSelectedValue();
        jLabel1.setText(name);       //display the value in a label in same frame
        new testing3().setVisible(true);     //a new frame set to visible
    }      Question: How can I pass the value to TESTING3 frame and display it on that frame?
    Thanks,
    ning.

    just make an archive that save that variable and them get them from de clase were you save it
    public class sav {
    String n;
    public sav {
    n="";
    public void addn(String x){
    n=x;
    public String shown(){
    return n;
    and them save it from the frame
    sav sun = new sav();
    sav.addn(f);
    them call it from the other frame
    sav sin = new sav();
    String s = sin.shown();
    label.setText(s);
    and i think thats you want to do if its not please explain me better
    bye

  • How can i pass the Input value to the sql file in the korn shell ??

    Hi,
    How can i pass the Input value to the sql file in the korn shell ??
    I have to pass the 4 different values to the sql file and each time i pass the value it has to generate the txt file for that value like wise it has to generate the 4 files at each run.
    can any one help me out.
    Raja

    Can you please more elaberate., perhaps you should more elaberate.
    sqlplus is a program. you start it from the korn shell. when it's finished, processing control returns to the korn shell. the korn shell and sqlplus do not communicate back and forth.
    so "spool the output from .sql file to some txt file from k shell, while passing the input parameters to the sql file from korn shell" makes no sense.

  • How can I pass the photos from one iphone to another?

    how can I pass the photos from one iphone to another?

    Use the Beaming feature. See the info at the ? In iPhoto for iOS.

  • How can we pass the select-option value to modulepool program?

    hi,
      how can we pass the select-option value to modulepool program ?
      Because if i declared select-options in executable program and i used SSCRFIELDS to define push buttons in selection screen.
               My requirement if enter the values to select-options and press UPDATE pussbotton then i want call screen which contains tablecontrol.
               How i get select-option values to PAI of call screen for getting the data from database table to my internal table?

    Oh I thought that you have selection-screen and again you are working on dialog programming.
    if you want to use select-option directly in module pool then it is not possible.
    but you can do other way.
    create two varaiables
    data : v_kun_low like kna1-kunnr,
             v_kun_high like kna1-kunnr.
    use these two variables in layout ,let user knows that he can not give options like gt,lt,eq ,it will be always BT.
    and also when you see normal report program,you can use multiple values in either low or high,but here it is not possibel.
    use can enter only low value and high value.
    when you come to program point of view
    declare one range
    ranges r_kunnr for kna1-kunnr.
    do the coding like
    r_kunnr-low = v_kun_low.
    r_kunnr-high = v_kun_high.
    r_kunnr-options = 'BT'.
    r_kunnr-sign = 'I'.
    append r_kunnr.
    now you can use r_kunnr in select query ,it will work like select-option.
    other than this there is no option.
    Thanks
    Seshu

  • How can i pass the value one from to another form?

    hi all
    how can i pass the value one from to another form  with out use it when ever i want to needed this value that ican useit?
    like i have two fields U_test1 and U_test2  table name @AUSR
    that i have  four form  A! , A2,A3,A4    please tell me in details....?

    Hi,
    U can assign the values to some variables and access then in ur required forms.
    Vasu Natari.

  • How can we pass the entire rows of a table to a web service in a VC model ?

    Hi,
    On the click of the submit button, I have to pass the rows of two tables into an enterprise service. This service also takes other fields of a form as an input.
    How can we pass the entire rows of a table into a service ?
    Regards,
    Nitin

    Hi Nitin,
    It seems that you have two or three different structures to pass data using your webservice. In your main question, two tables, you can join both in one table and from there call the webservice. In order to pass the entire table you need:
    1. Draw a line between your joinned table and your service,
    2. Map the fields,
    3. Create a 'SUBMIT' in your table tool bar. Right click on your table and choose 'Create Toobar', '+', name and choose 'Submit' as your event.
    4. Go to Configure Element (Table View) 'Multiple' at Selection Mode.
    Reward points if helps you to solve your question.
    Regards,
    Gilson Teixeira

  • How can we pass the master report value in to detail  report

    Hi All,
    My question is how can I pass the master report value in to detail (Child) report filter?
    I mean I have one master report if I click on employee name then I have to pass the employee id in to details report filter. Then detail report will display data for that particular employee.
    How can I achieve this one in OBIEE?
    Please help me to resolve this issue. Thanks in advance for your time and support.

    In that case, you should look at using Go Url. In your column formula for the employee name, create a hyperlink to the detail report and pass the employee id.
    Take a look at this post: Re: Dyanmic display of the Image Link URL
    Thanks!

  • How can i pass the name of the file polled by the file adapter to next step

    Hi XI guru's ,
    How can i pass the name of the file polled by the file adapter to next step in a BPM..?
    regards,

    Use Adapter-Specific Message Attributes and map that value in udf to the BPM message.
    Also see this
    /people/michal.krawczyk2/blog/2005/06/11/xi-how-to-retrieve-messageid-from-a-bpm
    Regards,
    Prateek

  • How can i pass the  parameter for strored procedure from java

    dear all,
    I am very new for stored procedure
    1. I want to write the strored procedure for insert.
    2. How can i pass the parameter for that procedure from java.
    if any material available in internet create procedure and call procedure from java , and passing parameter to procedure from java

    Hi Ram,
    To call the callable statement use the below sample.
    stmt = conn.prepareCall("{call <procedure name>(?,?)}");
    stmt.setString(1,value);//Input parameter
    stmt.registerOutParameter(2,Types.BIGINT);//Output parameter
    stmt.execute();
    seq = (int)stmt.getLong(2);//Getting the result from the procedure.

  • How can i pass the  segments and fields to the ORDERS05 IDOC

    Hi All,
    I want to use ORDERS05 Idoc type for creating sales order. How can I pass the order type, sales org., distr. channel, division, sold-to-party, material and quantity to the Idoc?
    please help me out in this.
    thanks in advance
    jasmine

    Hi,
    Goto WE19 TC and there select your IDOC and there u can pass the data.
    Regards,
    Phani

  • How can i pass the music from my ipod touch to my mac

    how can i pass the music from my ipod touch to my mac

    If the music on the iPod was purchased through iTunes you can try Transfer Purchases.
    Connect the iPod to the Mac and launch iTunes. Right click on the iPod name on the left side of the iTunes window under the devices heading and select Transfer Purchases. That should transfer the music into the iTunes library on the Mac.
    iTunes Store: Transferring Purchases

  • How can I pass the adress of a cluster to a dll

    Hi,
    I need to pass the adress of the struct(cluster) below from labview 7.1 to a dll written in C++.
    Can anyone help ?
    typedef struct
    unsigned char DPV1_Supported;
    unsigned char Max_Channel_Data_Length;
    unsigned char Extra_Alarm_SAP;
    unsigned int C1_Response_Timeout;
    unsigned char NormParameters [7];
    unsigned char UserParamLength;
    unsigned char UserParameters [248];
    unsigned char ConfigLength;
    unsigned char Configuration [256];
    unsigned char OutputLength;
    unsigned char OutputData [256];
    unsigned char InputLength;
    unsigned char InputData [256];
    unsigned char NormDiagnosis [6];
    unsigned char UserDiagLength;
    unsigned char UserDiagnosis [256];
    BOOL bCommunicate;
    BOOL bOperate;
    BOOL bNewDiag;
    } DP_DATA;
    Thanks,
    Andreas

    Can you explain me the difference between LabView arrays and C arrays more detailed.
    A C array of THINGs is a pointer to a THING. The THING is followed in memory by another THING, etc., etc.
    There is no difference between a pointer to a THING and an array of THINGs, (except the expectation of the user is that the array contains more than one THING). But physically, they are both pointers to a THING.
    In C, if you pass an array to some function which operates on it, you also have to have some convention to separately pass the number of items in the array. The array itself has no way of indicating its own size. A C string is terminated by a null byte - that's one way. Other functions require you to pass a separate parameter to indicate how many elements are in the array.
    A LabVIEW array is a different beast. It is a HANDLE, not a pointer. When you resolve the handle, you interpret the first 4 bytes as an I32 with the current dimension size in it. If you have a 2-D array, you interpret the first TWO I32s as the current dimension size. If you have a 3-D array, you interpret the first THREE I32s, etc. etc.
    Immediately after the dimension size(s), follows the data itself.
    Read this for the official explanation. It's a good idea to print this out and keep it around.
    http://zone.ni.com/devzone/conceptd.nsf/webmain/370DFC6FD19B318C86256A33006BFB78?opendocument target=_blank
    Why I can't put an array inside a cluster
    I didn't mean to imply that you can't do that. You can. LabVIEW will handle it correctly. But you can't pass the cluster to C and have it understood, using ordinary C array declarations.
    It's legal in LabVIEW to have a cluster with an I32 followed by an array of DBLs, for example.
    But if you pass that thing to a DLL or CIN, what gets passed is a pointer to an 8-byte chunk of memory.
    The first four bytes are the I32 value. The second four bytes are a HANDLE to the array data. The handle points to a pointer, the pointer points to a chunk of memory, the first four bytes of that chunk are the dimension size.
    The bottom line is you can't treat it as an array in LabVIEW, and also as an array in C.
    You have three choices:
    1... Change the C code to understand LabVIEW arrays. There are lots of library tools to help you deal with LabVIEW arrays.
    2... Change the LabVIEW code to fake the structure that C requires. If you have an array of 256 Bytes, you'll have to fake that with a CLUSTER of 256 U8s. If you have an array declared as int[123]. you'll have to make a CLUSTER of 123 I32s. You can make the data fit the C declaration, but you have to study the details.
    3... Duplicate the functionality of your C code in LabVIEW.
    Hope that helps.
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks

  • How can I pass the web template name dynamically to a container

    Hi Experts ,
    I have a container web item in 7.0
    I would like to pass the name of the web template to be displayed in that web item dynamically .
    how can I achieve the same .
    How can i change the visibility settings of a container using a javascript .
    Thanks in advance for your help .
    Regards
    Nikhil

    Hi Nikhil,
    When you say that you want to display the name of the template for the container item, I think you are talking about the tray caption for the item - is that correct? You can use a text item to access the web template name, but in the caption of the container item, you cannot specify other web items.
    What you can do it to use a group item in the template and embed your container layout in it. In the group item, you have an option of specifying a caption using another web item where you can reference this text item.

  • How can i pass the parameters at runtime

    Dear all
    in process request
    i am getting org_id using page.context.get orgid()
    in runtime how can i pass this id to vo's and lov's
    Regards
    Sreekanth

    Hi Srikanth,
    In Process Request:--
    String orgId= page.context.get orgid();
    System.out.println("Org Id is "+orgId);
    Serializable[] params = {orgId};
    am.invokeMethod("executeVO", params);
    In AM:--
    Public void executeVO(String OrgId)
    XXVOImpl lvo = getXXVO1();
    if (lvo != null)
    lvo.setWhereClause("ORG_ID = :1");
    lvo.setWhereClauseParams(null);
    lvo.setWhereClauseParam(0, OrgId);
    lvo.executeQuery();
    System.out.println("Query Executed");
    Thanks
    --Anil                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

Maybe you are looking for

  • Service Desk: Support team determination - Action Logs error

    Hello experts, I have customized the service desk functionality in Solman 7.0 EHP1 according to SAP help and the various (very helpful blogs from sdn). When I create a message from satelite system the "Support Team" field is already filled with the c

  • Excel in place

    When you transfer ALV Grid to excel, filter totals and subtotals are not transferred. Is there a way to transfer the Grid as she appears on the screen or do i have to do it manually using DOI classes. Regards,

  • AppStore is extremely slow in Shanghai, please help!!!!!!!!

    Hi Guys, Do you encounter same slowness in Shanghai? When I visit AppStore on my iPad, it behaves extremely slow!!!! I'm in Shanghai (China). The weird thing is when I visit AppStore via mobile network like China Unicom or China Mobile, it is slow bu

  • ITunes only updates 5-30 songs at a time

    I have a 60gb 5G iPod, with latest versions of updater and iTunes. Each time I connect the iPod, iTunes only syncs a few songs, before ceasing (there is no error message). I then have to instruct the iPod to update again, before the same thing happen

  • Chatter message size default problem

    I generally have my Chatter initial message intake set to 4000 bytes. When traveling overseas I reduce it to 275 (to reduce charges). Some message come in at 275, others at my previous 4000 default.  How can I get them all at 275?  Thx. Post relates