How to force JEditorPane to be refreshed?

Dear all,
I've problem of refreshing JEditorPane using setPage( ) method.
I've written a simple JAVA browser with an analysing system. When a user clicks a hyperlink, the setPage( ) method will be called. Followed by the setPage( ) method, is another method, called method2, used to analyse the content of the page which will take several seconds to minutes to be finished.
The problem I have now is that, the new HTML page will be displayed only after method2 is finished. How to force the page to be displayed before running method2?
Thanks a lot.
Frances

Just to add - invokeLater will free up the swing thread so setPage completes in a timely manner but
StanislavL's example will run method2 on the swing thread also, just as a separate action
performed at a later time. This is good if method2 makes further calls to swing methods but it
does mean that the analysis will block the swing thread for however long it takes. If that's OK then fine, otherwise modify as:
pane.setPage(url);
Thread t = new Thread() {
  public void run() { method2(); };
t.start();Check out this [url http://java.sun.com/products/jfc/tsc/articles/threads/threads1.html]article for further info.
Regards

Similar Messages

  • Dashcode iPhone Webapps - How to force a view to Refresh on Back

    I have added one more List content view using Dashcode and have the lists data loaded dynamically via AJAX. Everything going Forward works perfectly
    However, when I clicked on the "Back" button, the Back button played the transition effect of going back but the content view does not refresh and the page stayed as it was before the Back button is clicked.
    I have tried to add list.object.reload() to the _backButtonClicked() function inside Browser.js but to no avail.
    Yes, the dynamic list data get updated and displayed properly when going forward, so I don't think it is anything due to the update of the list data...
    So, is there a proper way to force the refresh of the view (and reload the list data) for a multiple content view stacklayout?
    Thank you very much.
    Subject was edited by: Edwin Tam for improved clarity

    I have added one more List content view using Dashcode and have the lists data loaded dynamically via AJAX. Everything going Forward works perfectly
    However, when I clicked on the "Back" button, the Back button played the transition effect of going back but the content view does not refresh and the page stayed as it was before the Back button is clicked.
    I have tried to add list.object.reload() to the _backButtonClicked() function inside Browser.js but to no avail.
    Yes, the dynamic list data get updated and displayed properly when going forward, so I don't think it is anything due to the update of the list data...
    So, is there a proper way to force the refresh of the view (and reload the list data) for a multiple content view stacklayout?
    Thank you very much.
    Subject was edited by: Edwin Tam for improved clarity

  • How to force refresh of data through browser or PDF?

    We have the dashboard set to refresh every minute.  We are pulling the data using XML from DB.  When we are in browser and clear the browser cache and then reload the .swf... the data is updated.  We haven't been able to figure out how to force the cache-clear and data refresh with either swf or pdf.
    Your help is greatly appreciated.

    Hi Jeff,
    Is the XML coming from a web page or a web server?
    If yes then you can give this a go. To stop the caching mark your web page with extra tags to say it has expired.
    HTML page example:
    <HEAD>
        < META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE" />
        < META HTTP-EQUIV="EXPIRES" CONTENT="0" />
    </HEAD>
    JSP example:
    <%
      // Stop Internet Explorer from caching the results of this page.
      // We do this so that every time Xcelsius calls this page it see the latest results.
      response.setHeader("Cache-Control","no-cache"); //HTTP 1.1
      response.setHeader("Pragma","no-cache"); //HTTP 1.0
      response.setDateHeader ("Expires", 0); //prevents caching at the proxy server 
    %>
    Regards,
    Matt

  • How can I optimize my browser? I'm having serious issues in Hotmail, forcing me to constantly refresh the page, then I lose all my text when I do!

    I'm using Firefox 3.6.8 [& Vista os], and can't find any relevant info in Firefox 'Help' re: optimizing browser.
    I wrote Hotmail about my problem below, and they say I need to optimize my browser. They don't give instructions for how to do this in Firefox.... when I search in your 'help' contents, nothing close comes up.
    I also have the concern whether someone else is accessing my account, since the error mssg says something to the effect "when you access your acct from more than one computer"....
    Please help - Thank you!
    This is VERY frustrating, to say the least! I have major deadlines, and Hotmail is so bad I can't get my work done!!
    Ever since the 'upgrade', I am forced to almost constantly refresh my browser, and then when I do, my email and all my text goes away! Sometimes I am prompted to refresh when I have just logged in.... It asks me to refresh my browser sometimes once a minute.... sometimes more often!
    When I hit refresh, it actually causes the current page to disappear, and it comes back as a blank email with all my text gone! And hitting the 'back' button does not bring me back to the page I lost.
    Most of the time I can't even save my work as a draft, because it asks me to refresh [again], and then the email is gone and there's no draft to be found.
    This is *very* time consuming!! I've had to figure out how to work around this problem, but my 'fix' is also very tedious and time consuming....
    I'm constantly copying my text so I have a current copy of my email, then when I lose the draft, I paste it back in... I often go in circles with this, and eventually I'll have my current draft saved.
    Also, sometimes when it prompts me to refresh, just hitting the 'save draft' button a few times will suffice. So at least I won't lose my page, because, sometimes hitting 'save draft' actually works.... Eventually, tho, it'll force me to refresh before I can move on to sending the email.
    Please help!! I've been using Hotmail since before MS bought it, and this problem is SO bad I'm considering jumping ship so I can get my work done!!
    I don't generally like upgrades, as it usually means there will be problems, and the upgrade was released before being fully tested!.... I don't like being a guinea pig, especially when I have deadlines!
    Please help - Thank you!

    You can try to copy the text to the clipboard (Ctrl + A and Ctrl +C) if you need to refresh.
    "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove the Cookies" from sites that cause problems: Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

  • JTextArea:  How do I force a JTextArea to refresh?

    Hi All,
    I have a JTextArea that I append data do when I'm in a while loop. The JTextArea displays the text after the loop has finished, not as data is appended to it during the while loop. How can I force the JTextArea to refresh immediately after text is appended to it?
    Thanks,
    Karl

    In case if you want to refresh the text area means to clear all the text then try the below code
    JTextArea jta;
    jta.setText(" ");

  • [CS3 JS] How to force XMP metadata update for a thumbnail?

    Hi Folks,
    In a JavaScript in Bridge CS3, I'm updating a value in the XMP metadata for a Thumbnail. Later in the script I want to read the updated XMP metadata information from the Thumbnail, but often Bridge hasn't updated the metadata by the time I read it. In other words, my script reads the value prior to the update. I'm guessing there's a caching issue going on.
    I'm new to Bridge scripting, and I am hoping someone here can offer suggestions on how I can (or, even *if* I can) force Bridge to update the XMP metadata cache for a file so that when I read it later in the script it will reflect the recent changes. I've tried using Thumbnail.refresh(), but that doesn't seem to do the trick. I don't mind a slower script, I just want to be able to read the correct value.
    Thanks in advance for any help!
    -- Jim

    Hi David,
    I'm running this script on a MacBook Pro, 2.5GHz, 4GB RAM.
    Here is a sample JSX that shows the issue I'm having:
    #target "bridge-2.0"
    main();
    function main() {
        if( xmpLib == undefined ) {
            var pathToLib = Folder.startup.fsName + "/AdobeXMPScript.framework";
            var libfile = new File( pathToLib );
            var xmpLib = new ExternalObject("lib:" + pathToLib );
        var myValue = "Headline Test";
        var myFilePath = "~/Desktop/TestFile.tif";
        var curHeadlineStr = XMPGetHeadline(myFilePath);
        $.writeln("Headline value: \"" +  curHeadlineStr + "\"");
        XMPWriteHeadline(myFilePath, myValue);
        // *** I would like to refresh the cache here ***
        curHeadlineStr = XMPGetHeadline(myFilePath);
        $.writeln("Headline value: \"" +  curHeadlineStr + "\"");
    function XMPGetHeadline(theFilePath) {
        var thumb = new Thumbnail(File (theFilePath) );
        md = thumb.synchronousMetadata;   
        xmp = new XMPMeta(md.serialize());
        var myHeadlineXMPProp = xmp.getProperty
            (XMPConst.NS_PHOTOSHOP, "Headline", XMPConst.STRING);
        return myHeadlineXMPProp;
    function XMPWriteHeadline(theFilePath, theTextStr){
        var thumb = new Thumbnail(File (theFilePath) );
        md = thumb.synchronousMetadata;   
        xmp = new XMPMeta(md.serialize());
        var myOrigHeadlineXMPProp = xmp.getProperty
            (XMPConst.NS_PHOTOSHOP, "Headline", XMPConst.STRING);
        xmp.deleteProperty(XMPConst.NS_PHOTOSHOP, "Headline");
        xmp.setProperty(XMPConst.NS_PHOTOSHOP, "Headline", theTextStr, 0, XMPConst.STRING);
        var updatedPacket = xmp.serialize
            (XMPConst.SERIALIZE_OMIT_PACKET_WRAPPER | XMPConst.SERIALIZE_USE_COMPACT_FORMAT);
        thumb.metadata = new Metadata(updatedPacket);
    To run this script, in main(), set the myFilePath variable to the path of a file that has an "IPTC Code" "Headline" property.
    This script, when run, sets the "Headline" property value to the value of myValue. After runing the script for the first time, take a look at the console log. You should see that Headline value displayed does not change between the two console entries. My log looks like this after the first run:
      Headline value: "undefined"
      Headline value: "undefined"
    The thing is, the second entry in the console listing, above, was created after the Headline value was set by XMPWriteHeadline(). The two values should be different between the two console entries.
    If you run the script a second time against the same file, you will see that the Headline value does contain the value that was written in the first run of the script--it just took some time to update the cache, I'm guessing. Here's the second run's log:
      Headline value: "Headline Test"
       Headline value: "Headline Test"
    So, what I'm looking for is a way to insert code (where the comment line "//*** I would like to refresh the cache here ***" appears), to force Bridge CS3 to refresh its cache so that when I call XMPGetHeadline() after calling XMPWriteHeadline(), the Headline value will return the value that was just written.
    I hope this is clear enough...
    Thanks!!!!
    -- Jim

  • How to Force Logoff from Portal in Custom Application

    Hi All,
    We have developed a Custom Component for the user to change password in Portal 7.3. As per the requirement ,after changing the password the portal should force logoff without further execution. We are able to change the password but not able to force a logoff . Any suggestions how this can be achieved.
    Regards,
    Srinivas
    Edited by: Nivas209 on Feb 17, 2012 10:23 AM

    Hi Detlev,
    I am using the below link , for session termination and Force Log-off.
    http://help.sap.com/saphelp_nw73/helpdata/en/19/667bae77684887bea80129800fd701/frameset.htm
    I am able to force a log off, but the desktop inner page only gets logged out.The Masthead and Top level remains the same(Not Logged Off) .
    If i do a refresh in my browser everything gets logged off and Login screen appears.Now how can i do a browser refresh/reload in that script.
    I tried with few things it doesn't work. Please suggest on this.
    Regards,
    Nivas209

  • How to prevent JEditorPane to show remote images

    Hello
    I make an e-mail client with JEditorPane to show the html content.
    If the content contains IMG tag with src like http://somehost.on.the.web...
    then JEditorPane tries to load the remote image. But I have an internet connection via proxy. So, JEditorPane cannot find somehost.on.the.web on the LAN and an annoying timeout occurs. If I use System.setProperty("http.proxySet","true"), ... then JEditorPane uses proxy and loads images. I do not want to use a proxy. But how can I eliminate the timeout? It doesn't occur in Linux. In windows it doesn't occur only if there are no active network connections.
    I learn that JEditorPane loads images throgh the java.awt.Toolkit.getDefaultToolkit()
    ImageView.loadImage()
    Could you, please, tell me how can I force JEditorPane to do not load remote images or eliminate the problem with timeout in Windows with LAN.

    > I have the first option checked.
    I wouldn't use that option, nor would I suggest anyone else
    use it UNLESS
    you are supremely confident in your ability to not make
    mistakes.
    Otherwise, it's a train wreck waiting to happen.
    > Yes...I DO have check in and check out enabled in the
    Sharing Files, Part
    > 2
    > box.
    Which is why you are being prompted to overwrite your local
    copy. Are you
    the only one working on that site? If so, you do not need, or
    even want the
    CI/CO option.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "kabra001" <[email protected]> wrote in
    message
    news:fto4ur$c6b$[email protected]..
    > Thanks for the response Murray
    >
    > In the site definition box Editinf Files Part 3 there
    are 2 options .....
    > 1.Edit local copies on my machine, then upload when
    ready.
    > 2.Edit directly on server using local network
    > I have the first option checked.
    > This does not seem to be automatic upload on save
    option,....
    > however...its
    > when I OPEN the LOCALfile that it seems to log in to the
    server and GET
    > the
    > remote copy, not present the local copy for editing.
    >
    > Yes...I DO have check in and check out enabled in the
    Sharing Files, Part
    > 2
    > box.
    >
    > cheers
    >
    >

  • How to ADD Materialized Views to Refresh Group

    Hi,
    My requirement is, i want to refresh MVs(fast refresh only) by using DBMS_SCHEDULER. For this i have created one DBMS_SCHEDULER job like below.
    BEGIN
    DBMS_SCHEDULER.CREATE_JOB (
    JOB_NAME      => 'REFRESH_MV_UPLOAD',
    JOB_TYPE           => 'PLSQL_BLOCK',
    JOB_ACTION      => 'DBMS_REFRESH.REFRESH('MV_UPLOAD_GRP');',
    REPEAT_INTERVAL      => 'FREQ=MINUTELY; INTERVAL=30',
    ENABLED      => TRUE
    END;
    In the above script, i created one refresh group 'MV_UPLOAD_GRP'. So what my requirement is i want to ADD my MVs refresh scripts to this group. Scripts as below...
    Refresh MV Scripts:
    1) Exec dbms_mview.refresh('emp.entity', 'f');
    2) Exec dbms_mview.refresh('emp.identifier', 'f');
    3) Exec dbms_mview.refresh('emp.rating_hist', 'f');
    . so on.
    Can anyboy help me how to add these scripts to refresh group 'MV_UPLOAD_GRP'.
    Regards
    Raj

    ALL_REFRESH and ALL_REFRESH_CHILDREN
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14227/rarsnapviews.htm#REPMA027
    Nicolas.

  • How to force a new password in portal with LDAP user? external users

    With an external portal (used by agents that do not work for you or reside in your office), company policy is for password to be changed every qtr.
    If the users are creating as LDAP users how to force them to change their password when required?
    Is this a custom application that needs to be written so when they log into the portal if the qtr has expired the portal ask them to enter a new password that becomes valid for the next qtr.
    Versus internally deleting and emailing all the users a new password?

    Hi Glenn,
    We are getting one problem when we are creating user in LDAP and login with that user in  Portal that time we are getting Password change screen , but when we create a user in LDAP and change the password of that user in LDAP then when the user tries to  Login to portal that time we are not able to see the password change screen.
    But again if we change the password of that user through Portal we are able to see change password screen.
    can you help on this how we can force the user to change password when we are changing password in LDAP or in SAP System.
    Regards
    Trilochan

  • How to force the "Bluetooth Communicat​ions Port" to be one of COM1 to COM8 ports?

    Dear Lenovo Community, Happy Holidays to you all and wish you a great happy new year. Recently purchased a Bluetooth OBDII device and have difficulty making it to work with its provided software on my T61 (running original XP Home). My short story and question/problem is that I can open "My Bluetooth Places" and pair with the OBDII device as an "OBDII SPP Dev", but my T61 assigns serial port COM19 to it. The OBDII software which came with the device only can let user set to one of the COM1 to COM8 ports and in the properties of Bluetooth pairing, there is no way that I can select which COM port to use. I looked at the Device Manager and I do see these COM port assignments: COM4,5,6,7: Sierra Wireless (the HSDA modem in the laptop which I have never used BTW) COM 9,10,11,12,13,14,15,16,17: Bluetooth Serial Port COM 18, 19: Bluetooth Communications Port and I don't see anything for COM1,2,3, and 8 My question is how to force the computer/OS to assign one of the COM1 to COM8 ports to my device upon pairing? Can I disable the Sierra Wireless model from the COM ports list and hope this will happen? Thanks for your help and inputs beforehand. Regards, AL

    Hi, AL_K
    Have you attempted to change the port number in device manager itself? If you navigate to Device Manager and open the list of Ports, you can right-click on the device you wish to assign a different port number. After right-clicking, click Properties. There should be a tab called Port Settings. In here, you should find a setting to manually assign a port number.
    Good luck, and let me know how it goes,
    Adam
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution!" This will help the rest of the community with similar issues identify the verified solution and benefit from it.

  • Adobe Acrobat 9 Standard is still seeing my old scanner install.  How to force it to see new scanner install.

    Adobe Acrobat 9 Standard is still seeing my old scanner install.  How to force it to see new scanner install?  Scanner is recognized by and works fine in Windows.  Acrobat however still sees Fujitsu fi-6130dj #3.  I need it to see Fujitsu fi-6130dj which is what is listed in Device Manager.  (Windows XP SP3).
    Thank you for any suggestions.

    To provide more detail and list what was done to resolve the issue but there may be a better way.
    Background.  When you install a USB device to a PC it is listed in Windows Device Manager as installed hardware.  If you take the USB plug for any device and plug it into a different USB port on the PC the PC will install drivers again for that device.  In Device Manager, if you set a system environment variable for device manager to show non-present devices you can see all of the times this may have occurred.  In this specific instance there were five installations in Device Manager for one piece of hardware, a Fujitsu fi-6130 scanner.  The first listing was Fujitsu fi-6130dj, then Fujitsu fi-6130dj #2, Fujitsu fi-6130dj #3 and so on.  Adobe Acrobat only saw the third instance of these drivers being installed.  Once I cleaned Device Manager of all Fujitsu scanner installs I was able to have a single set of drivers installed for this Fujitsu but Adobe still recognized the third instance of the driver install and I could not figure out how to force it to see what Device Manager was seeing, a single instance of the scanner being installed (with no #3 behind it).
    Steps performed to try to resolve.
    Repair install of Adobe - no luck - still sees the #3 instance of the scanner
    Deactivation, uninstall, reboot, reinstall, reactivation of Adobe - no luck, same behavior as above
    Complete removal of all scanner related software.  This included the ISIS drivers in Add/Remove Programs and all other related software.  This also included deleting the contents of the TWAIN_32 directory found within the root of the Windows directory and also included deleting the scanner from Device Manager.
    Rebooted.
    Reinstalled complete packages of both TWAIN and ISIS scanners - with the scanner disconnected.  Powered the scanner back on and let Windows install the drivers for the hardware.  Only at this point did Adobe see the new install of the Fujitsu scanner and no longer looked for the #3 instance of that scanner install.

  • How to force using the adobe reader to view the PDF by javascript / PHP / HTML?

    I use the standard way to embed a pdf to my website, however, when I open it the browser will choose the default pdf viewer instead of the adobe reader. I can change it manually by looking at the browser option but it would not be nice if the website visitor need to do this manually. So I would like to know how to force the browser to open the PDF in adobe by using some HTML header / javascript / php or any parameter in object tag. Thanks.
    <object id = 'zoomPage' type='application/pdf' data= '" + sourceFolder + "SingTao/2013/08/17/0/0/A/Content/pdf/pdf_" + currZoomPageNo + ".pdf#toolbar=1&navpanes=0&statusbar=0&messages=0&pagemode=read'><p>The PDF can not display</p></object>

    I know this problem related to the browser behaviour so I would target only :Chrome firefox and IE 9+ (it is ideal if IE8 can also adopt the solution) thanks

  • How to Force enable, silent updates for Adobe flash in windows 8

    How to Force enable updates, silently for Adobe flash in windows 8 using group policy?
    I have followed this Article:
    http://helpx.adobe.com/flash-player/kb/administration-configure-auto-update-notification.h tml
    http://gpyall.com/archives/disable-adobe-flash-updates-on-64-bit-windows-with-group-policy /
    This looks promising but not working.
    Also, I cannot even manually create a file, in Win 8  (C:\Windows\SysWOW64\Macromed\Flash)
    So how would group policy can put mms.cfg in this location with following vaule:
    AutoUpdateDisable=0
    SilentAutoUpdateEnable=1
    Thanks in Advance.

    You will find more information in http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/flashplayer/pdfs/flas h_player_11_7_admin_guide.pdf

  • How to force my Web part to run regardless of users permissions

    I have created the following custom permission , which will allow users to Create items without being able to view,edit them:-
    $spweb=Get-SPWeb -Identity "http://vstg01";
    $spRoleDefinition = New-Object Microsoft.SharePoint.SPRoleDefinition;
    $spRoleDefinition.Name = "Submit only";
    $spRoleDefinition.Description = "Can submit/add forms/files/items into library or list but cannot view/edit them.";
    $spRoleDefinition.BasePermissions = "AddListItems, ViewPages, ViewFormPages, Open";
    $spweb.RoleDefinitions.Add($spRoleDefinition);
    $spweb.Dispose();
    then inside my "Issue Tracking List" i stop inheriting permission from team site , and i define the following permission for all users:-
    now users can add items and they can not view them ,, which is perfect :).
    But now i wanted to add a custom web part to my Create form which will hide certain fields if the user is not within specific group ,the web part looks as follow:-
    protected override void OnInit(EventArgs e)
    base.OnInit(e);
    InitializeControl();
    using (SPSite site = new SPSite(SPContext.Current.Site.Url))
    using (SPWeb web = site.OpenWeb())
    web.AllowUnsafeUpdates = true;
    SPGroup group = web.Groups["Intranet Visitors"];
    bool isUser = web.IsCurrentUserMemberOfGroup(group.ID);
    if (!isUser)
    SPList myList = web.Lists.TryGetList("Issue List");
    SPField titleField = myList.Fields.GetField("Category");
    titleField.Hidden = true;
    titleField.ShowInEditForm = false;
    titleField.ShowInNewForm = false;
    titleField.ShowInDisplayForm = false;
    titleField.Update();
    myList.Update();
    // web.AllowUnsafeUpdates = false;
    else
    SPList myList = web.Lists.TryGetList("Issue List");
    SPField titleField = myList.Fields.GetField("Title");
    titleField.Hidden = false;
    titleField.Update();
    myList.Update();
    // //web.AllowUnsafeUpdates = false;
    web.AllowUnsafeUpdates = false;
    then i deploy the web part and i add it to the Create form. but after doing so user are not able to create items and they will get the following error:-
    Sorry this site has not been shared with you
    so can anyone advice how to force my web part to run , without checking the users permissions or with minimal permssions ?

    in this case, use the elevated privileges to read/add/edit items with elevated privileges with below code.
    but make sure the page which you add this web part have at least read access to all user.
    SPSecurity.RunWithElevatedPrivileges(delegate()
    using (SPSite site = new SPSite(web.Site.ID))
    // implementation details omitted
    More: http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spsecurity.runwithelevatedprivileges.aspx
    Bistesh
    Ok after adding :-
    SPSecurity.RunWithElevatedPrivileges(delegate()
    users with the following permissions can create items:-
    "AddListItems, ViewPages, ViewFormPages, Open";
    and they can not edit/read them, which is great. but i am facing a caching problem , because if user is inside the "Intranet visitor" he will be able to see Category field as mentioned in my code, but if i remove him from the "Intranet Visitor"
    he still can see the field,, although in the web part i specify not to display the Category column if the user is not inside the "Intranet visitor " group... here is my current code:-
    protected override void OnInit(EventArgs e)
    base.OnInit(e);
    InitializeControl();
    SPSecurity.RunWithElevatedPrivileges(delegate()
    using (SPSite site = new SPSite(SPContext.Current.Site.Url))
    using (SPWeb web = site.OpenWeb())
    web.AllowUnsafeUpdates = true;
    SPGroup group = web.Groups["Intranet Visitor"];
    bool isUser = web.IsCurrentUserMemberOfGroup(group.ID);
    if (!isUser)
    SPList myList = web.Lists.TryGetList("Risk & Issue Management");
    SPField titleField = myList.Fields.GetField("Category");
    titleField.Hidden = true;
    titleField.ShowInEditForm = false;
    titleField.ShowInNewForm = false;
    titleField.ShowInDisplayForm = false;
    titleField.Update();
    myList.Update();
    // web.AllowUnsafeUpdates = false;
    else
    SPList myList = web.Lists.TryGetList("Risk & Issue Management");
    SPField titleField = myList.Fields.GetField("Category");
    titleField.Hidden = false;
    titleField.ShowInEditForm = true;
    titleField.ShowInNewForm = true;
    titleField.ShowInDisplayForm = true;
    titleField.Update();
    myList.Update();
    web.AllowUnsafeUpdates = false;
    so can you advice please ? is this a caching problem, or once the user add at-least single item he will be able to see all columns ?

Maybe you are looking for

  • Table authorisation not working in RSA3

    Hi All,    I come across a problem, I have linked a R/3 table to an authorization group so that its data will be viewable to only those who are authorized for that group. Its working fine when anyone tries to view the data from SE16. But in case i ha

  • CC not visible in RWB-Communication channel monitoring

    Hi All, Communication channel created in the directory is not visible in Communication channel monitoring of RWB. I refresh ABAP cache, SXI_CACHE, CPA cache. Still its not visible. Deleted and created again. Still no use. None of the communication ch

  • Sapscript - box not works

    Hi, I have a Sapscript and I use box to make borders. I´m printing in a Laser printer and it´s works but in Epson LQ-1070 it doesn´t. This problem was solved once by basis but now there no basis here to help me. I tryed some configurations on SPAD an

  • Flash CS3 Crashes after save

    Flash works fine, and I can test any video/project, as long as it is not saved. When I save it, or open a saved one, it acts normal, until I try to do anything with publishing it, including testing (ctrl-enter) I've tried uninstalling it, cleaning th

  • ISE Posture Discovery option missing in Auth Profiles

    Hi all. I have been working off the following document but am having problems finding the "Posture Discovery" option in the Authorization Profiles. http://www.cisco.com/en/US/products/ps10315/products_tech_note09186a0080bba10d.shtml The device has tr