Focal Point
Sourcing the user.htm file

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/5091074062

December 06, 2007, 11:17 AM
Eric Martin
Sourcing the user.htm file
I'm pressed for a way for creating a master file using the user.htm file as the data source. There was a post from last year that looked pretty strait forward but apparently I'm missing something. I need to be a able to list all of MRE users, email addresses, Report Library access(boolean), Report Caster access etc.. Specifically to expose the data, what needs to be added to the .acx file and .mas file. We can keep the MREUSERS synonym name as given in the example. Thanks in advance for your attention to this issue.


Prodcution: 713
Test: 717
Windows Server 2003 R2SP2 Standard
December 06, 2007, 11:25 AM
GinnyJakes
In the MR Admin manual, there is a section on the extract utility that also contains a section on reporting from these extracts.

This should give you what you need.

Also, please update your profile signature with your release and platform information so that we may better help you.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
December 06, 2007, 05:54 PM
Eric Martin
Thanks for the info Ginny. I will look into the MR Admin manual. I've also updated the profile sig. I still would like to know how to source the user.htm file directly. In the message from last year here's what was said.
Here is a sample master file that you can point at your USER.HTM file. This will allow you to write reports against the file so you can run reports directly from your MRE user repository.

$ MREUSERS

FILE=MREUSERS, SUFFIX=FIX, $
DATASET='c:\ibi\WebFOCUS71\basedir\user.htm'
$-- Change the above line to point to the user.htm file on your server

SEGNAME=MRE_LINE, SEGTYPE=S0, $
FIELD=MRE_LINE, MRE_LINE, A200, A200, MISSING=OFF ,$
$

$-- Determine the line type
DEFINE MRE_LINE_TYPE/A10 =
IF MRE_LINE CONTAINS 'HTML>' OR 'HEAD>' OR 'TITLE>' OR 'BODY>' OR 'FONT>' OR '

' THEN 'HTMLTAG' ELSE
IF MRE_LINE CONTAINS '< !--' THEN 'COMMENT' ELSE
IF MRE_LINE CONTAINS 'ROLE=''#' THEN 'USER' ELSE
'LINE';
$
$-- Determine User Name
DEFINE CLOSE_BRACKET/I2 = POSIT(MRE_LINE, 200, '>', 1, 'I2') + 1;
DEFINE OPEN_BRACKET/I2 = POSIT(SUBSTR(200, MRE_LINE, CLOSE_BRACKET, 200, 200, 'A200'), 200, '<', 1, 'I2') - 2;
DEFINE MRE_USERNAME/A60 = SUBSTR(200, MRE_LINE, CLOSE_BRACKET, CLOSE_BRACKET+OPEN_BRACKET, 60, 'A60');
$
$-- Determine User ID
DEFINE USERID_START/I2 = POSIT(MRE_LINE, 200, 'NAME=', 5, 'I2') + 6;
DEFINE USERID_END/I2 = POSIT(SUBSTR(200, MRE_LINE, USERID_START, 200, 200, 'A200'), 200, '''', 1, 'I2') - 1;
DEFINE MRE_USERID/A10 = UPCASE(10, SUBSTR(200, MRE_LINE, USERID_START, USERID_START+USERID_END, USERID_END, 'A10'), 'A10');
$
$-- Determine Role
DEFINE ROLE_START/I2 = POSIT(MRE_LINE, 200, 'ROLE=''#', 7, 'I2') + 7;
DEFINE MRE_ROLE/A60 = SUBSTR(200, MRE_LINE, ROLE_START, CLOSE_BRACKET-3, 60, 'A60');
$
$-- Determine Email
DEFINE EMAIL_START/I2 = POSIT(MRE_LINE, 200, 'email=', 6, 'I2') + 6;
DEFINE MRE_EMAIL/A60 = IF EMAIL_START EQ 6 THEN '' ELSE SUBSTR(200, MRE_LINE, EMAIL_START, ROLE_START-10, 60, 'A60');
$

My quetion is what should go in the .acx and what should go in to .mas to make this work.



Prodcution: 713
Test: 717
Windows Server 2003 R2SP2 Standard
December 06, 2007, 05:57 PM
GinnyJakes
I don't know about that message that you heard last year. But the extract utilities do work. And they come with masters. All you have to do is write focexecs.


Ginny
---------------------------------
Prod: WF 7.7.01 Dev: WF 7.6.9-11
Admin, MRE,self-service; adapters: Teradata, DB2, Oracle, SQL Server, Essbase, ESRI, FlexEnable, Google
December 06, 2007, 09:44 PM
dhagen
I think that that master was created by Francis. I used it a year ago, and if I'm reading it correctly, you do not have to do anything to the acx - because there isn't one. To expose the role info, you should be able to create some defines against the MRE_ROLE ... maybe do CONTAINS against the actual values that are present there.

I'm just guessing. I don't have a working version to test with at the moment.


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott