As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.
Join the TIBCO Community TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.
From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
Request access to the private WebFOCUS User Group (login required) to network with fellow members.
Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.
Just need a simple example. Something like, in run time adding a FIELDNAME to SEGMENT. I already try to use a HOLD for that, but it doesn't work because in the new one the SEGMENTS information are lost. Can't find either a way for adding the new fields.
If there isn't a way to go this in WebFOCUS I'm thinking in using Java to parse the file and add a new line with the FIELDNAME. But this is not a simple solution.
Any help?
Thanks, Carlos DiasThis message has been edited. Last edited by: Carlos Dias,
WebFOCUS version: 7.6 Linux/Windows HTML, Excel
Posts: 127 | Location: Aveiro, Portugal | Registered: February 04, 2011
You can not unless you do not mind to loose data. What you need to do is make a backup, add the field and restore the data. If you have datamigrator software from Ibi it helps you doing this. If the data is in a SQL database you also need to have rights to do this. Else it should be done by the DBA
Frank
prod: WF 7.6.10 platform Windows, databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7 test: WF 7.6.10 on the same platform and databases,IE7
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006
Ok I'm going to try to explain way I need this. Our system is very dynamic. And we have tools for the end user to create new indicators (columns) in the fact tables of the database (Oracle). So we need to refresh the masterfiles in this case. For this I can use the refresh synonym tool.
We are building another tool where the user can associate columns to the report. In this case he can set the title of the column or define a new one. In this situation I need to add this definitions to the master, changing the title, or adding the virtual column.
WebFOCUS version: 7.6 Linux/Windows HTML, Excel
Posts: 127 | Location: Aveiro, Portugal | Registered: February 04, 2011
Originally posted by Carlos Dias: Our system is very dynamic. And we have tools for the end user to create new indicators (columns) in the fact tables of the database (Oracle).
Maybe it's just me, but these seems to be a poor database design choice. We have a data warehouse and our fields are as follows:
This provides some future-proofing -- when new indicators are added, we simply create a new distinct value in the VINDICATOR column. In our set up, VFREQ + VINDICATOR + VLEVEL + VLEVELTYPE = Primary Key. This should also allow you the capability to refine what is already there (for sub-measures, for instance).
In short, we grow down and it sounds like you grow out.
You can -READ/-WRITE a new synonym and add/change titles and virtual fields. But two issues should be considered: (1) If it's a multu-user app, what happens if two users make changes at the same time, and (2) virtual fields and titles may be lost when the synonym is refreshed.
WebFOCUS 7.7.05
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007
Originally posted by Dan Satchell: You can -READ/-WRITE a new synonym and add/change titles and virtual fields. But two issues should be considered: (1) If it's a multu-user app, what happens if two users make changes at the same time, and (2) virtual fields and titles may be lost when the synonym is refreshed.
This is a multi-user app so It my be a problem. Maybe the best solution is to create the masterfile using Java for controlling this kind of issue.
WebFOCUS version: 7.6 Linux/Windows HTML, Excel
Posts: 127 | Location: Aveiro, Portugal | Registered: February 04, 2011
When you create you synonym check the dynamic columns box to specify that the Master File created for the synonym should not contain column information.
If this option is selected, column data is retrieved dynamically from the data source at the time of the request.
WF 7.7.04, WF 8.0.7, Win7, Win8, Linux, UNIX, Excel, PDF
Posts: 175 | Location: Pomona, NY | Registered: August 06, 2003
When I mean on the fly I mean that I want a process to create dynamical columns, defines and computes in the masterfiles. I'm creating a user interface where a admin user can create or associate columns to reports. This process creates the columns in the masterfiles.
So I need way, without using READ or WRITE to create/recreate the masterfiles. Is there any Java API or actions with FOCUS language for this?
Thanks, Carlos Dias
WebFOCUS version: 7.6 Linux/Windows HTML, Excel
Posts: 127 | Location: Aveiro, Portugal | Registered: February 04, 2011
Originally posted by Waz: How are these dynamic columns defined by the users ?
Like I said we are creating a user interface where the user can set the columns. For this process I need a way to create this columns in the masterfiles.
quote:
Originally posted by Waz: If I understand what you need, I would suggest you programatiacally copy the master/ACX to a session version, and then add what ever is needed.
What do you mean with session version?
WebFOCUS version: 7.6 Linux/Windows HTML, Excel
Posts: 127 | Location: Aveiro, Portugal | Registered: February 04, 2011
- Receive a parameter with &alias1=R and &newfieldname1=NEW_RECTYPE Change to: FILENAME=MYHOLD_RESULT_TABLE2, SUFFIX=FIX , $ SEGMENT=EMPINFO, SEGTYPE=S0, $ FIELDNAME=NEW_RECTYPE, ALIAS=R ALIAS=R, USAGE=A3, ACTUAL=A3, $ FIELDNAME=LAST_NAME, ALIAS=LN, USAGE=A15, ACTUAL=A15, $ END
- Receive a parameter with &compute1=COMPUTE NEWFIELD/D20 = XPTO; Add at the END of the masterfile: FILENAME=MYHOLD_RESULT_TABLE2, SUFFIX=FIX , $ SEGMENT=EMPINFO, SEGTYPE=S0, $ FIELDNAME=NEW_RECTYPE, ALIAS=R ALIAS=R, USAGE=A3, ACTUAL=A3, $ FIELDNAME=LAST_NAME, ALIAS=LN, USAGE=A15, ACTUAL=A15, $ COMPUTE NEWFIELD/D20 = XPTO;, $ END
WebFOCUS version: 7.6 Linux/Windows HTML, Excel
Posts: 127 | Location: Aveiro, Portugal | Registered: February 04, 2011
What you are attempting sounds a bit like what this WebFocus user driven group has constructed. I think they have done so in consultation with IBI. http://www.dartg.com. The presentation I saw at Summit was for a pretty robust user driven system.
WebFOCUS 7.7.05 (Someday 8) Windows 7, All Outputs In Focus since 1983.