How to set a layer invisible?

Hi guys,
Can you tell me how to set a layer invisible? Thanks.

function hideAllLayers()<br />{<br />     forEach(document.layers, function(layer) {<br />          layer.visible = false;<br />     });<br />}<br /><br />function showAllLayers()<br />{<br />     forEach(document.layers, function(layer) {<br />          layer.visible = true;<br />     });          <br />}<br /><br />function forEach(collection, fn)<br />{<br />     var n = collection.length;<br />     for(var i=0; i<n; ++i)<br />     {<br />          fn(collection[i]);<br />     }<br />}

Similar Messages

  • How to set focus on invisible input field?

    Hi Guys,
    I need an invisible input field and have to set an input focus on it. My problem is that if I set input field’s property visible=blank, I get my invisible field <b>BUT</b> the function call doesn’t work (setInput.requestFocus()).
    I suppose that I can’t set a focus if an input field is invisible.
    Does somebody know how can I solve my problem? Is there a possibility to do this input field invisible with java script? If yes, how does it work in Web Dynpro?
    Thanks
    Marita

    Hi
      Setting a focus on invisible input field will not work even if you follow the method what sowjanya has suggested. The method wdThis.wdGetAPI().requestFocus() will not work for read-only and disabled fields.
    By the way why do you want to set the focus on a invisible input field. If you can tell us the requirement maybe we could think of an alternate solution. But i guess for the current scenario setting focus on invisible input field does not work.
    regards
    ravi

  • How to set the fields invisible/visible dynamically with screen-exits

    <b>Goal:</b> I am changing the subscreen from standard screen for mobile device interface, i.e. function group LMOB. With a scanner I am to read a material number and have it confirmed by the SAP system. For this I need an input field which is already supplied by the standard program. The users require the screen to be dynamic, i.e. I can not do the settings in the screen-painter.
    <b>Problem occurred:</b> After I have changed to use the customized subscreen 1202 in function group XLRF, not all the fields are displayed. It seems that the values for setting the screen elements are lost when calling the subscreen (3202, copy of screen 2202). For instance, it does not show my input field. Somewhere there need to be a list that contains all these parameter switches? I know how “Loop at screen” works but can’t find the values that are supposed to be passed over to the subscreen.
    Would be grateful for some help.

    Hi Niklas!
    Unfortunately I don't know the transaction you're working on, but I had a similar problem once.
    You have to use the commands <b>LOOP AT SCREEN</b> and <b>MODIFY SCREEN</b>. I found some online help here: <a href="http://help.sap.com/saphelp_470/helpdata/en/9f/dba70535c111d1829f0000e829fbfe/frameset.htm">SAP Online Help</a>. The fields of the pseudo-table <b>SCREEN</b> can be found here: <a href="http://help.sap.com/saphelp_470/helpdata/en/9f/dbab6f35c111d1829f0000e829fbfe/frameset.htm">SAP Online Help</a>. I think you have to set <b>INVISIBLE</b> to 'X' - but you may have to experiment.
    Another thing to look out for is that you have to call this method in the <b>PBO</b> section of the dynpro. Take care no SAP logic is executed after your modification that changes your settings...
    Hope this helps (please reward me if it does),
    Joerg

  • How about setting default layer styles to 90 degrees by default?

    Who ever really uses 120 degrees for anything? If I could count the number of times I've had to change my layer styles to 90 or 180 from the junky 120, I'd reach a number which doesn't exist because it's so damn big.
    Fix this, or give users an option to set a default and designers will LOVE YOU.

    There's also the "Make Default" button at the bottom of the Layer Styles dialogue box if you tend to use certain settings often.

  • How to set JTree lines invisible?

    Hi all,
    I have tried it with adding following code while GUI is initializing.
    here i'm using a custom TreeCellRenderer. But still line are visible :(
    MyTreeCellRenderer renderer = new MyTreeCellRenderer();
    renderer.setBackgroundSelectionColor(new Color(0xffffff));
    renderer.putClientProperty("JTree.lineStyle", "None");
    setCellRenderer(renderer);How to get the thing done correctly?
    kaushalya

    This client property should be set to the tree, not the renderer.
    Anyway it will only work in Java look and feel (Metal).
    Read the tutorial: [Customizing a Tree's Display|http://java.sun.com/docs/books/tutorial/uiswing/components/tree.html#display]

  • How to set JMS clients to use JVM Invocation layer

    Hi,
    I'm not sure if this JBoss specific (but I'm assuming it's not) so I'll be asking it here. How can I set my JMS clients and Message-Driven Beans to use JVM Invocation layer since the clients and queues will reside in the same JVM.
    Thanks in advance.

    May be that explains why I couldn't successfully integrate ActiveMQ with JBoss. I was using the 3.0 version. I'll try again once I find the time.
    Anyway, do you know how to set JBoss JMS clients and MDBs to use JVM invocation or transport layer instead of UIL2?
    I'm not sure if what I've done is correct But here's what I've done.
    For jvm-il-service.xml, I changed the JNDI reference from "ConnectionFactory" to "JVMILConnectionFactory" since the default service uses "ConnectionFactory". Then I used that reference as my JNDI look up in my JMS client. I'm just not sure how to do this with MDBs. I think I should add an entry in the ejb descriptor file but I need someone to confirm.
    Thanks.

  • How to make a layer from the ADF pivot table invisible?

    Hi all,
    ADF pivot table is a useful component which can be used to provide table data rendering. However, I have not found any method to hide one layer from the row edge (or column edge) of the pivot table.
    For example, please have a look on this demo: [http://jdevadf.oracle.com/adf-richclient-demo/faces/components/pivotTable.jspx]
    There are two layers in the row edge of this pivot table, one is Time, one is Product. For product, there are two categories, one is Tents, one is Canoes.
    Is that possible to make the Product layer invisible from user, while still keeping the two rows of product data for that year showing up? how to do it?
    The problem is that pivot table relies on the product layer to separate the two rows of product data, and if I remove the product layer, only the second row of product data for each year can be shown up.
    Please advise how I can make the Product layer invisible.
    Thanks
    Richard
    Edited by: user12847742 on Oct 6, 2010 12:58 AM
    Edited by: user12847742 on Oct 6, 2010 1:04 AM
    Edited by: user12847742 on Oct 6, 2010 1:10 AM

    Hi, Yiannis,
    Thanks for the clarification.
    First, for clarity, I'd like to point out that you and Richard are inquiring about different functionality. Richard wanted to hide a layer that is logically present on the edge, so that there are still separate rows for Tents and Canoes, but without row headers indicating which row is which. As I noted previously, this is currently unsupported.
    By contrast, you're asking about truly removing a layer from the edge. For rowset DataControls, this can be done using the CubicEditor interface. Given the following PivotTable:
    <dvt:pivotTable id="pivotTable1" value="#{bindings.Record.pivotTableModel}"/>the CubicEditor can be retrieved by calling:
    DCBindingContainer bindingContainer = (DCBindingContainer)ADFContext.getCurrent().getRequestScope().get("bindings");
    CubicBinding cubicBinding = (CubicBinding)bindingContainer.findCtrlBinding("Record");
    CubicEditor cubicEditor = cubicBinding.getCubicEditor();You can then add a layer:
    LayerDefinition layerDefinition = new LayerDefinition("Product");
    cubicEditor.addLayer(DataDirector.ROW_EDGE, 1, layerDefinition);and remove a layer:
    cubicEditor.removeLayer(DataDirector.COLUMN_EDGE, 0);At the end, you'll need to PPR the Pivot Table.
    Hope that helps.
    Jim

  • How to set a sub-role invisible from the role

    Hi guys,
    Our roles are as following:
    Role1
    App1
    App2
    SubRole1
    SubApp1
    SubApp2
    We've assigned SubRole1 to Role1, but we don't want it is shown under Role1, how to set it?
    Many Thanks and Best Regards,
    Xiaoming Yang

    Hi,
    If you do not need these applications/iViews in the navigation hierarchy, then you do not have to do any fancy tricks.
    If all Role1 users should get subRole1 iViews, then just have one role and make those iViews invisible.
    If you want to be able to assign the iViews in subrole1, just create a second role with no entry point (it does not need to be a subrole) and set the permissions so there is no end user permission, and then assign it to users.
    Hope that helps.
    Daniel

  • How to set scrollbar to visible or invisible?

    Dear all,
    How to set scrollbar to visible or invisible?
    Thanks

    Duncan's answer will solve your problem
    but how will you display scrollbar thru stacked canvas if your block is already in one stacked or tab page canvas
    so better to create an item set its background color exactly same as your canvas and make bevel property to null and keep that item where you are displaying scrollbar
    and set its visible property to true or false based on your requirement

  • How to set layer color property via script?

    I'm looking for a way to set a layer's UI color property via script (see attached). Any help would be greatly appreciated!

    jrapczak2 wrote:
    Uhm.. wow. That's crazy complicated
    It is even more complicated to work with multi-selected layers.
    if( app.documents.length > 0 && versionCheck()  ){
         app.activeDocument.suspendHistory("Set Layer's Color", 'changeLayersColor()');
    function versionCheck()  { return app.version.match(/1[1|2]./) >= 11; };
    function changeLayersColor(){
         function setActiveLayerColor( color ) {
              var desc = new ActionDescriptor();
                   var ref = new ActionReference();
                   ref.putEnumerated( charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt') );
              desc.putReference( charIDToTypeID('null'), ref );
                   var colorEnumDesc = new ActionDescriptor();
                   colorEnumDesc.putEnumerated( charIDToTypeID('Clr '), charIDToTypeID('Clr '), color );
              desc.putObject( charIDToTypeID('T   '), charIDToTypeID('Lyr '), colorEnumDesc );
              executeAction( charIDToTypeID('setd'), desc, DialogModes.NO );
         function getSelectedLayersIdx(){
                   var selectedLayers = new Array;
                   var ref = new ActionReference();
                   ref.putEnumerated( charIDToTypeID("Dcmn"), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
                   var desc = executeActionGet(ref);
                   if( desc.hasKey( stringIDToTypeID( 'targetLayers' ) ) ){
                        desc = desc.getList( stringIDToTypeID( 'targetLayers' ));
                         var c = desc.count
                         var selectedLayers = new Array();
                         for(var i=0;i<c;i++){
                             try{
                                  activeDocument.backgroundLayer;
                                  selectedLayers.push(  desc.getReference( i ).getIndex() );
                             }catch(e){
                                  selectedLayers.push(  desc.getReference( i ).getIndex()+1 );
                    }else{
                        var ref = new ActionReference();
                        ref.putProperty( charIDToTypeID("Prpr") , charIDToTypeID( "ItmI" ));
                        ref.putEnumerated( charIDToTypeID("Lyr "), charIDToTypeID("Ordn"), charIDToTypeID("Trgt") );
                        try{
                             activeDocument.backgroundLayer;
                             selectedLayers.push( executeActionGet(ref).getInteger(charIDToTypeID( "ItmI" ))-1);
                        }catch(e){
                             selectedLayers.push( executeActionGet(ref).getInteger(charIDToTypeID( "ItmI" )));
                   return selectedLayers;
         function makeActiveByIndex( idx, visible ){
              if( idx.constructor != Array ) idx = [ idx ];
              for( var i = 0; i < idx.length; i++ ){
                   var desc = new ActionDescriptor();
                   var ref = new ActionReference();
                   ref.putIndex(charIDToTypeID( "Lyr " ), idx[i] );
                   desc.putReference( charIDToTypeID( "null" ), ref );
                   if( i > 0 ) {
                        var idselectionModifier = stringIDToTypeID( "selectionModifier" );
                        var idselectionModifierType = stringIDToTypeID( "selectionModifierType" );
                        var idaddToSelection = stringIDToTypeID( "addToSelection" );
                        desc.putEnumerated( idselectionModifier, idselectionModifierType, idaddToSelection );
                   desc.putBoolean( charIDToTypeID( "MkVs" ), visible );
                   executeAction( charIDToTypeID( "slct" ), desc, DialogModes.NO );
         var colors = ['None','Red','Orange','Yellow','Green','Blue','Violet','Grey'];
         var colorIDs = [charIDToTypeID('None'),
                                  charIDToTypeID( "Rd  " ),
                                  charIDToTypeID( "Orng" ),
                                  charIDToTypeID( "Ylw " ),
                                  charIDToTypeID( "Grn " ),
                                  charIDToTypeID( "Bl  " ),
                                  charIDToTypeID( "Vlt " ),
                                  charIDToTypeID( "Gry " )];
         var dlg = new Window( 'dialog', 'Change Layer Color' );
         dlg.ddColors= dlg.add("dropdownlist", undefined,  colors);
         dlg.ddColors.preferredSize.width = 100;
         dlg.ddColors.items[0].selected = true;
         dlg.ok = dlg.add('button',undefined,'Ok');
         dlg.cancel = dlg.add('button',undefined,'Cancel');
         var results = dlg.show();
         if( results == 1 ){
              var selectedLayers =  getSelectedLayersIdx();
              for( var l=0;l<selectedLayers.length;l++ ){
                   makeActiveByIndex( selectedLayers[l], false );
                   setActiveLayerColor( colorIDs[dlg.ddColors.selection.index] );
              makeActiveByIndex( selectedLayers,false );

  • Setting a Layer Break for GEAR Pro Mastering Edition with EncoreDVD & IFOEdit

    Setting Layer Breaks Manually for Encore/GEAR Projects
    Although we can write straight to a DVD+R DL disc directly out of EncoreDVD 2.0 and we can also create our Master DLT tapes directly out of EncoreDVD 2.0 also, there are times when these options simply are not sufficient.
    For example - we wish to Verify the successful writing of a DLT Tape, or we wish to create a QC disc for our clients in DVD-R DL format.
    Either way, the "option" of using a +R DL disc is often unacceptable.
    Another very good reason for +R DL discs to be NFG is that they are NOT DVD-Video format, and as such tend to expect the layers 0 and 1 to be of equal size.
    Yet another reason could simply be we are using EncoreDVD 1.01, which does not support direct writing of any DL discs at all.
    The solution is to use GEAR Pro Mastering Edition to create your DLT or DVD-R DL disc directly from your Encore project instead.
    And here's how you do it.
    You are going to need copies of both GEAR Pro Mastering Edition, EncoreDVD (any version) and finally a copy of the freeware application IFOEdit http://www.ifoedit.com/. Additionally, we will also need the GEAR Layer Break Calcuulator, provided for free on their excellent support site at http://www.gearsoftware.com/support/documentation/layerbreakcalculator.xls
    Now we are ready - lets look at how it is all done. Don't be put off by what looks like a lot of math here either - this gets easier every time you do it and all it takes is a little common sense and practise.
    The best way to proceed is to use EncoreDVD to build your project to a folder. This will not make any Layer Break settings at all, and will allow us to create a new DL Project in GEAR and also allows GR+EAR to build the UDF/ISO structure for us.
    So once we have written our tested and checked project to a folder, the next step is to close out of EncoreDVD and launch GPME. By the way - if you're not certain that you need the expense of GPME for a one-off project you can simply download their 30 day trial version and use this as it is 100% fully functional in every way - there are no limitations at all.
    When GEAR loads, select to create a new DVD-Video project and be certain you tick the DVD9 box in this screen too. Another window will appear now asking you to locate the folder where the Video_TS files are stored. Point this at the Video_TS folder and GEAR will create a basic DVD9 project for you.
    Next we need to load up the Excel Spreadsheet with the Layer Break Calculator we downloaded earlier. I always use a different machine for this as I don't have Office installed and any open source application that can read an XLS file will do the job. If you don't have one, I recommend either OpenOffice or Star Office to do this. There are a lot of helpful calculators in XLS mode, and you won't regret it. Just try to keep all this stuff well clear of your authoring system though. But I am rambling, and I'm sorry. Back to buiness.
    Once we have loaded up our Layer Break Calculator, we need to enter in some numbers.
    Back over in GPME, where we have our shiny new DVD9 project sat there waiting for instructions, there is a file structure on the lower left hand side of the project screen. Att the top of the list we should see something very much like "VOLUME (projectname) (DVD-Video ISO/UDF)"
    Right-click on this, and select "Properties". A screen will appear with all sorts of numbers in it, and we ignore the lot of them except for the "Total Volume Size in Sectors" - which we need to write down, nip across the room to our spreadsheet, and type the number in right at the top where it says "Total Volume (project) Size"
    Another set of (probably) meaningless numbers appears - and the 2 we are interested in here are the ones where it says "RULES" and specifically "Layer Break Point must be Greater than .....
    And Less than.....
    Write these 2 numbers down, and hop smartly back across to where we have our GEAR project open on our authoring machine. Or simply minimize the spreadsheet if we are doing all this on the same system.
    We now need to click on the folder marked "Video_TS" in the bottom left of the GEAR screen, and on the lower right we need to click once on the bar in the middle above all the VOB files marked "start sector" to arrange all the files in the sequence they will be on the disc. This makes finding our VTS file so much easier.
    Somewhere in that list there will be a file that has that range of numbers in it. If we are really lucky, there will be more than one, which means that one of these will soon become our Layer Break.
    When we have identified the correct file, take a note of it's name - it will be VTS_01_4.VOB or something with a similar structure name wise.
    Next, we need to write down and enter into the Layer Break Calculator the start sector number of the VTS_xx_1.VOB file that holds our values.
    I will try to explain why. If our Sector range is to be found in the example we gave earlier, say VTS_01_4.VOB, we need to note the start sector of the file VTS_01_1.VOB. This is because all these VTS_xx_x.VOB files are all extensions of the same file. They are just in handy blocks so that the Computer can keep track of them without breaking any rules about file sizes. Anyway, we write down the Start Sector of the file VTS_xx_1.VOB where xx is the file where the Layer Break range is to be found.
    Just to try & make the concept clear, if the range were found in the file VTS_05_5.VOB, our start sector we need to write down is VTS_05_1.VOB
    Enter this into the Calculator/Spreadsheet in the place where it says "Chosen Video Object VTS_xx_1.VOB Start Sector.
    Now this will tell us exactly where we need to look next, and tell us we now need to hunt for a cell start sector between a range of sectors.
    It might be something like "1,148,678 and 2,051,052" sectors.
    This is where IFOEdit comes in.
    Launch IFOEdit - and you may as well go back to GEAR, and close the project - but not the application. Go to the "File" menu, and from the drop dow select "Delete GEAR Project" and delete the one we just created, as we will need to change it anyway. Why you will find out later on.
    From IFOEdit, you will see 2 halves of a screen. Down the bottom left there is an "Open" button. Click on this and locate the Video_TS folder, and specifically the file VTS_xx_1.IFO, where xx is the file we know from earlier the Layer Break will be placed.
    Immediately your head will start to ache, your eyes will glaze over & your brain will wave a little white flag, as some serious mathematics suddenly appears (Well, that's what happened to me the first time. I was too fascinated to be confused - sheer bewilderment is perhaps the best expression. And I still don't know what most of it is for.
    The one we are interested in can be found in the upper half, and is called "VTS_PGCITI".
    Click on this, and a lot of little others will appear immediately below it.
    You will see VTS_PGC_1 and so on until you run out of blocks.
    The odds are high our layer break will be in the longest file - but this does not always hold true, so we start at the top & work our way rapidly down. What we are looking for is twofold.
    1 - A Cell Start Sector within our range defined earlier.
    2 - A cell Start Sector flagged as "NON Seamless playback.
    If we can fill both these criteria, we have our layer break.
    Write this number down, and enter it into our spreadsheet - and close down IFOEdit as we are done with it for today.
    Back in the Spreadsheet we are almost done. Once we enter this number in, it will helpfully calculate exactly where in our Virtual image from earlier that sector lies, and will check to see if it is divisible by 16. Don't worry for now why, just know that it has to do this.
    The chances are high it will not be, so the spreadsheet will tell you how many sectors the whole image has to be shifted forwards by, and what the new Cell Start Sector is in this revised image. This is automatic, and you get 2 figures.
    1 - Offset. This number will be between 0 and 15.
    2 - Layer Break Sector.
    Time to go back to GEAR, and in our "Options" drop-down menu we will have another one called "Preferences". In this, we need to tell GEAR to ask us for the start sector to be entered for each file.
    Now we create our project again - but this time GEAR will ask us for the start sector of VIDEO_TS_IFO, and the figure 640 will be highlighted.
    Add our offset figure we were given earlier to this so if our offset was 11, enter in 651.
    GEAR will do all the rest automatically for you.
    One more job to do now.
    Go Back to "Options/Preferences", and under DVD we need to tell GEAR we are changing the Layer Break. Click on the "Change" button, and use the up/down arrows to arrive at our newly discovered Layer Break Value.
    Save the project - we're done. And write down that offset & Layer Break whatever you do.
    You can now write to DVD-R DL, DLT tapes (and if you right-click on your DLT drive in the lower "Devices" screen, and choose "Properties", you can tell GEAR to verify the tape after writing too. It will write both layers first, then verify each one.
    There is, however, a minor "GOTCHA" in GPME when writing DLT tapes.
    It is allowed to set the IDENT.TXT file to be included on the DLT tape by means of a tick box. However, as this file is not actually required for replication in DVD-Video, but only in DVD-ROM - GEAR will not include the file
    i even if the box is ticked
    but it
    i does
    add a pointer to the file in the DDPID file instead. The upshot of this is that a DLT tape where IDENT.TXT has been selected to be included will be
    i rejected by the factory as unusable.
    This is because when they try to verify the DDP image on the tape it will fail as IDENT.TXT is NOT on the tape.
    You must ensure this box is NEVER TICKED - I fell for this one recently, and had to rework 7 DLT tapes.
    There is yet another way to get a DL project to the factory if you do not have a DLT machine, and do not have access to DL discs in the correct format.
    Write the DDP images to 2 single layer discs instead!
    This requires the use of GEAR Pro Mastering Edition again, and is incredibly easy to do.
    What you need to do here is follow the original guides in the FAQ sections for setting the Layer Break manually, but instead of writing the project to DLT tapes or to DVD-R DL/DVD+R DL media, what we do next is write the project to a DDP file on the HDD instead.
    This will result in 2 folders appearing - Layer 0 and Layer 1.
    Each of these has the necessary information for the replication plant to manufacture the discs - all we need to do is get them onto 2 discs instead of 2 DLT tapes.
    This is simplicity itself.
    Launch your burning application.
    Create a new DVD-ROM project.
    Name it (Project)_Layer_1
    Broswe to the 2 folders with the DDP files in them, and add the contents in this exact order
    DDPID
    CONTROL.DAT
    IMAGE.DAT
    (Checksum.txt - optional)
    (Log file - optional)
    Burn the disc.
    Repeat for Layer 1.
    That is all there is to it.
    What will happen at the factory is the Eclipse verification system will look for the DDPID file at the root level of the disc. If it cannot find it, it will assume it is dealing with a standard DVD-ROM disc instead, but if it is there it will know what is going on, load the files, and ask for Layer 1 after it has finished in the normal manner.
    I hope this helps out - if not, please post in the main forums, and I'll try to help out.

    Hi Ryan,
    Yes, you'll only get the LB sector number when you format with one of the "tape images" (go with DDP 2.0). And unfortunately, Gear doesn't allow transfer of DDP or CMF Images to DLT.
    Gear is working on a version that will incorporate DVD-9 making within the program.
    Meanwhile, If you go with the instructions on their site to create a DVD-9, be sure to add: "correct VTS sectors" in the VIDEO_TS folder with IFOEdit, and set the region info in the VMGM_MAT to "0"; and be sure to flag all instances of a cell properly for the layer break, in the case they reside in any Stories that span the Layers.
    But if I may; It's highly recommended that you hire out tests on the resulting DDP image to make sure the layer break did indeed fall where you expected, and that there are no other issues (Same goes with any DDP image destined for replication, created by any other program).
    Or better yet, consider hiring someone to premaster for you (I wonder who? , who also includes navigation proofing, spec compliance testing (MEI and sometimes with a player bank) and verifying the finished Image (EclipseSuite); all for one low fixed price, i.e. no charge in the event a resubmission to me is required (pre consultation, also included, nips lots of common mistakes in the buds). This insures that only a bullet-proof Image is finally sent in to the replicator.
    There I go with commercials again! But for sure, Gear's current DVD-9 method is not for the faint of head; and premastering in general, is not the innocuous activity it appears to be. Real trouble eventually awaits (unless measures are taken), due to the nature of the critter.
    Take care,
    Trai

  • How to set "embed icc Profile" option  to export document as JPEG

    Hi All,
    While exporting the document as jpeg, through File->Export, there is an option "Embed ICC Profile" as figure shows.
    How to set it if I am exporting the document through my program in which I rasterize the document and used 
    the sAIImage->AsJPEG(raster, jpegDataFilter, params);
    I didn't find any option in AIRasterizeSettings or AIImageOptJPEGParams to set this flag.
    plz anyone suggest me how to do so.
    Thanks,
    Rud.

    thanks for you through out help.
    I use the folowing code which executing properly,but there is no effect on JPEG whether the value of jpegparam.s.jpeg.embedICCProfile is 0 or 1.
    /////Start
    ASOptimizationSettings jpegparam;
    jpegparam.fileFormat = asffJPEG;
    jpegparam.s.jpeg.embedICCProfile = isICCProfileEmbeded;
    ASInt32 optID;
    optID = sAIOptSet->GetUniqueOptimizationSettingsID();
    error = sAIOptSet->SetOptimizationSettings(optID, &jpegparam); // after executing this line error = 0
    /////End
    I guess it would  work when we export document as jpeg through AIActionManagerSuite
    not with  rasterizing the layer's art and then exporting them as JPEG  using AsJPEG().
    thanks

  • How to set portal authorization in ABAP Webdynpro application

    Hi All,
    Do you have an idea how to set the visibility for Group UI element based on the Portal user authorization in ABAP Webdynpro , for example if the portal user A(or group A), logins into the portal on click of the ABAP Webdynpro IView then we need to set  invisible (hide) the Group UI element  in webdynpro ABAP Application.
    Do you have any sample code on the same to handle the portal authorization in Webdynpro ABAP?? , please let me know if couldnu2019t understand this requirement or my explanation
    Thanks,
    PortalUser100

    Hi Kris,
    Thanks for your reply.
    Like however we passed the UserID, can we pass Group ID also to the ABAP Webdynpro application??
    Can u get me other things, how to copy of the existing component and i want to give the new name for the component and there i need to modify, i dont want to disturb original component  before copy...let me know the procedure for the same??
    Regards,
    PortalUser100

  • How to set selection screen

    I have a question that ...
    i have 2 options --
    when select 1st option , show group1 screen
    when select 2nd option, show group2 screen
    like the follow ..which is pretty work!....but i have another question that how to set the screen field ..
    my question is that if i select group1 screen...i want to set
    if S1_EBELN = '' and S1_IHREZ = ''.
        message e398 with 'pls input one of these two options!'.
      elseif S1_EBELN ne '' and S1_IHREZ ne ''.
        message e398 with 'Only one of these two options input is allowed&#65281;'.
      endif.
    i've tried to insert these statement within the LOOP...but not work ......
    so can anyone know how to set?
    PARAMETERS:
    R1 RADIOBUTTON GROUP OPT1 USER-COMMAND R DEFAULT 'X'.
    PARAMETERS:
    R2 RADIOBUTTON GROUP OPT1.
    SELECTION-SCREEN BEGIN OF BLOCK RPT1 WITH FRAME TITLE TEXT-001.
    SELECTION-SCREEN SKIP 1.
    SELECT-OPTIONS: S1_BUKRS FOR EKKO-BUKRS MODIF ID ABC. 
    SELECT-OPTIONS: S1_EBELN FOR EKKO-EBELN MODIF ID ABC . 
    SELECT-OPTIONS: S1_IHREZ FOR EKKO-IHREZ MODIF ID ABC .  
    SELECTION-SCREEN END OF BLOCK RPT1.
    SELECTION-SCREEN BEGIN OF BLOCK RPT2 WITH FRAME TITLE TEXT-001.
    SELECTION-SCREEN SKIP 1.
    SELECT-OPTIONS:  S2_BUKRS FOR EKKO-BUKRS MODIF ID DEF.
    SELECT-OPTIONS: S2_MBLNR FOR MKPF-MBLNR MODIF ID DEF.   
    SELECT-OPTIONS: S2_XBLNR FOR MKPF-XBLNR MODIF ID DEF .   
    SELECTION-SCREEN END OF BLOCK RPT2.
    IF R1 = 'X'.
        LOOP AT SCREEN.
          IF screen-group1 = 'DEF'.
            screen-input = '1'.
            SCREEN-required = '1'.
            SCREEN-INVISIBLE = '1'.
            screen-input = '0'.
            screen-output = '1'.
            screen-active = '0'.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
    ELSEIF R2 = 'X'.
        LOOP AT SCREEN.
          IF screen-group1 = 'ABC' .
            screen-active = '0'.
            screen-input = '0'.
            screen-output = '1'.
            MODIFY SCREEN.
          ENDIF.
        ENDLOOP.
      ENDIF.

    Modified ur code .
    tables : ekko, mkpf.
    PARAMETERS : R1 RADIOBUTTON GROUP RG USER-COMMAND R DEFAULT 'X'.
    PARAMETERS : R2 RADIOBUTTON GROUP RG .
    SELECTION-SCREEN BEGIN OF BLOCK RPT1 WITH FRAME TITLE TEXT-001.
    SELECTION-SCREEN SKIP 1.
    SELECT-OPTIONS: S1_BUKRS FOR EKKO-BUKRS MODIF ID ABC.
    SELECT-OPTIONS: S1_EBELN FOR EKKO-EBELN MODIF ID ABC .
    SELECT-OPTIONS: S1_IHREZ FOR EKKO-IHREZ MODIF ID ABC .
    SELECTION-SCREEN END OF BLOCK RPT1.
    SELECTION-SCREEN BEGIN OF BLOCK RPT2 WITH FRAME TITLE TEXT-001.
    SELECTION-SCREEN SKIP 1.
    SELECT-OPTIONS: S2_BUKRS FOR EKKO-BUKRS MODIF ID DEF.
    SELECT-OPTIONS: S2_MBLNR FOR MKPF-MBLNR MODIF ID DEF.
    SELECT-OPTIONS: S2_XBLNR FOR MKPF-XBLNR MODIF ID DEF .
    SELECTION-SCREEN END OF BLOCK RPT2.
    at selection-screen output.
    IF R1 = 'X'.
    LOOP AT SCREEN.
    IF screen-group1 = 'DEF' .
    screen-active = '0'.
    MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    ENDIF.
    IF R2 = 'X'.
    LOOP AT SCREEN.
    IF screen-group1 = 'ABC' .
    screen-active = '0'.
    MODIFY SCREEN.
    ENDIF.
    ENDLOOP.
    ENDIF.
    at selection-screen .
    if r1 = 'X'.
    if s1_ebeln[] is initial and s1_ihrez[] is initial..
    message e001(zxx) with 'pls input one of these two options!'.
    endif.
    if NOT s1_ebeln[] IS initial.
    IF NOT s1_ihrez[] IS INITIAL.
    message e001(zxx) with 'only one entry in Ebeln or Ihrez is
    allowed'.
    ENDIF.
    ENDIF.
    endif.
    START-OF-SELECTION.
    WRITE:/ 'hi'.
    ***add on
    split the text into two texts .
    <b>if NOT s1_ebeln[] IS initial.
    IF NOT s1_ihrez[] IS INITIAL.
    message e001(zxx) with text-001 text-002.
    *'only one entry in Ebeln   = text-001
    or Ihrez is allowed'.       = text-002.</b> 
    regards,
    vijay

  • Set current layer question

    I've noticed in an action I have, it has a step that says "Set current layer".
    What exactly is that and how do you use it?  I want to add it to an action I'm creating.

    That usally means setting a layer property of the layer that is
    active in that action step.
    If you click the little flyout arrows in that step (set current layer),
    most of the time you can see what the actual step is.
    If you want to know just about everthing that has to do with actions,
    take a look at action central. Go to the lnk that says "Mother of all Tutorials" and download it.
    It's kind of a hard read, but very complete.
    http://www.atncentral.com/links.htm
    Also the help for cs4 is good for the basics.
    MTSTUNER

Maybe you are looking for