How to get ucm doc rules according to DocProfile by using ridc

Hi experts,
We need to fields of ucm docrules. I can get universal rules(all of the rules which defined in ucm) But we need relation between docprofile and rules that belonged to docprofile.
As i said before, we can get docProfiles and docRules distributedly. (code snippet below, plz take a look) Could you please help me about the rules of docProfile
Best Regards,
public static void main(String[] args)
IdcClientManager manager = new IdcClientManager();
IdcClient client;
try
client = manager.createClient(urlConnection);
IdcContext context = new IdcContext(username, password);
DataBinder inputBinder = client.createBinder();
inputBinder.putLocal("IdcService", "GET_DOCPROFILE");
inputBinder.putLocal("dpName", "BudgetProfile");
// inputBinder.putLocal("IdcService", "GET_DOCRULE");
// inputBinder.putLocal("dpRuleName", "budgetTriger");
ServiceResponse response = client.sendRequest(context, inputBinder);
DataBinder asBinder = response.getResponseAsBinder();
//DataResultSet dataResultSet = asBinder.getResultSet("DocumentRules");
// List<Field> fields = dataResultSet.getFields();
// for (Field field : fields)
// for (DataObject dataObject : dataResultSet.getRows())
// System.out.println(field.getName()+" : " + dataObject.get(field.getName()));
catch (IdcClientException e)
e.printStackTrace();
}

If you call GET_DOCPROFILE, you will get the DocumentRules ResultSet which contains the names of the rules used in this profile. You can then call GET_DOCRULE for each of these rules.
Jonathan
http://jonathanhult.com

