Get the 'Subclass information' property

Dear members,
Is there a way to read the 'subclass information' property of a block ?
Get_block_property doesn't have this feature.
Many thanks,

Well, I can understand that changing the subclass information at runtime might be quite tricky, but all I wanted was to read it, and that didn't seem so difficult !
I just wanted to make the difference between a master block and a detail block...

Similar Messages

  • How do I get the user information for a page?

    I would like to display information about the person that created a page in CQ.  I know I can get the createdBy information from the page properties, but how can I turn that into a user object where I can get more detialed information about that user?

    If you are within an OSGi bundle you can use the SlingRepository Service. Now it depends how you develop your OSGi services and components. I use the maven scr plugin for this. With this plugin it is possible to get references to services with java annotaions.
    Example:
    @Component(name="SampleService",
            label = "SampleService",
            description = "SampleService",
            immediate = true, enabled = true, metatype = true)
    @Services({ @Service(value = SampleService.class) })
    @Properties({
    @Property(name = "service.description", value = "SampleService"),
    @Property(name = "service.vendor", value = ") })
    public class SampleServiceImpl implements SampleService
    @Reference(policy = ReferencePolicy.STATIC)
    private SlingRepository repository;
        public void openAdminSession() {
            Session session = null;
            if (repository != null) {
                try {
                    session = repository.loginAdministrative(null);
                    //do something here
                } catch (RepositoryException e) {
                    LOG.error("Unable to open admin session:" + e.toString());
                } finally{
                                              if(session != null){
                          session.logout();
    To access a service from a JSP page you can use the reference of the SlingScriptHelper. You have to use the <cq:defineObjects/> tag.
    Example jsp:
    <cq:defineObjects/>
    SlingRepository repository = sling.getService(SlingRepository.class);
    Session session = null;
            if (repository != null) {
                try {
                    session = repository.loginAdministrative(null);
                    //do something here
                } catch (RepositoryException e) {
                    LOG.error("Unable to open admin session:" + e.toString());
                } finally{
                                              if(session != null){
                          session.logout();

  • IPhone SDK: UIWebView - How to get the anchor information from  URLRequs

    I was planning to use the UIWebView but i am stumped now.
    When the user clicks on a hyperlink, the web view delegate shouldStartLoadWithRequest is called and it does not contain the anchor information.
    For e.g. if the href is say #01_02. This to a normal browser is a local anchor. The URL in the NSURLRequest contains just the file name information not the anchor.
    In my particular case a anchor can be some other view of the topic which i will generate and keep it ready for the browser at this point. But since i don't get the anchor information it just shows the current page.
    Is there a way to get the original value encoded in the HREF?
    Thanks in advance,
    -TRS

    I may not have understood your question but if you want to pull out the anchor information out of a request, have you tried the fragment property of the NSURL object?
    // request is type (NSURLRequest *); within shouldStartLoadWithRequest
    NSString *fragment = \[\[request URL\] fragment\];
    Usually this will have the anchor without the #, in your case 01_02.

  • How to get the subclass from a super class( or interface)

    hi,
    I want to get subclass from a super class (or a interface), how to do that? the subclass of a interface means the class implementing the interface.
    for example;
    List ls;
    I want to get the subclass of ls, i.e., LinkedList, Stack, Vector......
    AbstractList al;
    the subclass of al, i.e., ArrayList, Vector.......
    thanks
    Aiwu

    List ls = new ArrayList();Since ls has been declared as a List we can only use List methods
    with it. This is a good thing because we might later want to change
    it to some other sort of List.
    I want to get subclass from a super class (or a interface), how to do
    that?The instance of the subclass declared above did not really come
    from the super class. A class "knows nothing" about its
    subclasses: many sub classes would not even exist at the time
    the class was written.

  • Getting the "last modified" property of a file located on HTTP server

    Hello
    I'd like to read a file (on http server) according to his "last modified" time. Can anybody tell me how to get the "last modified" property in a J2ME/CLDC application?
    Thanks in advance

    the file that you want get is in the server?
    you can use java.io.File.lastModified() which in J2SE to get a long num.
    then you can transform long int to orther class that you need ,and do this in server.
    at the end of all you can send this info to J2ME/CLDC app with stream.

  • How to get the log information when using a class?

    Hi All,
    I have a simple question, which I don't know how to solve. I am using org.apache.commons.logging.Log and LogFactory to do some logging. A typical situation is exemplified in the following code snippet.
    import org.apache.commons.logging.Log;
    import org.apache.commons.logging.LogFactory;
    class LogClass {
        private static final Log LOG = LogFactory.getLog(AClass.class);
        public void logit(){
            LOG.debug("This is the debugging log.");
    public class AClass{
        public static void main(String[] args) {
            LogClass l=new LogClass();
            l.logit();
    }But this way, I do not get the log information from the class LogClass. Could anybody please help?
    Many thanks.

    jschell wrote:
    jverd wrote:
    ...configuration in log4j.xml or log4j.properties.And far as I recall you need one of those two also. If there is no config then there is no output.I thought it used some default config if no file is present, but I could be mistaken. Either way, it adds to the possible problems that the OP could be having, any of which are consistent with his rather vague question.
    1) He's passing the wrong class to the LogFactory, and hence getting a logger with the wrong name, so he's seeing a different name than he expects in the output that's being produced.
    2) His config file does not contain the proper format to include the actual classname, independent of the logger's name, so he's missing a piece of desired information in each line of the output that's being produced.
    3) His config file indicates a threshold that's less verbose than the level at which his code is logging, so no output is present when he wants it.
    4) His config file is missing (or not where it's expected to be), so no output is being produced at all.
    5) His config file is missing (or not where it's expected to be), so a default level or format is being produced, effectively the equivalent of one of the misconfigurations described in #2 and #3.
    Since the OP seems to have vanished, we may never know.

  • Failed to get the document information (LO 26315)

    Hi,
    I have to create an Xcelsius dashboard where I use a Live Office connection based on a WebI-report. The WebI is created on top of a BEx Query.
    I need to pass 12 parameters to the WebI-report in orde to get the correct data.
    Everything works fine in design-time, but when I want to preview the dashboard, I get the error: Failed to get the document information (LO 26315).
    After investigating the issue, I've noticed that everything works fine when the parameters I have to pass, are only created in the WebI-report. But in my case it is a BEx variable that causes the error.
    There is no possible way that I can recreate the BEx variable in the Universe (There are restricted key figures, calculated key figures and cell restrictions in the BEx query).
    My question: is there a way to pass a parameter from an Xcelsius dashboard to a WebI-report via a Live Office connection to a BEx variable?
    Lieven

    Fred,
    on the SAP Notes Search page on sdn.sap.com, you can enter the note number in a text field at the right side of the page, just above the Search Option part.
    Just enter Note 1357924 in that text field and press the blue icon with the arrows next to it. Thiw ill show the corresponding note.
    Lieven

  • I tunes has stopped working in windows 7 and I don't know how to get the crash information that everyone else seems to get to know what the cause is....any help?  I have a toshiba windows 7 computer.

    I have a toshiba computer and it is windows 7, recently after I installed imatch everytime I open itunes I get the message 'i tunes has stopped working' and windows cannot find a solution and has to close.  There is no solution and I don't know how to get the crash information on my computer....can anyone help as I want to finish downloading all my songs to match to be available on my mac products.

    Re: That garbage is unreadable.
    If you really want help, stop messing with the fonts and post so that others can read and offer suggestions.
    Or better yet... try a search, I'm certain you'll find a solution to whatever issue you're experiencing.
    I have found that many times it is the things that make you most angry that push you to action. This was the case here. Thank you for causing me to get so angry that I found the answer myself.

  • How can I get the disk information in Solaris 9

    I am new to Solairs9. I use the format utility to list my partitions, but there are many unassigned partitions. I pasted the format response below:
    # format
    AVAILABLE DISK SELECTIONS:
    0. c1t1d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
    /pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w21000011c6413e10,0
    Specify disk (enter its number): 0
    format> partition
    partition> print
    Current partition table (original):
    Total disk cylinders available: 14087 + 2 (reserved cylinders)
    Part Tag Flag Cylinders Size Blocks
    0 root wm 302 - 13482 63.96GB (13181/0/0) 134129856
    1 swap wu 0 - 301 1.47GB (302/0/0) 3073152
    2 backup wm 0 - 14086 68.35GB (14087/0/0) 143349312
    3 unassigned wm 0 0 (0/0/0) 0
    4 unassigned wm 0 0 (0/0/0) 0
    5 unassigned wm 0 0 (0/0/0) 0
    6 unassigned wm 0 0 (0/0/0) 0
    7 home wm 13483 - 14086 2.93GB (604/0/0) 6146304
    The part number from 3 to 6 are unassigned. What does this mean? How much space of these unassigned partitions? How can I mount these unassigned partitions to my local directories?
    Thanks.

    "+How can I get the disk information in Solaris 9+ "
    This was cross-posted to the Solaris 9 forum as well.
    http://forum.java.sun.com/thread.jspa?threadID=5223643

  • Cannot access external data , Failed to get the document information.

    Hi All,
    In my dashboard there are live office connections which has optional prompts defined in SAP BI. I have bound the cells to these prompts in live office object properties.
    There are no errors while refreshing the LO connections from excel sheet.
    But when i run that dashboard and give BLANK value for that prompt then it throws the error :
    Cannot access external data , Failed to get the document information. (LO 26315).
    Reply highly appreciated.
    Thanks & Regards,
    DJ

    Hi Hardik,
    I am building a similar solution as yours connecting webi reports to Bex queries and reading the webi data through live office into the dashboards. I am using almost similar versions as yours - BW 7.1 SP5, BO 4.1 SP4, Dashboards and Live Office SP4 versions. I am facing issues setting up the live office connections itself. I create the Live office connections within an excel and when I try to import this excel spreadsheet into my dashboard designer, it runs forever and crashes.
    Could you please list out the steps you performed to get the Dashboard to preview live office data? Do you have OLAP connections for BW cubes and created WebI reports using these connections or You created a Universe on top of the Bex Queries?
    It would be great if you could share the steps performed.
    With respect to your issue, check if the report engine service is running. Do you have any error message details apart from this error?
    Thanks.
    Regards,
    Rohini.

  • I need to get the cluster information using"MSCluster.Cluster" object

    Hi,
    Please anyone solve my problem ? I need to get the cluster information using"MSCluster.Cluster" object.
    Set objCluster = CreateObject("MSCluster.Cluster")
    objCluster .open <clustername>
    If i run the vbscript " Microsoft VBScript runtime error: ActiveX component can't create object: 'MSCluster.Cluster' " error is thrown.
    Kindly explain what is the issue and what can i do ? 
    -Sundar.

    this question was closed and answered a long time ago.
    Post questions about WS2012 in th WS2012 forum.
    The cluster object will no longer work in WS2012.  Use the supplied CmdLets and utilities.
    post future questions in the WS2012 forum.
    ¯\_(ツ)_/¯

  • Once I purchase a new application from Apple store by using credit card, I used to get the billing information in my mail the next day. But now a days it is not happening why?

    Once I purchase a new application from Apple store by using credit card, I used to get the billing information in my mail the next day. But now a days it is not happening why?

    Probably volume of purchases on Apple Systems
    by the way this is a user to user forum  no-one from Apple here

  • How to I get the card information to none so I can download my free apps it won't let me it keeps asking for card information

    How to I get the card information to none so I can download my free apps it won't let me it keeps asking for card information

    Is it a new account ? If it is then unless the instructions on this page are followed when creating an account : http://support.apple.com/kb/HT2534
    then credit card details will need to be entered before the account can be used to download any item from the store - you should be able to remove your card details after entering them

  • In the iSO 7 in the map app: Why we cann't get the direction information of the riad in the meddileast region

    I cann't get the direction information of the roads in my country Saudi Arabia

    Turn bu turn navigation in Saudi Arabia is not supported.
    http://www.apple.com/ios/feature-availability/

  • To get the color View property from a file

    How can get the color view property value of a framemaker file using framemaker API ?

    Hi Asha,
    Color views do not have object handles; rather, they are modified at the color (FO_Color) object level. That is, each color has a property called FP_ColorViewCtl which defines its behavior in each of the six built-in color views. If you want to modify the makeup of a color view, you should modify the colors themselves with respect to the desired view.
    The FP_SpotColorView property only sets the active view... it doesn't modify the view.
    Search the FDK ref for FP_ColorViewCtl and you find an explanation, under the FO_Color object properties.
    Russ

Maybe you are looking for

  • Members only area setup to query existing database before allowing creation of account

    I followed this walkthrough: Walkthrough: Creating a Web Site with Membership and User Login It was very helpful in creating the members login area. My next step is to link it to an existing database, so it will make sure the person who is trying to

  • Problem printing custom size document

    I am trying to print a custom size document (4.4"x7.2") that I created in Microsoft Word.  I have set the Page size in Word, tried to create a custom size page in my Printer, and am unable to select this paper size in the properties of my printer (us

  • How i look my Photos on I cloud Id or account ???

    How i look my Photos on I cloud Id or account ???

  • How to invoke web services BPEL from ODI

    Hi All, I tried to invoke a BPEL Web service through OdiInvokeWebService tool, and throws me the following message: Request invalid. NullPointerException* This is the WSDL that I need to consume <?xml version="1.0" encoding="UTF-8"?> <WL5G3N0:definit

  • Why only one leading ledger?

    Hi I am aware that in new GL you can have only one leading ledger. you can have as many non leading ledgers. Only leading ledger values flows to CO. what can be the possible reasons for the restriction of "only one leading ledger"??? thank you in adv