JCR-Which of the below content models holds good?

Website structure in CRx:
website
    English(Page)
       About us(Page)
       Physicians(Page)
       Specialities(Page)
       News(Page)
       Clinical Trails(Page)
       Jobs(Page)
   database(node-nt:unstructured)   
       physicians(node-nt:unstructured) 
1.Which location to store physician1 is appropriate? Under website->English->Physicians(page) or under website->database->physicians?
2.Which of the following three content models is more appropriate?
speciality and language in path to physician
1.database->physicians->language->speciality->physician1(lastName, firstName, sex, location)
2.database->physicians->speciality->language->physician1(lastName, firstName, sex, location)
speciality and language as properties of physician:
3.database->physicians->physician1(lastName, firstName, sex, location, speciality, language)
Thanks,
Sravan.

it is better to have it under database, as you would be giving permission to the content nodes to all user, it would be easier to maintain the db nodes separately,
i would also suggest giving speciality and language as tags and adding these tags to ur physician1 node, also if you feel there will be more than 100 physicians it would be better to create more tree structure inside that
you could also check this links
http://dev.day.com/docs/en/cq/current/howto/model_data.html
http://dev.day.com/docs/en/crx/current/developing/data_modeling.html
http://dev.day.com/content/ddc/blog/2011/05/efficient_management.html