Similar Messages

  • How to get an initialised Object according to it's name?

    How to get an initialised Object according to it's name?
    For example I have 5 HashSets (initialised, with data) hs1 hs2 hs3 hs4 and hs5
    Sometimes I want to get one of them according to it's number : "hs"+number
    How this can be done (method class.forName is dedicated to antoher thing).
    Thanks

    I forgot to write that I do not want to use a Map :)
    (sure, it' possible via Map, no question).
    But in Perl, for example, I could simply write
    $ab="col" + "or";
    $color="Beidge";
    and than I can use address to a variable $color in
    such a way : $$ab
    ... So if a Map is an only way... than it will be a
    Map... pity..I do not really know Perl so I can not comment on it; but, are there any compiled languages (at least compiled to the degree of Java) that support this construct? All of the programming languages that I can think of that have this construct are more along the lines of scripting languages.
    Just curious.

  • How to get the page number according to MarkerID?

    I want to get the page number according to the marker element in fdk. I can get the marktext and markid,How to get the page number according to MarkerID in fdk?

    zhaopeng,
    You need to first get the ID of the paragraph containing the marker (with FP_TextLoc), then get the top-level frame containing the FO_Pgf object (FP_InTextFrame), then get the page containing the FO_TextFrame object (FP_PageFramePage). Here is a function that you can send various objects to in order to get the page ID, including paragraphs (this courtesy of Rick Quatro, originally posted to the Yahoo Framedev list):
    F_ObjHandleT GetPage(F_ObjHandleT oDoc, F_ObjHandleT oObj)
      F_ObjHandleT oFrame = 0;
      IntT iObjType;
      F_ObjHandleT oRow, oCell;
      while(oObj)
        oFrame = oObj;
        iObjType = F_ApiGetObjectType(oDoc, oObj);
        switch(iObjType)
          case FO_SubCol:
          oObj = F_ApiGetId(oDoc, oObj, FP_ParentTextFrame);
          break;
          case FO_Tbl:
          oRow = F_ApiGetId(oDoc, oObj, FP_FirstRowInTbl);
          oCell = F_ApiGetId(oDoc, oRow, FP_FirstCellInRow);
          oObj = oCell;
          break;
          case FO_Row:
          oCell = F_ApiGetId(oDoc, oObj, FP_FirstCellInRow);
          oObj = oCell;
          break;
          case FO_Cell:
          case FO_Pgf:
          case FO_AFrame:
          oObj = F_ApiGetId(oDoc, oObj, FP_InTextFrame);
          break;
          case FO_TextLine:
          case FO_TextFrame:
          case FO_UnanchoredFrame:
          case FO_Arc:
          case FO_Ellipse:
          case FO_Group:
          case FO_Inset:
          case FO_Line:
          case FO_Math:
          case FO_Polygon:
          case FO_Polyline:
          case FO_Rectangle:
          case FO_RoundRect:
          oObj = F_ApiGetId(oDoc, oObj, FP_FrameParent);
          break;
          //endless loop prevention, stops the process when the top-level frame is reached
          default:
          oObj = 0;
          break;
      //if we found the top-level frame, return its page ID, otherwise null
      if(oFrame)
        return (F_ApiGetId(oDoc, oFrame, FP_PageFramePage));
      else return(0);
    ...so, you would do something like this if you have the marker ID:
    F_TextLocT textLoc;
    F_ObjHandleT pageId;
    textLoc = F_ApiGetId(docId, markerId, FP_TextLoc);
    pageId = GetPage(docId, pageId.objId);
    Note: I'm not sure how this handles the case where a paragraph extends across two pages and the marker is located on the second page. My thought is that it might erroneously return the page where the paragraph begins. I don't know how to handle that.
    Russ

  • How to get a organization name for a particular user using API's

    Hi alll,
    How to get a organization name for a particular user using API's

    You need to do something like this:
    SearchCriteria criteria = new SearchCriteria("User Login", "XELSYSADM", SearchCriteria.Operator.EQUAL);
                   UserManager usrService = oimClient.getService(UserManager.class);
                   Set<String> retAttrs = new HashSet<String>();
                   retAttrs.add(UserManagerConstants.AttributeName.USER_ORGANIZATION.getId());
                   List<oracle.iam.identity.usermgmt.vo.User> users = usrService.search(criteria, retAttrs, null);
                   System.out.println("ORG KEY :: " + users.get(0).getAttribute("act_key"));

  • How to get rid of ask toolbar on a mac using chrome browser

    how to get rid of ask toolbar on a mac using chrome browser

    How to remove Ask toolbar?
    You may find this helpful.
    http://support.mindspark.com/link/portal/30028/30031/Article/1543/Toolbar-Remova l-Instructions-for-Mac-OSx-Users

  • MIGO- how to get mat. doc. by A/c doc.

    Hi Sap gurus,
    How to get the material document by the accounting document generated while MIGO.....
    MIRO........ how to get the gr doc. by the invoice doc.. no...
    Plz. suggest any tcodes or reports.......
    Thanks
    Navin

    Hi,
    The parameter ID IVFIDISPLAY need to be added in the User Master Parameters tab using SU01 for other user or for self user use SU3.
    after maintaining the parameter, maintain the Parameter value as X
    MIRO :
    GO to the PO given in the item details of the miro..click on it..system will take you to the PO for that invoice..inside it in PO history tab in item details you can see all the documents generated for that PO...here you can get invoice no, gr no, etc...
    Hope it'll help you..
    Regards
    Priyanka.P
    AWARD IF HELPFULL
    Edited by: Priyanka Paltanwale on Aug 22, 2008 12:49 PM

  • How to get UCM content from Java class?

    Hello,
    I need to get UCM content from backend I mean from the Java class. Is there any way to do that? If anybody please give any resources it will be very helpful.
    Thanks and regards.

    Hi
    You mean to say that with JAVA API you want to search and retrieve the contents ? If yes , then you should use RIDC API for the same and that way you can use to do all the operations on UCM from the JAVA Api .
    Search this forum and you will get sample codes for the checkin , search , checkout operations .
    Documentation is available at : http://docs.oracle.com/cd/E14571_01/doc.1111/e16819/toc.htm
    Thanks
    Srinath

  • How to get the last day according to fiscal period input in selection scree

    Hello expert
    how to get the last day of fiscal period input.
    the fiscal period inculdes 1-16
    when fiscal period is greater than 12, only calculate the last day of 12nd month
    your solution will be apprecaited, FM existing?
    thank you
    Kevin

    Hi,
    when you give a particular date in any month
    the following fm will give you the last date of that month
    here you can give
    R_FDATE-HIGH  as 01 and month as the period you wnat and year for current year
    concatenates '01'  month year  into r_fdate-high separated by '.'.
    then it will give g_ltdt for that month and year which wil be the last date of that month
        CALL FUNCTION 'RP_LAST_DAY_OF_MONTHS'
          EXPORTING
            DAY_IN            = R_FDATE-HIGH
          IMPORTING
            LAST_DAY_OF_MONTH = G_LTDT
          EXCEPTIONS
            DAY_IN_NO_DATE    = 1
            OTHERS            = 2.
        IF SY-SUBRC <> 0.
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                  WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    thanks & regards,
    Venkatesh

  • How to get IdP Token (SAML Response) in Office 365 using SharePoint hosted app parts.

    Hi All
    We have a requirement to retrieve data from SQl azure & consume it O365 Sharepoint hosted app parts. to expose SQL azure data we implemented Web API .  Now we are struck at securing Web API. I found below flow in internet search.
    In this process
    Client component (App part) get  IdP token ( signed SAML Responce) from sharepoint & sends IdP token to ACS, which validates the token signature & claims & issues Access Token(valid for 600sec) to client ,which would be forwarded to
    Web API. where web Api validates & provides data.
    Client - SharePoint Site (App parts)
    Identity provider : Onelogin is our Identity provider.
    Application : Web API
    In this whole process . how to get IdP Token (SAML Response) from sharepoint in Sharepoint hosted appparts using client object model? 
    can any one help on this.
    ragava_28

    Hi,
    According to your post, my understanding is that you want to enable/disable the custom ribbon button accordingly.
    We can use the EnabledScript attributes to achieve this scenario.
    The EnabledScript attribute of the CommandUIHandler that will enable or disable the button depending on whether the function returns true or false. 
    There are some articles about this topic, you can refer to them.
    http://dannyjessee.com/blog/index.php/2013/01/javascript-to-conditionally-enable-a-sharepoint-custom-ribbon-button/
    http://aaclage.blogspot.com/2014/07/how-to-enabledisable-ribbon-buttons-by.html
    http://dannyjessee.com/blog/index.php/2014/06/enabling-custom-ribbon-buttons-dynamically-based-on-multiple-selected-item-values-using-refreshcommandui-and-jsom/
    Thanks,
    Jason
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jason Guo
    TechNet Community Support

  • How to get opening balance of a g/l account using query ?

    Dear all,
    I'm developing consolidated g/l accounts debit,credit totals month wise with opening & closing balances thru query based report,
    i'have got expected results except opening balance g/l account,
    How to get opening balance of a g/l account based on date as conditonal parameter ?
    Any one throw light on this ?
    Jeyakanthan

    Hi ,
    Please kindly help me on this.I don't know how to calculate opening bal and closing bal over a period of time by Quarter, and how to generate the reprot using crystal reports and please suggest me on this how to go ahead with this report.
    Here you can go through the reprot requirement , and also an attachment of my Report template.
    we have "Category of Investment" , "Income On Investment" ,"Gross yield" and "Net yield" are  report fields.
    1)"Category Of Investment " is Hardcoded.
    2)In this we have to get  "Investment" column from VTBFHAPO(BZBETR Field) table Database based on
    Flow type(SFHAZBA) in VTBFHAPO table ='0100' for bonds category.
    3)"Income on Investment" also we will get from DB using the following formula.
      Income On Investment= "Interest IncomeAmortizationCapitalgain"
    4)With the Date field(Making Date dimension based on date(DCRDAT) field in VTBFAHPO table.
    By Current Quarter,Year to Date,Last year)
    5)Opening bal---Investment
    Purchase--Flowtype=0100
    Meturity/Sales--Flowtype=0200
    Closing balance=Opening bal+(Investment or Purchase)-(Meturity or Sales)
                                      '0100'                 '0200'
    Here '0100' and '0200' are Flow types based on this i need to get value from the same Field.
    we need to Calculate "Gross yield" .
    The bellow are formulas  to evaluate "Gross yield "
    Ist Qtr  .Gross yield=Investment income/(((April opening balanceApril closing balance)/2)((May opening balanceMay Closing Balance)/2)((June opening balance+June closing balance)/2))/3)
    Ist qtr. Year to date   Gross yield=Investment income/(((April opening balanceApril closing balance)/2)((May opening balanceMay Closing Balance)/2)((June opening balance+June closing balance)/2))/3)
    Investment income=interest incomeamortisationcapital gain
    Iind Qtr.Gross yield=Investment income/(((July opening balanceJuly closing balance)/2)((Aug opening balanceAug Closing Balance)/2)((Sept. opening balance+Sept. closing balance)/2))/3)
    Iind Qtr. Year todateGross yield=Investment income/(((April opening balanceApril closing balance)/2)((May opening balanceMay Closing Balance)/2)((June opening balanceJune closing balance)/2))((July opening balanceJuly closing balance)/2)((Aug opening balanceAug Closing Balance)/2)((Sept. opening balance+Sept. closing balance)/2))/6
    This data should display over a period of time. based on "Current Quarter","YearToDate" and "Last year"
    The quarter starts from April,i,e FY,  I Like this i need to generate the report.
    Thanks in advance.

  • How to get pics from old phone to new phone using iCloud.

    I just got the iPhone 5s and I used to have a 4. I backed up my pictures and contacts but the only thing that's on my new phone is my contacts. My old phone won't come back on. I need my pictures off of my old phone. My new phone says I don't have enough iCloud storage to backup. When I go to settings, iCloud, storage and backup, it lists my old phone and my new one. I don't know how to get my pictures back.

    You have to use the other account or turn on sharing.

  • How to get message in realtime sent by another user using FM TH_POPUP?

    I want to program a chat function between two SAP users by using ABAP.
    1.User A send a message to user B by using TH_POPUP,
      At the same time, the message is showed in screen as 
      'Send message'
    2.User B get the message
    ->My problem is how to get the message in realtime which I want to show it in screen as 'Received message'.
    Can anybody tell me how to get the message sent by using FM TH_POPUP in realtime?
    Edited by: Jing Yu Huang on Feb 6, 2008 2:11 AM

    Hi there
    This really isn't a "conversation" type program
    1) What does the original user do after sending the message -- I'm not sure if there's a WAIT_FOR_REPLY and even if there were I'm not sure  you'd want the original user to have a suspended session waiting for a reply.
    2) What does the 2nd user do after receiving the message --if it's just thrown up on his screen  then there isn't any mechanism to return a reply from USER A'S SESSION.
    You need somehow to have a continually running process which will send a message for example to user B and create an event or do somethimg so that User B is bound to the same session that sends the original message.
    2 different users running the same abap don't actually have any common link between them even on remote function calls.
    You need to have a central process here that shares a message space between the users (i.e a kernel type module).
    Classical Abap won't do (nor is it designed for) these types of processes.
    You might be able to find something in some of the  'C' coded kernel calls but as I previously posted before you are far better off using Windows for this type of stuff. (Windows Messenger for example).
    ABAP unfortunately is not designed as a multi user  "re-entrant"  programming language - nor was it intended to be.
    Another possible get around is to use the workflow system. User A sends a message which raises an event. This then starts a workflow which transmits say message to user B and notifies him of a message waiting for him. User B can reply which again raises an event and triggers workflow routing the message / reply back to user A.
    The response time won't be very good but at least it will work without tying up 2 user dialog sessions - but seriously guys I'd give up on this and just use Windows Messenger or equivalent system.
    These type of programs depend on a central server for the message handling - you'd have to replicate this in ABAP -- and Im 120% sure it can't be done.
    Cheers
    Cheers

  • How to Get and Update properties values from XML tag Using Xquery or PL Sql

    Hi
    I have this tag
    <Solicitud Pais = "1">
    How i can get Pais value?
    How i can update Pais Value?
    Y can use Xquery funtions or PL SQL for this?
    Thak's
    Angel

    How i can get Pais value? ExtractValue
    How i can update Pais Value?UpdateXML
    Y can use Xquery funtions or PL SQL for this?Yes
    Without knowing more about your requirements, where information resides, or even a version of Oracle, that is the best I'll do.

  • How to get imovies out of iPad and burn them using iDVD or Movie Maker?

    Has anyone figured out how to get the iMovies created on the iPad out and onto a computer to burn them onto iDVD or MovieMaker?

    Just export the movie to your camera roll and sync it back to your computer.

  • How to get the program where the User exit is use

    Hi,
       Could anyone let me know how to get the program which is using the user exit
    EXIT_SAPLFMR4_002 .
    Thank you.
    Donny~

    You can do a where used on the functino module EXIT_SAPLFMR4_002 in SE37.
    In this case, you user exit is called from a function module FMRE_FI_BELEG_CHECK.  Which in my system, doesn't appear to be called directly. It could be called dynamically.
    Regards,
    RichHeilman

Maybe you are looking for