Conditional mapping with the script using BlOCKPROC to access the HFM API

Hello

following problem. During the mapping/validation, I need to map some members custom1 to zero if the upper limb is None and whether, if any. This allowance depends on the account. By reading the documentation I stumbled upon conditional mapping.
So in the Custom1 plan type for example I defined according to:

Rule name: C1_Script
The rule definition: CXXV. *
TargetCustom1: #Script

In the script, I try to achieve to get the Custom1 Top Member on behalf! The HFM API offers this function (fGetCustomTopMember) and with varValue (14) I get my TargetAccount. So, everything I need seems to be there.
Only problem is that I have to use the BlOCKPROC to access the HFM API provided through the adapter, but either way will not work.
Try 'Set API. IntBlockMgr.IntegrationMgr.PobjIntegrate = BlOCKPROC.ActConnect ("LookUP")"generates an error object required.
To try
Dim BLOCKPROC
Set BLOCKPROC = CreateObject ("upsWBlockProcessorDM.clsBlockProcessor")
BLOCKPROC. Initialize the API, SCRIPTENG
throw me a mismatch of type for 'BLOCKPROC. Initialize. "

I'm a little at my wits end. Any help/hint is appreciated.
Ahh, yes the writing of different BlOCKPROC and BLOCKPROC is correct!

Thank you!

You must do this in the event script Bef/AftProcMap. Valient effort but mapping scripts do not support API calls you need to do. Move in the event and you will be fine. I did it several times.

Tags: Business Intelligence