Similar Messages

  • How to insert row in the middle of a table so that the below content will move to another page?

    I'm making a huge form in LiveCycle Designer. I want to be able to add rows in the middle o the table but in a way that the content below will move down automatically in a way it doe's in Word for example.
    Sometimes I am adding a very high new row in the middle of a page and I want the content in the below rows to be moved to another page and if it is necessary I want a new page to be automatically created on the bottom of a document or something.
    Is this possible or do I have to move everything by hand if I add new row to a table?

    If you are adding the rows at the runtime by clicking a button, then you have to use the instance Manager to add rows.. It will add rows at the end and then you need to write code to move the row at the desired location by using the moveInstance method of the instanceManager.
    If you are adding a row at the design time, then you can right clcik the row and choose to add rows below.
    Thanks
    Srini

  • Content model and transport in system using different repository

    Hi experts,
    In our development environment, we generated a content model for incoming post document
    storing in a content server.
    As the content model have been generated for this specific repository, I assume that this content model
    will not work properly in an other environment using a different repository if we transport it. Am I correct?
    Is it possible to change directly the content model assignment to a new repository in the target environment?
    Or we have to generate a new content model in the target system using the initial content model as a template and assigning the
    correct repository? In this case, we will have to maintain each content model in all the differents environments...
    What are the best practises to handle this situation?
    Thanks in advance for your help !
    Regards
    Frédéric

    Dear Frederic,
    It is possible to transport such model. You will just need to change the setting of the storage category to point to the new content server in the new system- transaction OACT. Storage category is attribute called STORAGE_CAT in the virtual PHIO class of the content model( ends with **V).
    Please note that the content model should be transported in its creation language.
    Best Regards,
    Pragya

  • Setting the correct content type

    Hi,
    We store files in a database and the actual uploading and retrieving process works very well.
    However, when serving a request for a file I would like to set the content type the browser can read.
    An example: a httpservletRequest header "accept" comes back with */* - accepting all. Say the file requested is a xls spreadsheet. Since the accept header does not give me any information about the accepted content types, the following possibilities arise for a xls spreadsheet:
    - application/excel
    - application/vnd.ms-excel
    - application/x-excel
    - application/x-msexcel
    Same thing for power point files (.ppt) and others.
    Which of the listed content types do I set as the contentType for the HttpServletReponse so that the browser displays the information correctly?
    Whenever possible I would like to avoid the save dialog and display the file inline in the browser.
    Thanks for the help,
    -Rogier

    Here is the complete list of the right MIME types: http://www.w3schools.com/media/media_mimeref.asp
    You can retrieve it from filename by URLConnection#guessContentTypeFromName(), or add an extra field to the database which saves the MIME type.
    Checkout this FileServlet example for some insights: http://balusc.xs4all.nl/srv/dev-jep-fil.html

  • Which is the best API for creating restful web services.

    Hi guys,
    I have tried a lot of apis to create a restful web service. But none of them has perfect documentation or examples. Which is the best one that has good support and future.

    "Best" automatically implies opinions and speculation; one I personally believe has a bright future is Jersey. Jersey is the reference implementation (RI) for [JSR-311|http://jcp.org/en/jsr/detail?id=311] ("The Java API for RESTful Web Services" or JAX-RS).

  • In the case 161 : Price of goods mvt will become negative

    Hi,
    I am facing a problem, I have a scenario of return PO in which invoice has been done before GR(161).
    delivery and GI having qty of 976 but by mistake done the GR with 1000 qty, So I have reverse the GR(162)
    of 1000 qty but now when trying to post the GR(161) with 976 qty against outbound delivery, it's giving the below error:
    Price of goods mvt will become negative
    Message no. M7330
    Can anybody guide me regarding this.

    Hi,
    Please check below sap notes for the same
    406097 - M7330, M7301 with GR for returns purchase order
    1442299  -MIGO: M7330 for returns after invoice receipt
    667193  -IS-OIL Returns of Purchase order items with excise duty
    805799-  MIGO: Returns valuated incorrectly after invoice receipt
    Thanks & Regrads,
    Sandesh Sawant

  • Which Image should we need for the below model router 2951 to support 4 Byte ASN number ?

    Hi All,
    Which Image should we need for the below model router 2951 to support 4 Byte ASN number ?
    CISCO2951/K9
    Cisco 2951 w/3 GE 4 EHWIC 3 DSP 2 SM 256MB CF 512MB DRAM IPB
    PWR-2921-51-AC
    Cisco 2921/2951 AC Power Supply
    CAB-ACSA
    AC Power Cord (South Africa) C13 BS 546 1.8m
    HWIC-BLANK
    Blank faceplate for HWIC slot on Cisco ISR
    ISR-CCP-EXP
    Cisco Config Pro Express on Router Flash
    MEM-2951-512MB-DEF
    512MB DRAM (1 512MB DIMM) for Cisco 2951 ISR (Default)
    MEM-CF-256MB
    256MB Compact Flash for Cisco 1900 2900 3900 ISR
    SM-S-BLANK
    Removable faceplate for SM slot on Cisco 290039004400 ISR
    SL-29-IPB-K9
    IP Base License  for Cisco 2901-2951
    S2951UK9-15501T
    Cisco 2951 IOS UNIVERSAL
    EHWIC-1GE-SFP-CU
    EHWIC 1 port dual mode SFP(100M/1G) or GE(10M/100M/1G)

    > Can someone suggest ?
    a forum is no realtime-communication ... ;-)
    For the ISR G1, it was supported from 12.4(24)T, so I would assume that your ISR G2 has this feature if you are running 15.x.
    EDIT: The Feature-navigator says that it's supported starting with 15.1(2)T.

  • What is the correct CIM model and CR content version to import into SLD?

    Hi All,
    I just met a difficulty that I can not find the correct import version of CIM model and CR content.
    Could anyone share some valuable suggestions?
    Situations now:
    I installed ECC6 SR3 with ABAP+ Java stacks, after installation successfully, I logged onto SLD through http://xxx:50000/sld
    since my CIM model and CR content version is too low, so I want to upgrade it.
    The currect version is as below:
    Model Version (sld/new):     1.5.24
    SAP CR Content Version (sld/new):     SAP_CR 2.0 (produced 03/17/2005)
    Namespace     Model Version     Classes     Instances     Associations     Total Objects
    sld/active       1.5.24               908     36381     60183             97472
    I have read note 669669 carefully and downloaded all the relevant versions before updating, the the results are not correct. something like "Unknow status -1" "import anyway" appears.
    So, could anyone tell me the correct update file and sequence?
    Thank you very much in advance.
    Best regards,
    Nick

    Hi Raghu,
    Thanks for your quick reply.
    I have downloaded 5 files:
    cimsap51506_0-20005942.zip     SP06 for SAP CR CONTENT UP TO 2009
    CRDelta1418_0-10003379.ZIP     SP18 for SAP CR CONTENT 2.0
    CRDelta1511_0-10004549.ZIP     SP11 for SAP CR CONTENT UP TO 2007
    CRDelta41514_0-10006428.ZIP     SP14 for SAP CR CONTENT UP TO 2008
    CRDelta51506_0-20005942.ZIP     SP06 for SAP CR CONTENT UP TO 2009
    and the update sequence are the same as above, that is to say, first I update CIM model version successfully from 1.5.24 to 1.5.45, and then, I upload CRDelta1418_0-10003379.ZIP which gave me an error message "Unknown status -1", even how many times I click "Import anyway", it's useless.
    after then, I tried to upload CRDelta1511_0-10004549.ZIP directly, but it also refused. warning message is "The selected aggregate import is not applicable to the current content version SAP_CR 2.0 of the target namespace.", I clicked button "Import anyway", but it's useless since there contains 0 objects, I don't know why, the message shows "The import will upgrade the content of export line SAP_CR from the current version 2.0 to version 4.0.
    Contains 0 objects."
    The file CRDelta1511_0-10004549.ZIP is under SAP CR CONTENT UP TO 2007, why its version is 4.0? is it because I need to firstly update to 3.0? and where can I find version 3.0?
    I really appreciate your kind help.
    Best regards,
    Nick

  • I upgraded my iPod Touch 4th Gen yesterday.  Now it won't play music, which is the main thing I use it for.  Over 11,000 songs [it's a 64GB model] -- will I actually have to restore the device and re-add all that music?

    I upgraded my iPod Touch 4th Gen yesterday.  Now it won't play music, which is the main thing I use it for.  Over 11,000 songs [it's a 64GB model] -- will I actually have to restore the device and re-add all that music?
    [Music files are still there, and I can play them on my computer directly from the iPod [just one track at a time] but not in the usual way, through headphones.]
    On the Summary page of iTunes for the iPod, it shows 50-plus gigabytes of "Other" content and no music, which was not previously the case.  I assume this is related to the problem.
    I can bring up individual tracks on the iPod and see cover art, but cannot play the music.

    iCloud is free, iTunes match is $25 a year.
    I had the same problem and when I went to Settings I had 0 songs, even though they were obviously still there since I only had 15GB free on my 64GB device.
    I decided to do a complete reset/restore of my 4th gen iPod Touch, Bad move! I've been messing with it for hours, and it simply won't restore--it keeps hanging on a black screen with an Apple logo and a progress bar at about 10%, sometimes it goes completely blank and tries again, with the same result. (I've posted my question/plea for help here: https://discussions.apple.com/message/19735862 )
    I'm ready to bang my head against the wall! I can put the device in recovery mode, connect to iTunes on my computer, and get it back to the setup screen, but when I go through the process again and try to do an iCloud backup I get the same reset/restore loop.
    I could start from scratch, but I really, really, really don't want to go through all of my hundreds of apps, reinstall them one by one, etc. etc. etc.
    I thought that once I started using iCloud, I didn't need to sync with iTunes anymore--guess I was wrong.

  • XML Parser Message: Element series is not valid for the content model

    Hello,
    I work with FrameMaker 8 and DITA.
    I change the element prodinfo in the topic.edd from:
    General rule: (prodname), (vrmlist), (brand | series | platform | prognum | featnum | component)*
    to:
    General rule: (brand | series | platform | component)*
    When I import the element definition to the template everything is okay.
    When I insert the elements metadata, prodinfo, brand, series, platform and component into a topic I get the XML Parser Message that the element brand is not valid for the content model (prodname,vrmlist, ((brand|series|platform|prognum|featnum|component))*).
    When I delete the element brand in the topic I get the XML Parser Message that the element series is not valid for the content model (prodname,vrmlist, ((brand|series|platform|prognum|featnum|component))*).
    I change the element prodinfo in the topic.edd to:
    General rule: (brand)?, (series)?, (platform)?, (component)?
    ...and get the same Parser Message.
    I do not understand that. Is not it allowed to change the EDD this way without changing the DTD?
    With kind regards
    Nina

    Hi Nina...<br /><br />In general, the EDD and DTD need to sync up. You can remove elements from an EDD element definition's general rule, as long as the resulting elements are still valid to the DTD. But if changing a general rule creates an invalid structure, you'll need to also change the DTD to allow the revised structure.<br /><br />With DITA, it is common to remove inline elements from block-level elements. For example, you might want to remove the <msgblock>, <msgnum>, and <msgph> elements from the general rule of the <p> element .. this can be done easily in the EDD and the resulting structure remains valid with the DTD.<br /><br />However, what you're doing leaves the <brand> element as a child of <prodinfo> .. which is invalid. You'll get these errors when saving a file, since this is when the file is validated against the DTD.<br /><br />I do not recommend modifying the structure in such a way that requires you to modify the DTD. If you really need to do this, then you should consider making a specialization to support your revised model.<br /><br />I hope this helps.<br /><br />Cheers and Happy New Year!<br /><br />...scott

  • OATS Enhancement: Verify the response contents of http requests which enclosed by begin/endconcurrent

    Recently I’m testing the Fluid UI with OATS 12.4.0.2.
    In this test, since the browser get all tiles in current page simultaneously, I have to simulate this behavior in OpenScript/OLT.
    Then I put all those http requests into a concurrent block ( marked by begin/endconcurrent statments) and it works fine.
    But this bring in a limitation: so far, the OATS doesn’t support to verify the http response contents if those http requests resided inside the concurrent blocks.
    So I did an enhancement for OpenScript to overcome this limitation. I think it might useful if you have similar test scenario.
    How to use it:
    Put the attached file ConcurrentHTTPService.java into your OpenScript project folder ( same folder as where your script.java living).
    Replace the alias line for http in script.java, the below is after replacement:
    //@ScriptService oracle.oats.scripting.modules.http.api.HTTPService http;
    @ScriptService ConcurrentHTTPService http;
      3. Put your http.get inside concurrent block as usual:
    http.beginConcurrent("Get_Tiles_Concurrently");
    //The below IDs are useful for later. We use this ID to identified the http requests inside the concurrent block.
    //If you dn’t have those IDs, it’s OK, we can use the full URL string (including all parameters)to do the same thing,
    //but the full URL is very long, and I hate the screen were occupied by URLs…
    http.get( 193, "http://Page1",...);
    http.get( 194, "http://Page2",...);
    http.endConcurrent("Get_Tiles_Concurrently");
      4. After endConcurrent statement, We can use the following methods to get the http response content by RecID or full URL:
    //Those methods should be used after the endConcurrent statement
    //Get the response contents:
    //Please reference the http.getLastResponseContent method for the explain of parameters.
    info("Resp 193/Page1:" + http.getLastResponseContentForConcurrent(193,Source.Html));
    info("Resp 193/Page1:" + http.getLastResponseContentForConcurrent("http://Page1",Source.Html));
    //Verify the response contents:
    //Please reference the http.AssertText method for the explain of parameters.
    http.AssertTextForConcurrent(193, "Text Match Name", "Key_word_should_appear_in_response_content_of_request_193/page1",
        Source.Html, TextPresence.PassIfPresent, MatchOption.Exact);
    http.AssertTextForConcurrent(("http://Page1", "Text Match Name", "Key_word_should_appear_in_response_content_of_request_194/page2",
        Source.Html, TextPresence.PassIfPresent, MatchOption.Exact);
    Done!
    Thank glenn.s in this thread: How to test asynchronous web service.

    I think I have the solution to your dynamic addressing problem, but I have a problem combining HTTP authentication with dynamic address resolution.
    I've got an external service that requires basic authentication and I've handled it successfully by adding a <MustSupportBasicAuthentication> block to the WSDL, as described in the article "Basic Authentication in HTTP SOAP BC" (http://wiki.open-esb.java.net/Wiki.jsp?page=HTTPBasicAuthentication). This works perfectly, causing the HTTP BC to send credentials every time it accesses the external service.
    Now I want to make the URL of this external service dynamic (i.e., read it at run time from a configuration mbean). I followed the example from the article "Using Dynamic Address feature" (http://wiki.open-esb.java.net/Wiki.jsp?page=UsingDynamicPartnerLinks), which shows you how to send an endpoint reference (EPR), in the form of an <EndpointReference> block. This also works fine.
    (I believe this last technique is the solution to your dynamic addressing problem. I've used both with and without BPEL. To use it outside of BPEL, you make a DocumentFragment out of the XML tree that begins with <EndpointReference> and pass it as an argument to the resolveEndpointReference method of your component context. This causes the JBI container to contact the HTTP BC, which understands the EPR.)
    My problem is this: once I've dynamically changed the target URL of the external service, the HTTP BC seems to forget that it requires authentication and no longer sends credentials.
    Has anyone else experienced this behavior, and if so how did you work around it?

  • Using ElementDecl to access the content model

    Hi,
    Suppose I have an DTD that looks like the following:
    <!ELEMENT a (c*, d, e?, f+)>
    <!ELEMENT c (#PCDATA)>
    <!ELEMENT d EMPTY>
    <!ELEMENT e (#PCDATA)>
    <!ELEMENT f (g?, h+)>
    <!ELEMENT g EMPTY>
    <!ELEMENT h ANY>
    How do you get the content model for each one of the elements
    declared in this dtd? I tried to use the following code, but I
    get strange results.
    // Suppose edNode is the root of the DTD
    org.w3c.dom.Node cmNode = edNode.getParseTree();
    if (cmNode != null) {
    System.out.println("edNode = "+edNode.getNodeName()+" -
    "+edNode.getContentType());
    System.out.println("Children...");
    cmNode = cmNode.getFirstChild();
    while (cmNode != null) {
    System.out.println("cmNode = "+cmNode.getNodeName()+" -
    "+cmNode.getNodeType());
    cmNode = cmNode.getNextSibling();
    Thanks in advance,
    Renilton
    null

    Renilton Oliveira (guest) wrote:
    : Hi,
    : Suppose I have an DTD that looks like the following:
    : <!ELEMENT a (c*, d, e?, f+)>
    : <!ELEMENT c (#PCDATA)>
    : <!ELEMENT d EMPTY>
    : <!ELEMENT e (#PCDATA)>
    : <!ELEMENT f (g?, h+)>
    : <!ELEMENT g EMPTY>
    : <!ELEMENT h ANY>
    : How do you get the content model for each one of the elements
    : declared in this dtd? I tried to use the following code, but I
    : get strange results.
    : // Suppose edNode is the root of the DTD
    : org.w3c.dom.Node cmNode = edNode.getParseTree();
    : if (cmNode != null) {
    : System.out.println("edNode = "+edNode.getNodeName()+" -
    : "+edNode.getContentType());
    : System.out.println("Children...");
    : cmNode = cmNode.getFirstChild();
    : while (cmNode != null) {
    : System.out.println("cmNode = "+cmNode.getNodeName()+" -
    : "+cmNode.getNodeType());
    : cmNode = cmNode.getNextSibling();
    : Thanks in advance,
    : Renilton
    You code only descends to the first child node below the
    root and processes only its sibling nodes. It never descends
    below that layer to the child nodes below. Your code should
    have another loop to correct this.
    Oracle XML Team
    http://technet.oracle.com
    Oracle Technology Network
    null

  • I want a i pad?but which is the one i should go for, model.

    I would like an i pad 2,i think but with 6 to choose from and a light usser which do i go for model wise.Any sugestions gratly apreaseated.

    What are all the differences between the iPad 3rd Gen and the iPad 2? Is the iPad 2 worth the cost savings?
    http://everymac.com/systems/apple/ipad/ipad-faq/differences-between-ipad-3rd-gen -2012-ipad-2-2011.html
    What are all the differences between the iPad 3rd Gen models? Which should I buy?
    http://everymac.com/systems/apple/ipad/ipad-faq/differences-between-ipad-3rd-gen -early-2012-models.html
    Should I Buy a New iPad? Or an iPad 2?
    http://www.maclife.com/article/blogs/should_i_buy_new_ipad_or_ipad_2
    iPad Q&A
    http://www.everymac.com/systems/apple/ipad/ipad-faq/differences-between-ipad-3rd -gen-early-2012-models.html
    A Few Questions (and Answers) About the New iPad
    http://pogue.blogs.nytimes.com/2012/03/15/a-few-questions-and-answers-about-the-   new-ipad/?ref=personaltechemail&nl=technology&emc=edit_ct_20120315
    New iPad: A Polishing of the Old
    http://www.nytimes.com/2012/03/15/technology/personaltech/the-new-ipad-is-much-t he-same-only-better.html?nl=technology&emc=edit_ct_20120315
    iPad 1, 2 and New Specifications
    http://www.everymac.com/systems/apple/ipad/index-ipad-specs.html
    How much content will fit on my iPod or iPhone?
    http://support.apple.com/kb/HT1867
    If you think you may get an iPad 2:
    Refurbished iPad Prices
    http://store.apple.com/us/browse/home/specialdeals/ipad
    New 16GB iPad 2 Prices
    http://store.apple.com/us/browse/home/shop_ipad/family/ipad/select_ipad2
     Cheers, Tom

  • Delete the records which have the Data values are NULL before load data to BPC model

    Hi Everyone,
    I am loading the data from flat file to BPC Model (10.0 Version).
    Source data (Flat file) looks like below:
    RP_Employee RPT_Currency Data
    Test                USD                   8
    Test1              USD
    Test2              USD                    6
    My user requirement is that to delete the records which have the Data values are NULL before load data to BPC model.
    So,Please let me know how can i meet to this requirement.
    I am thinking that,it is possible by using start routine BADi. If i am correct please let me know process like creation of class and BADi implementation.
    Thanks in advance!!

    Hi Nilanjan,
    Please see my source data below:
    Account      Client       Employee     Time                Data
    123              XYZ            Vishu            2014.01               300
    456                                                       2014.01
    789              ABC         Alexander      2014.02               200
    If you see the second record,
    If data value is ZULL,  then the Employee or another dimension is also NULL.
    So I want to delete second records.
    If it is Start routine please share the code and steps to do.
    Thanks in advance!!
    Regards,
    Viswanath

  • HT1436 I have two hard drives on my G5(2004). How do I get to choose which hard drive is the start up disk when I turn on the computer? Is it the shift key I hold down?

    I have two hard drives on my G5(2004). How do I get to choose which hard drive is the start up disk when I turn on the computer? Is it the shift key I hold down?

    depending on which model of G5 and  OS installed will depend on whether a key command will work
    alt   at start up may  work, if it does not, use the start up disc setting in;  
    apple menu > system preferences > system  > start up disc
    of course, the second drive must have a compatible OS installed for it to be able to boot.

Maybe you are looking for

  • Is it possible to hyperlink to a specific point in a video?

    I'm trying to create a DVD-style menu page within keynote. Ideally what I'd like to do is have a video on 1 slide and then create a series of hyperlinks on a menu slide that would hyperlink to specific points within that video. Anyone know if this is

  • How to define a BW/BI system in Portal using BI SAP Query Connector.

    Hi,   How to define a BW/BI system in Portal using BI SAP Query Connector. Portal>System Administration>System Configuration-->Portal Content >New System (from PAR)>com.sap.portal.systems.bi--> How to retrive the parameters required from a BI 7.0 Sys

  • Calling an external program!

    Salut all, Im using unfortunately Oracle Forms 6i, and I need to call an external program that I have to develop in Java, compiled into .jar. I just wanna use something like java -jar myJar.jar <my params...> but I don´t know how to call external pro

  • JDeveloper issue while importing B2B schema

    Please refer SR #3-1815777171: B2B Configuration wizard fails in JDeveloper I have defined a document in B2B for VDA4905. When I import this schema in JDev, I get a UTF8 encoding error. Oracle support has created a bug for this. I am reaching out to

  • How to create a quiz ?

    hello , as you see in this screenshots  I took from "project"  magazine . there is a quiz where you can select an answer , collect the score , reset the answers, and then you can get the correct answer for each question . what is the technique used ?