How to make view disable dynamically

Hi experts,
i want to view disable dynamically for this i am not using any view container,can you please suggest me.
Thanks in Advance,
Edited by: Lavanya YH1504 on Sep 13, 2010 7:21 AM

Hi,
i want to disable the view at the time of display  based on some condition ,for this i didn't use any view container it is simple view for this where i want to write the code (is in wd_init),can u suggest me with some sample code.
thanks in advance,

Similar Messages

  • How to make links in dynamic text?

    Hi All,
    I need to know how to make links in dynamic text. I have
    created a
    table to hold the dynamic copy, and the copy is added through
    a CMS page
    that I created. This Admin page is accessed through a
    browser, and I
    don't know how to attach a link to selected text within a
    browser. Can
    anyone point the way? It's probably so easy I'll feel dumb.
    Thanks,
    Brett

    "Brett" <[email protected]> wrote in message
    news:fpf7j6$23m$[email protected]..
    > Thanks Hunter,
    >
    > Yes, I suppose a legend on the admin page would provide
    a solution. And
    > ultimately, if the client doesn't feel confident doing
    writing the HTML
    > they would have to pay me to do it for them. OK, that
    works for me.
    The only other thing might be to use something like FCK (or
    one of the many
    others... ContentSeed, I think is one Murray mentions often)
    for the CMS,
    that would give an easier option for the end user. WebAssist
    has an
    FCK-based plug-in called iRite that can give a more
    wordprocessing-like feel
    to the field (i.e., they could just highlight the text and
    then click a
    button to add the link).

  • How to make a form Dynamic(Serious Issue)

    Hi,
    I have a problem.
    How to make an Interactive form Dynamic while saving it in NWDS(NetweaverDeveloperStudio).
    Helpful answer is highly rewarded and Highly Appreciated.

    Hello Sankar,
    Do the following:
    1) In your Adobe Livecycle Designer, Select, Edit > Form Properties, in the Default tab, set u201CPreview Typeu201D to u201CInteractive formu201D
    2)
    Assuming you are using Web Dynpro application, then do the following also:
    Place the following code in the wdDoModifyView method of the View where the form is placed.
              IWDInteractiveForm iForm1 = (IWDInteractiveForm) view.getElement("<name of your form here");
              iForm1.setDynamicPDF(true);
    Hope this helps,
    Harman

  • How to make view automatically scroll when keyboard show up

    Hi all
    I'm like a totally noob for objective-c coding, let alone the iPhone programing. :P
    Anyway, I somehow manage to create a simple application that receive input via UITextField, do some simple math, then display the result in other UITextFields (which can act as a input vice versa).
    Problem is, when I use the UITextField at the buttom of the screen as an input, the keyboard will block that text field out of my view, so I could not see what I'm typing at all.
    That's the question. How to make my view scrollable, and make it simply scroll itself out of the way when the keyboard is shown? I already inherit my view from UIScrollView, but don't know what to do next. Can you guys help enlighten me, please?
    Thanx

    Of course, if you're dealing with textFields, you should change a few things try something like that in your .m file :
    - (void)textFieldDidBeginEditing:(UITextField *)theTextField
    if ([theTextField isEqual:yourTextField])
    // Restore the position of the main view if it was animated to make room for the keyboard.
    if (self.view.frame.origin.y >= 0)
    [self setViewMovedUp:YES];
    // Animate the entire view up or down, to prevent the keyboard from covering the author field.
    - (void)setViewMovedUp:(BOOL)movedUp
    [UIView beginAnimations:nil context:NULL];
    [UIView setAnimationDuration:0.3];
    // Make changes to the view's frame inside the animation block. They will be animated instead
    // of taking place immediately.
    CGRect rect = self.view.frame;
    if (movedUp)
    // If moving up, not only decrease the origin but increase the height so the view
    // covers the entire screen behind the keyboard.
    rect.origin.y -= kOFFSETFORKEYBOARD;
    rect.size.height += kOFFSETFORKEYBOARD;
    else
    // If moving down, not only increase the origin but decrease the height.
    rect.origin.y += kOFFSETFORKEYBOARD;
    rect.size.height -= kOFFSETFORKEYBOARD;
    self.view.frame = rect;
    [UIView commitAnimations];
    - (void)keyboardWillShow:(NSNotification *)notif
    // The keyboard will be shown. If the user is editing the author, adjust the display so that the
    // author field will not be covered by the keyboard.
    if ([yourTextField isFirstResponder] && self.view.frame.origin.y >= 0)
    [self setViewMovedUp:YES];
    else if (![yourTextField isFirstResponder] && self.view.frame.origin.y < 0)
    [self setViewMovedUp:NO];
    #pragma mark - UIViewController delegate methods
    - (void)viewWillAppear:(BOOL)animated
    // watch the keyboard so we can adjust the user interface if necessary.
    [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillShow:)
    name:UIKeyboardWillShowNotification object:self.view.window];
    - (void)viewWillDisappear:(BOOL)animated
    [self setEditing:NO animated:YES];
    // unregister for keyboard notifications while not visible.
    [[NSNotificationCenter defaultCenter] removeObserver:self name:UIKeyboardWillShowNotification object:nil];
    be sure to invoke the method when you dismiss the keyboard, so that the view "falls back" to its normal state:
    if (self.view.frame.origin.y < 0)
    [self setViewMovedUp:NO];
    Of course, declare the method
    (void)setViewMovedUp:(BOOL)movedUp;
    in the .h file
    and the #define you will use in you .m file :
    // the amount of vertical shift upwards keep the text field in view as the keyboard appears
    #define kOFFSETFORKEYBOARD 50.0
    // the duration of the animation for the view shift
    #define kVerticalOffsetAnimationDuration 0.30
    good luck !

  • How to make a form dynamic so that it displays different logos at runtime

    I am working on some assignment wherein I would like to make a form dynamic so that in it's designated image holder it displays different logos/pictures at run time? First of all is there such a possibility?? I am still very new to this forum and also trying to understand the logic/bindings/heirarchy etc. in LCD. Any input would be highly appreciated.
    Thanks in advance

    LC 7 or 8 does not help load logs at runtime. However you can associate all your logs at design time and control their visibility property based on the events. This may help fulfill the requirements you have to an extent however adding number of images at design time will increase the size of the template.

  • How to Create View Object Dynamically

    Hi,
    I hav a requirement to create a view object dynamically.
    can anybody plz help me.
    Thanks
    Nan:)

    Hi,
    oracle.apps.fnd.framework.server.OAApplicationModuleImpl amImpl = (oracle.apps.fnd.framework.server.OAApplicationModuleImpl)AM;
    OAViewDef viewDef = AM.getOADBTransaction().createViewDef();
    viewDef.setSql(sql.toString());
    viewDef.setExpertMode(true);
    //viewDef.setViewObjectClass("oracle.apps.fnd.framework.server.OAViewObjectImpl");
    //viewDef.setViewRowClass("oracle.apps.fnd.framework.server.OAViewRowImpl");
    oracle.jbo.ViewObject oaviewobject=amImpl.createViewObject("TableVO",viewDef);
    if(oaviewobject !=null)
    TableBean.setViewUsageName("oaviewobject");
    TableBean.setViewAttributeName("TncId");
    Thanks
    Nani:)

  • How to make a graph dynamic data driven? Plus some XML basics for Illustrator?

    I need to make some graphs that are linked to a series of data through XML files (originally Excel) and create an indvidual document for each data set. They will be used for the web and print. Please advise.

    Tis is what you can do you create say your chart or your data say in Excel and you export ast Tab Delineated Text.You can then import that data for a chart with the import chart feature it is the first icon on top of the chart data window then you can make the chart dynamic asa variable and capture the data set then import another chart's data as txt as you did before then capture that as a data set abnd so on if you have then ten data sets each one will correspond to the one you need you can name the data sets so you can easily call up the one you need.
    I never made a chart in excel or imported such data before a few minutes ago nor have I a=ever made a variable of a chart but this all works pretty reasonably.
    More advance than this I would have to experiement but you can export the variable libraries and open them in Illustrator and figure it out for a way to load or export the excel info so it opens as a chart in Illustratorbut Illustrators charts are kind of primitive so donot expect much without a script to help you.
    Perhaps you can figure out an actiopn toautomate the process?

  • How to make item references dynamic in my trigger [SOLVED]

    Hi. I have a Key-List-Item trigger on my form for a date item named bundle_exceptions.actual_dt. This trigger code is displaying a calendar when the user performs a key-list-item action on this date item. Throughout this code there are hardcoded references to my item in two different ways:
    1) :bundle_exceptions.actual_dt
    2) 'bundle_exceptions.actual_dt'
    Since I have multiple date items on my application I would like to know if I can make this code more dynamic. Since the cursor is sitting on the item at the time, I thought I could reference :system.current_block and :system.current_item. But I can't seem to get the syntax correct. And to complicate things, I'm even more confused as to how I could get these system variables to match the two difference ways the item is referenced in the code (see above).
    I would love some help or advice on solving this issue. I really don't like the idea of copying and pasting this code to every date item I have on my form. Thanks in advance.
    ========= CODE =============
    date_lov.get_date (nvl(:bundle_exceptions.actual_dt,sysdate),
    'bundle_exceptions.actual_dt',
    (get_item_property('bundle_exceptions.actual_dt',x_pos) - x_adjust),
    (get_item_property('bundle_exceptions.actual_dt',y_pos) - y_adjust),
    'Calendar',
    'OK',
    'Cancel',
    TRUE,
    FALSE,
    FALSE);

    Here's what I ended up with. I never could get the Name_In and Copy built-ins to compile because of syntax errors. I'm sure this was my own doing...but I just couldn't do it.
    Anyhow, this code is working for me know. Thanks so much for all the input.
    ========= CODE =========
    PROCEDURE Call_Calendar_Popup (for_this_item in varchar2) IS
         y_adjust number := 1.6; -- this is the height of the popup box
         x_adjust number := 1.8; -- this is the width of the popup box
    begin
    -- Depending on whether this proc is called from the item itself (say a key-list-item trigger) or
    -- from another item (say a when-button-pressed trigger) the cursor may first need to be moved to the
    -- item we want to populate from the calendar
    if upper(:system.current_block||'.'||:system.current_item) <> upper(for_this_item) then
         go_item(for_this_item);
    end if;
    -- if the items xpos (horizontal) is closer to the edge than the pop ups width push it over to the right.
    if get_item_property(:system.current_block||'.'||:system.current_item,x_pos) < x_adjust then
         x_adjust := to_number(get_item_property(:system.current_block||'.'||:system.current_item,x_pos));
    end if;
    -- if the items ypos (vertical) is closer to the edge than the pop ups height push it down.
    if get_item_property(:system.current_block||'.'||:system.current_item,y_pos) < y_adjust then
         y_adjust := to_number(get_item_property(:system.current_block||'.'||:system.current_item,y_pos));
    end if ;
    -- popup the calendar so the user can populate the date text-item
    date_lov.get_date (nvl(Name_In(':'||:system.current_block||'.'||:system.current_item),sysdate),
    'bundle_exceptions.actual_dt',
    (get_item_property(:system.current_block||'.'||:system.current_item,x_pos) - x_adjust),
    (get_item_property(:system.current_block||'.'||:system.current_item,y_pos) - y_adjust),
    'Calendar',
    'OK',
    'Cancel',
    TRUE,
    FALSE,
    FALSE);
    end;

  • How to make cursor as dynamic table

    Hi all,</p>
    <p>I have a system that will make a new table everyday. I have write the
    procedure to all of this table.</p>
    <p>Can i make  a cursor in the procedure for dynamic, Are the below
    statement will run correctly? ; Can anyone help me.?</p>
    <font FACE="Courier" SIZE="2" COLOR="#0000ff">
    <p style="margin-top: 0; margin-bottom: 0">cursor</font><font FACE="Courier" SIZE="2">
    T1Cursor</font><font FACE="Courier" SIZE="2" COLOR="#0000ff">(</font><font FACE="Courier" SIZE="2"><font color="#800000"><b><span style="background-color: #FFFF00">tablename_in</span></b></font>
    </font><font FACE="Courier" SIZE="2" COLOR="#ff0000">varchar2</font><font FACE="Courier" SIZE="2" COLOR="#0000ff">,</font><font FACE="Courier" SIZE="2">
    <b><font color="#800000">id_in</font></b> </font>
    <font FACE="Courier" SIZE="2" COLOR="#ff0000">number</font><font FACE="Courier" SIZE="2" COLOR="#0000ff">)</font><font FACE="Courier" SIZE="2">
    </font><font FACE="Courier" SIZE="2" COLOR="#0000ff">is</p>
    <p style="margin-top: 0; margin-bottom: 0">Select</font><font FACE="Courier" SIZE="2">
    eventtsname, locationname</font><font FACE="Courier" SIZE="2" COLOR="#0000ff">
    FROM</font><font FACE="Courier" SIZE="2">
    <span style="background-color: #FFFF00"><b><font color="#800000">tablename_in</font></b>
    </span></font></p>
    <p style="margin-top: 0; margin-bottom: 0">
    <font FACE="Courier" SIZE="2" COLOR="#0000ff">where</font><font FACE="Courier" SIZE="2">
    eventid </font><font FACE="Courier" SIZE="2" COLOR="#0000ff">&gt;</font><font FACE="Courier" SIZE="2">
    <b><font color="#800000">id_in</font></b></font><font FACE="Courier" SIZE="2" COLOR="#0000ff">;

    You would have to use dynamic SQL, e.g:
    CREATE OR REPLACE PROCEDURE p (p_tablename VARCHAR2, id_in VARCHAR2)
    AS
       c_results SYS_REFCURSOR;
    BEGIN
       OPEN c_results FOR
          'SElECT * FROM ' || p_tablename || ' WHERE dummy > :b1'
       USING id_in;
       CLOSE c_results;
    END p;
    /Alternatively if there could be a view that combined all the tables within UNION ALLs you wouldn't need dynamic SQL. The view would need to be created dynamically though, perhaps as part of the same process that adds the new tables.

  • How to make Viewer default (again)?

    I upgraded Adobe Reader and every time it opens it asks me doe I want it to be my default viewer for PDFs. I always clicked NO but just recently clicked YES by mistake. Now it opens every time to see PDFs.
    I don't really like it, liked Apple Viewer better. How can I make it default again?
    Thank you,
    Zack

    I have nearly the same issue: Acrobat always asks if I want it to be my default viewer. After many dozens of times saying "no," I finally accidentally clicked "yes." (It also has a checkbox called "Don't sk this again," but it still asks every time).
    Anyway, I also want to use Preview as the default, and I can use the Get Info trick, but there's a rub: Before Acrobat did this, there were certain pdf files that I wanted opened in Acrobat, and not Preview. They had the Acrobat icon, not the preview one. If I do the Get Info trick, I have a feeling that they will be changed to open in Preview instead of Acrobat. So my questions are
    1) Will this actually happen?
    2) Where is the info stored that makes it possible for some pdfs to be opened with one app and other pdfs to be opened with another app?
    3) When I accidentally let Acrobat change the default, is this identical to having chosen Get Info on a pdf file and selecting "Change All..." to Acrobat, or is it just changing some system-wide preference about which viewer should be the default—a preference that, I hope, can be changed back.

  • How to make the fields dynamic read only in live cycle designer

    hi folks
    I have created a form in Adove livecycle es. Some fields should be read only from the start. So i have set the property .access 'open'. In versions of Adobe 8 this works, but in the latest version  it won't so i think it should be done via another solution. Does anybody know how?
    kind regards,
    Anton Pierhagen

    May be the below code may help.. It loops thru all the pages in the PDF form and make them protected. So the user can not change any value in the form.
    for (var i = 0; i < xfa.host.numPages; i++)
    var oFields = xfa.layout.pageContent(i, "field");
    var nodesLength = oFields.length;
    //set the access type to be protected for all fields
    for (var j = 0; j < nodesLength; j++)
    var oItem = oFields.item(j);
    oItem.access = "protected";
    Thanks
    Srini

  • How to make view on xmlcolumn?

    Hi!
    I tried to find an example, but it seems that i couldn't find the tree in the forest...
    I have an table with normal columns and an xmltype-column,
    where I want an view of it as if it was an join:
    create table t
    ( id number,
    att1 number,
    xml1 xmltype
    insert into t values (1,1,'<r>
    <i><n>hans</n>
    <age>2</age>
    </i>
    <i><n>peter</n>
    <age>99</age>
    </i>
    <i><n>kim</n>
    </i>
    </r>');
    insert into t values (2,5,'<r>
    <i><n>hansi</n>
    <age>22</age>
    </i>
    </r>');
    commit;
    --select e.id, e.att1, e.xml1.getstringval() from t e
    Now I want this result, 4 rows and 4columns:
    1,1,hans,2
    1,1,peter,99
    1,1,kim,<null>
    2,5,hansi,22
    How to write the select/view?
    Best Regards
    Bjoern

    SQL> drop table t
      2  /
    Table dropped.
    SQL> create table t
      2  (
      3    id number,
      4    att1 number,
      5    xml1 xmltype
      6  )
      7  /
    Table created.
    SQL> insert into t values (1,1,xmltype('<r><i><n>hans</n><age>2</age></i><i><n>peter</n><age>99</age></i><i><n>kim</n></i></r>'))
      2  /
    1 row created.
    SQL> insert into t values (2,5,xmltype('<r><i><n>hansi</n><age>22</age></i></r>'))
      2  /
    1 row created.
    SQL> commit
      2  /
    Commit complete.
    SQL> select id, att1, i.*
      2    from t,
      3         xmltable
      4         (
      5           '/r/i'
      6           passing xml1
      7           columns
      8           NAME varchar2(20) path 'n',
      9           AGE  varchar2(20) path 'age'
    10        ) i
    11  /
            ID       ATT1 NAME                 AGE
             1          1 hans                 2
             1          1 peter                99
             1          1 kim
             2          5 hansi                22
    SQL>

  • How to make view Java Bean as .ocx file.

    Hi All,
    I want to use a visual Java Bean in Visual basic. So that I can modify all the bean properties as modify properties in a ocx file.
    I used ActiveX Com bridge downloaded from Sun's site. But the packager
    makes a .tlb file .
    This file can only be added as a reference in visual basic but not as a ActiveX control. Is there any way out to do that???
    Thanks & regards.
    Nimesh

    The packager creates a registry file and a tlb file.
    After registering this .reg file, java bean can be used as an ActiveX control.
    From within Visal Basic, select the "Tools" menu and "Custom Controls" item and add the Bean control that was generated.
    Avinash.

  • How to make fields grow dynamically within the same page and in column wise

    Hi,
    Like the newspaper format: Where contents of news are shown columns wise.
    We need to make the fields in a page grow column wise within that same page.
    For example, in a page:
    Column 1 Column 2
    ASDASDASDGKASHDGKAA | ASDFASGFHSJFAJKSD
    ASDFASDFASDJFASGJKDFHA | ASDFASDASDFASDFASD
    AFSDFASDFASDHGFKASDFASD | ASDFASDFASDFASDFASDFA
    ASDFSDGFJASHDGFJKASHDGKFAS |
    ASDFAGASDHFKASHDGFHASDJKFHASJKHF |
    ASDFHASGDKFASDJGHFASDFJKSDGFJKAGSDJ |
    If the Column 1 is full with the fields in the page it should start filling the column 2 which is also in the same page.
    If the Column 2 is also full then only it should move to the next page and should continue the same scenario.
    Please suggest a better way to do this in the Adobe Output Designer.
    Thanks and regards,
    Gurunath V.
    E-Mail: [email protected]
    P.S: Please also mail to my e-mail ID.

    Hi Gurunath, if you steel need a solution on this problem, I think this could help:
    1- place two fields on the form (JF01, JF02), one under each other.
    2- Make two subform with them (Sline1, Sline2)
    3- Make the field JF02 expand on same subform.
    4- Modify the preamble in this way:
    ^define group:D_line1 \field$POSITION\reserve"0.333",in\subformSline1.\positionsave,"first_line"
    ^define group:JF01!OnOverflow \groupG_Sline2.\fieldJF02.
    ^define group:G_Sline2!OnBOF \positionrestore,"first_line"\positionright,"3.65",in
    In the data file put all the text in JF01.
    -The first line say:
    When JF01 is called, save it's y position (\positionsave,"first_line")
    -The second line means:
    when the text overflow JF01 put it in JF02.
    (cause JF02 overflow on itself all the remaining data is overflowed in JF02)
    -The third line means:
    if JF02 arrives at the end of the page (OnBOF), restore the saved position ( \positionrestore,"first_line") and move to the right of "3,65" inches (\positionright,"3.65",in).
    In other words, when JF02 arrive at the and of the age, the next field JF02 is positioned at the same height of JF01 and is shifted on the right
    Take care that in this way JF02 cannot anymore go o a new page.
    Hope this help.
    Andrea

  • How to make fields invisible dynamically in standard transaction?

    When we visit T-Code FB60 there are tabs like Basic data, Payment , Details ,Tax ,Notes ,Local Currency.
    In the Tax tab there are fields like Tax code, Rep. Date etc.
    The Rep.Date has value from BKPF-VATDATE and value for tax code from RTAX1U12-MWSKZ.
    The requirement is that in Tax tab if value for tax code is not selected then the Rep. Date field should become invisible i.e., if  tax code value is empty then the Rep. Date field should become invisible dynamically.
    Is there any BADI/Enhancement Spots  to achieve this requirement?

    1.In designer on tools menu  you have level security. Add what you want objects or groups or users level security.
    2.In CMS Select the option universes then provide the security for the object level.
    3. you create the below variables :
    if CurrentUser()="@Varaible(BOUSER)" then " " else [Dimension]
    Hope this is what you are looking out for.

Maybe you are looking for

  • SSIS Control and Data Flow Items not available in Customize Toolbox

    I cannot add additional Data Flow and Control Flow items to the SSIS Toolbox. I am using SQL Server 2014 and VS 2013 (BIDS). The standard SSIS items appear - but they are all of them. How do I add the additional ones that are not loaded by default. I

  • Cannot uninstall or install iTunes - help!

    I had iTunes 8.0 installed on a computer. Tried uninstalling and it won't. I get the error message: "The feature you are trying to use is on a network resource that is unavailable. Click OK to try again, or enter an alternate path to a folder contain

  • PROBLEM-ONE OR MORE FRAMES WERE DROPPED DURING PLAYBACK... HELP...

    Hallo... I am very new in the Final Cut Express... I import .MOV documents in my computer and then to a new Project in the FCE... I move to the viewer the pieces I want to create, then when I try to see them it reports me the PROBLEM " ONE OR MORE FR

  • How to bundle application with OCF?

    hi,i developed an applet in the javacard and a OCF applcation on the host.. and now i would like to make a jar file,let it runs when double click, but now my question is ..how to integrate the OCF and the host application, i know i can put OCF's libr

  • Itunes Store is now in foreign language

    i just open itunes and went to store and it is now in a foreign language. Any ideas?