Similar Questions

  • Accessible resources within a platform with the HQ API

    Hello

    I use the HQ API to build a custom Java monitoring tool.
    So far, I can easily access agents and its related settings.

    My problem is that I don't know how to access resources related to agent: Mount of the file server, servers, services... Is it impossible with the HQ API?

    How can I do?

    If you use this, it will be very easy!

    Get all your HQ server agents: this will return a list of the agents!

    listAgent = hq.getAgentApi () .getAgents () .getAgent ();

    Get all your HQ server platform: this will return a list of Resources (platform)!

    listPlatform = hq.getResourceApi () .getResources (listAgent.get (i), true, true) .getResource ();

    Get all your HQ Server server: this will return a list of Resources (server)!

    list server = listPlatform.get (j) .getResource ();

    get all your HQ Server services: this will return a list of Resources (services)!

    listServices = listServer.get (k) .getResources ();

    with this, you can have the agent (machines) and all the resources under it!

    Hope this will help u

  • Get members of the group with the Java API in LiveCycle

    I work with the Java API in LiveCycle (LiveCycle 8.2) and I am looking


    an example of how read the members of a group.

    I am able to get a group (Type GroupImpl) using the PrincipalSearchFilter.


    But how do I get the members of this group. I checked the
    DirectoryManagerServiceClient and classes of different search filters
    without success?

    As a solution, I can retrieve all users of my application area and
    check their membership to see if they are in the group concerned. But this
    is a dirty hack, I really don't want to use.

    Any ideas?

    Hello!

    I know you mentioned that you were watching in this without success, but it should work really.

    First make a GroupMemebershipSearchFilter, defining the groupoid be the ID of the group itself.  Using the DirectoryManagerServiceClient you can then call findGroupMembers using the searchFilter that will return a list of, as follows:

    DirectoryManager DirectoryManagerServiceClient = new DirectoryManagerServiceClient (serviceConnection.getFactory ());

    List userList = new ArrayList ();

    Try
    {
    userList = directoryManager.findGroupMembers (searchFilter);
    }
    catch (System.Exception e)
    {

    Animals mistake
    }

    return userList;

  • How to use the Windows character map with the Arc keyboard?

    When I "Select" and "Copy to Clipboard" character as a checkbox and then enter any rich text field, it is for some unknown reason, out with the bad temper, that I did not choose. I don't think it's related to the Arc keyboard fault, since I do it only with my mouse ArcTouch.

    My "copy to clipboard" feature has always worked well in the past until I installed this Arc keyboard and the copy function continues to operate properly with anything but Windows XP Pro SP3 32 Character Map.

    So I want to try to enter a character by typing the standard code for the character... but the Arc keyboard doesn't have a "Numlock", because it does not have a dedicated digital keyboard and by the statement, you cannot use the number keys "at the top".
    "Product Guide" for the Arc keyboard is not very useful except on how to plug it in 28 languages.
    Is there a work around these two examples?
    Thank you.

    Someone told me that you can not add whatever it is wiped from the map of characters in a field of type text such as Notepad, that she must be rich text applicable as Wordpad. Not true..., I guess?
    Oh well, it's here where I got to go to... [Is it safe? [I'm going to cross that off my list].

    I forgot to say in the last post, & slipped a character of the fonts map does not either, on most of the trials if he drag & drop is of course the bad character and it is not just "Wingdings", but several I tried.

    When you say "characters in some fonts like"Wingdings"and"Symbol"will not display properly if changed to a different font - even if the code is correct."

    Can you help me understand what that means or how that could happen or what I can do to change the font?

    When I choose a check mark in the Wingdings font and then enter it here, it's: [u]. I don't know I wasn't looking to change police in Wingdings to something else between selecting and placing it here.

  • I need to create a map with the sql below.

    Hello world

    Please take a look at the query below and help me how I can re - write the same logic and create a mapping in the Warehouse Builder.
    I appreciate your help.

    Select the category, learner_id, delivery_id,
    DENSE_RANK() over (partition changed by category, learner_id values null end_date desc order) dr.
    Max (end_date) keep (dense_rank first order by desc nulls last end_date) on max_end_date (partition by category, learner_id).
    min (end_date) keep (dense_rank last order by desc nulls last end_date) on min_end_date (partition by category, learner_id).
    drive (end_date, 1, null) on (score changed by category, learner_id values null end_date desc order) next_max_end_date,.
    start_date,
    Created_on
    of offering_action
    where action_status_code = "200"
    and completion_status_code = "200"

    Thank you
    Sushma

    In this order:

    --> Source (offering_action) table

    Filter (where action_status_code = "200" and completion_status_code = "200")-->

    Expression with 4 columns of output - Dr., max_end_date, min_end_date, next_max_end_date-

    (
    DENSE_RANK() over (partition changed by category, learner_id values null end_date desc order) dr.
    Max (end_date) keep (dense_rank first order by desc nulls last end_date) on max_end_date (partition by category, learner_id).
    min (end_date) keep (dense_rank last order by desc nulls last end_date) on min_end_date (partition by category, learner_id).
    drive (end_date, 1, null) on (score changed by category, learner_id values null end_date desc order) next_max_end_date,.
    )

    That's all.

  • Formulation of condition CQL with the source table and Javabean event

    Hello

    I managed to create a State in CQL that compares 2 values of TIMESTAMP between a source table and a Java bean.

    I did this by complying with the standard DATETIME SimpleDateFormat in the docs.

    But the format does not include milliseconds. Is there another way I can do this, without losing the value of millisecond of the Javabean?

    The request is something like

    Select table.*
    table, beans
    where table.sometimestamp < bean.startdate
    and table.sometimestamp > bean.enddate


    where bean.startdate and bean.enddate is a java.util.Date? (or all)

    I tried all kinds of combinations like to_timestamp (bean.startdate.getTime ()) but it is not the correct timestamp.

    Also tried to use types of java.sql. * but came through different CQL syntax errors.


    Any tips?

    Thank you!
    Jarell

    Hello

    I think you have two options:

    (1) to use SimpleDateFormat the of ' pattern. For example: "' yyMMddHHmmssSS', where the last two are the number of milliseconds.

    2) keep as a long (e.g. System.currentTimeMillis)

    Best regards
    Alex

  • How to show/hide conditional text on the text selected with the FDK API

    Hello!

    Do you know how to show/hide conditional text in a selected text using the FDK API? I managed to do it on the whole document, but I need to do on specific selected text...

    Thanks in advance,

    Stefano

    Hi Stefano,

    This is not possible, the conditions are the properties of the document and cannot be changed from visible to hidden or v.v. for the full document.

    If you really need a more detailed method, you must create a separate condition for the selected text.

    -Michael

  • How to emulate esxcfg-vmhbadevs - m with the Perl API?

    I have an iSCSI target that has been formatted and divided into a volume. I want to be able to map to the UUID volume iSCSI target LUN.

    esxcfig-vmhbadev - m do it directly, for example in the LUN low, 207 maps line the UUID 4ac128de-d4b8f7c3-a4a5-001ec9ab7607.

    vmhba0:1:0:1/dev/sdb1 47a3995d-bf8312ea-aa8a-0019b9f36fbf

    vmhba0:0:0:3/dev/sda3 479f6ab3 - 636688 b 2-277 - 0019b9f36fc1

    vmhba1:4:200:1/dev/sdc1 4ac127e9-81fb1fcf-1138-001ec9ab7607

    vmhba1:15:207:1/dev/sdd1 4ac128de-d4b8f7c3-a4a5-001ec9ab7607

    How can I do this using the Perl API? I can get both halves of the information, but I do not see how to associate.

    This snippet gives me information on the LUN and the SCSI UUID

    Print "canonical name, UUID\n;

    My $scsiLUN = $storageSystem - & gt; storageDeviceInfo - & gt; scsiLun;

    {foreach (@$scsiLUN)}

    Print "". " $_ - & gt; canonicalName

    . ", " . $_ - & gt; UUID

    . "\n";

    }

    Canonical name, UUID

    vmhba1:15:207, 0100cf000020202020564952545541

    vmhba0:1:0, 020000000050014ee0004544c3574443205744

    vmhba0:0:0, 020000000050014ee0004544d2574443205744

    vmhba1:4:200, 0100 c 8000020202020564952545541

    Then this excerpt gives me information on the volume:

    My $mountInfo = $storageSystem - & gt; fileSystemVolumeInfo - & gt; mountInfo;

    print 'Volume Name, Path, Type, Capacity\n';

    {foreach (@$mountInfo)}

    Print "". " $_ - & gt; volume - & gt; name

    . ", " . $_ - & gt; mountInfo - & gt; path

    . ", " . $_ - & gt; volume - & gt; type

    . ", " . $_ - & gt; volume - & gt; capacity

    . "\n";

    }

    Volume name, Path, Type, capacity

    esx7_local_storage2, / vmfs/volumes/47a3995d-bf8312ea-aa8a-0019b9f36fbf, VMFS, 79725330432

    esx7_local_storage1, / vmfs/volumes/479f6ab3 - 636688b 2-277 b-0019b9f36fc1, VMFS, 71672266752

    vol_2_1, / vmfs/volumes/4ac127e9-81fb1fcf-1138-001ec9ab7607, VMFS, 805306368

    snap-0e22598d-vol_2_1, / vmfs/volumes/4ac128de-d4b8f7c3-a4a5-001ec9ab7607, VMFS, 805306368

    But then how to map vmhba1:15:207 to/vmfs/volumes/4ac128de-d4b8f7c3-a4a5-001ec9ab7607?

    Thank you

    From vSphere 4.0, esxcfg-vmhbadevs has been replaced by a new order with a lot more information called esxcfg-scsidevs. This script is available on the classic ESX 4.0 w/Service Console of course but also in the context of the new vCLI which uses the new vSphere SDK for Perl 4.0 which can take a look at how this new information is extracted.

    The command works on ESX 4.0 and 3.5 and here is the output of ESX 3.5 system example:

    [vi-admin@scofield ~]$ esxcfg-scsidevs -m --server bertha.primp-industries.com. --username root
    Enter password:
    vmhba1:0:200:1   /vmfs/devices/disks/vml.0200c80000600508b40008dd5b0000800000640000485356333030:1   48e1cd81-81223593-6cd8-00215acaa2b2   0  dlgCore-FC-LUN200.Templates
    vmhba1:0:202:1   /vmfs/devices/disks/vml.0200ca0000600508b40008dd5b0000800000bd0000485356333030:1   48e1a4a6-3b55e69b-02a9-001f29c948e2   0  dlgCore-FC-LUN202.VMstorage2
    vmhba1:0:204:1   /vmfs/devices/disks/vml.0200cc0000600508b40008dd5b0000a00000810000485356333030:1   495e986b-b61cc1d6-27b1-00215ab08a79   0  dlgCore-FC-LUN204.VMstorage4
    vmhba1:0:203:1   /vmfs/devices/disks/vml.0200cb0000600508b40008dd5b0000800000b50000485356333030:1   48e16ed0-420158d5-5601-00215acaa2b2   0  dlgCore-FC-LUN203.VMstorage3
    vmhba1:0:201:1   /vmfs/devices/disks/vml.0200c90000600508b40008dd5b0000800000c30000485356333030:1   48e1b819-3443974c-03c4-001f29c948e2   0  dlgCore-FC-LUN201.VMstorage1
    vmhba0:0:0:5     /vmfs/devices/disks/vmhba0:0:0:0:5                                                 4913e014-62bc3b90-da2e-001f29c948f8   0  esx-1-local-SAS.Storage
    

    You have listed the vmhbaC:T:L:P mapped to the VML path and then store data UUID, then the readable name for the data store human. You can certainly create a copy of the script and only what you want exactly and that nobody is re - invent the wheel.

    =========================================================================

    William Lam

    VMware vExpert 2009

    Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

    repository scripts vGhetto

    VMware Code Central - Scripts/code samples for developers and administrators

    150 VMware developer

    Twitter: @lamw

    If you find this information useful, please give points to "correct" or "useful".

  • Adding properties files TDMS with the C API

    I use the free C API (dll) to write TDMS files. Everything works perfectly except the next function call.

    int __stdcall DDC_CreateFilePropertyString (file DDCFileHandle,
    const char * property.
    const char * value);

    I call the following function in advance to create the PDM file.

    int __stdcall DDC_CreateFile (const char * filePath,)
    const char * fileType.
    const char * name,
    const char * description.
    const char * title,.
    const char * author;
    DDCFileHandle * file);

    When I call the function to create the property, it returns with the error-6202 code (invalid argument). I don't think that there is an invalid argument in my appeal. Someone at - it examples of code? What I need to do something before I can create a property?

    Thanks for your help.

    Does

    DDC_CreateFilePropertyString (file, "MyProperty", "MyValue");

    work?

  • Can not do a query with the REST api

    Hello

    After discovering that the use of the standard SOAP API what is like poking yourself in the eye with a sharp stick, I try to use the REST API. At first, I tried to exercise it through the extension of POSTMAN on Chrome. But I have no joy.

    Can I use caller ID to get the URL, so I know that my authentication is OK. But all other calls give me:

    Failure of 403 XSRF Protection


    Is an example of a call, that I'm trying:

    https://secure.Eloqua.com/API/rest/1.0/data/[email protected] & Count = 1

    I can't find any reference anywhere to this error 403.

    Help!

    Thank you

    Simon

    Hi Simon,.

    Looks like you're client (web browser) might have stored credentials for Eloqua, probably in the cookies collection. If you try to delete your cookies and rerun the query API with basic authentication, it should work.

    Hope this helps and please let us know if you need more information.

    Thank you

    Fred

  • Get complete information of Contact with the REST API with Ruby

    Hello

    I'm trying to find information from a contact using the REST API from Ruby. I followed the example posted here and I was able to get good contact with Eloqua, but information are the basis and the FieldValues table is very long with fieldValues can only be and no label field.

    I don't know I asked for complete = depth, and I verified that the contact even on the side of Eloqua seen so many other areas.

    It's the URL that I use: https://secure.eloqua.com/API/REST/1.0/data/contacts?search= < emailAddress > & depth = full & count = 1

    and I don't get like this field in the fieldValues can only be: {'type': 'FieldValue', 'id': "100175"}

    With respect to the main information, they are basic.

    Is it possible to obtain all the contact fields, the same than the one I see on the site of Eloqua?

    Thank you

    Hi Theyaa,

    You can use the following endpoint to retrieve a list of all fields with their unique identifier and metadata:

    • GET /API/REST/1.0/assets/contact/fields?depth=complete&search=*&page=1&count=250

    Hope this helps and please let me know if you need more information.

    Thank you

    Fred

  • QUESTION: Can't create a firewall rule to (edge) with the REST API

    Dear Sir

    I am trying to create a firewall rule for simple and basic edge using the REST API.

    I use the REST API guide as a reference on page 158.


    edge-fw-rule.png

    I use the following code (single) in my client REST API (with good content Type (application/xml)):

    < rule >

    < ruleTag > < / ruleTag >

    < name > edge5-rest-rule < / name >

    all < source > < / source >

    < destination > all < / destination >

    < application > all < / application >

    < matchTranslated > true < / matchTranslated >

    < management > in < / direction >

    < action > deny < / action >

    < enabled > false < / enabled >

    < loggingEnabled > true < / loggingEnabled >

    rest-api-rule of the < description > < / description >

    < / rule >

    The error message that I receive is the following:

    <? XML version = "1.0" encoding = "UTF-8"? >

    < error >

    request details invalid <>. Found no match for item rule. < / details >

    < > 223 errorCode < / errorCode >

    < / error >

    The full screenshot of my action REST API is in the screenshot below:

    full-request.png

    Anyone know what I'm doing wrong here?

    Thank you!

    Try this as the body...

    rest-rule

    user

    true

    in

    deny

    fake

    true

    rest-api-rule

  • Connection to vCloud Director 5.1 with the REST api plugin

    vco3.PNGI can't get this to work.

    I'm following part of the manual, I found here: http://blogs.vmware.com/orchestrator/2011/07/vcloud-director-twitter-yahoo-and-foursquarecom-http-rest-plug-in-use-case-examples.html

    So I install the plugin and run the workflow to add a host:

    vco1.PNG

    And set the authentication with the workflow "Set vCloud to authenticate a host REMAINS:

    vco2.PNG

    And run the supplied workflow "show a vCloud, Director of the Organization:

    vco3.PNG

    And get the error: "no valid API version can be selected.

    I also tried with version 1.0 and 1.5 of putting in the URL, but cannot make it work. What Miss me?

    Thank you.

    Hello

    It is a problem with you REST plugin does not support the vCloud 5.1 authentication correctly.

    I created the following work around to fill the gap until a new version of the plugin REST solves this problem.

    Please find here.

    Christophe.

  • Update the price of the products with the v3 API

    So I try to update all the prices of my product in my product catalog programmatically. I have gone through the documentation to the product price | Catalyst of business support
    and I see that there is no end point of update of the prices of the products.  I tried also just do a PUT option with an AJAX call and is not no longer works.  Can't BC really have a way to update the prices of the products via an application?  I did a lot of things with the API v3, so I assumed that any of this would be a given, but maybe I'm wrong.

    var myurl = "/ webresources/api/v3/sites/current/products / ' + myproductid + ' / price";
    var requestC = $.ajax({)
    URL: myurl
    type: "PUT."
    connection: "keep-alive"
    contentType: "application/json",
    MIME type: ' application/json ',.
    headers: {'Authorization': $.cookie ('access_token')},
    processData: false,
    data: JSON.stringify ({}
    "retailPrice': '533.00."
    'Flags': '533.00'
    })
    });

    You can't do that. The API of POSITION for the products had not been with the rest of the update of the POST API on the products. I already talked to the engineers on this subject. No update on when it will be executed has been given.

  • Error in creating a category with the REST API

    vRO 7.0.1

    I am trying to create a category in the folder root of Workflow using the REST API.

    URL = https://vroserver.fqdn:8281 / vco/api/categories

    Method = POST

    The API documentation suggests that the body should be like this:

    {

    "categoryType": "WorkflowCategory",

    'name': "Test5",.

    'description': 'Testing '.

    }

    However, I always get a 400 response: the request sent by the client is syntactically incorrect.

    reflecting the docs by: category name must be specified

    Can anyone help?

    Body of the request should be:

    {
       "type":"WorkflowCategory",
       "name":"Test5",
       "description":"Testing"
    }
    

Maybe you are looking for